PDOException Object ( [message:protected] => SQLSTATE[HY000] [2002] Connection refused [string:Exception:private] => [code:protected] => 2002 [file:protected] => /home/vms/public_html/pops/v1.0.0/classes/database.php [line:protected] => 49 [trace:Exception:private] => Array ( [0] => Array ( [file] => /home/vms/public_html/pops/v1.0.0/classes/database.php [line] => 49 [function] => __construct [class] => PDO [type] => -> [args] => Array ( [0] => mysql:dbname=vms_system;host=35.199.83.3 [1] => root [2] => VMS2233vvmmss ) ) [1] => Array ( [file] => /home/vms/public_html/pops/v1.0.0/classes/database.php [line] => 23 [function] => connect [class] => database [type] => -> [args] => Array ( [0] => stores_settings [1] => vms_system [2] => read ) ) [2] => Array ( [file] => /home/vms/public_html/pops/v1.0.0/config.php [line] => 40 [function] => __construct [class] => database [type] => -> [args] => Array ( [0] => stores_settings ) ) [3] => Array ( [file] => /home/vms/public_html/pops/v1.0.0/index.php [line] => 2 [args] => Array ( [0] => /home/vms/public_html/pops/v1.0.0/config.php ) [function] => include ) ) [previous:Exception:private] => [errorInfo] => )
Fatal error: Uncaught Error: Call to a member function prepare() on null in /home/vms/public_html/pops/v1.0.0/classes/database.php:69 Stack trace: #0 /home/vms/public_html/pops/v1.0.0/config.php(42): database->query('SELECT id,sid F...', Array) #1 /home/vms/public_html/pops/v1.0.0/index.php(2): include('/home/vms/publi...') #2 {main} thrown in /home/vms/public_html/pops/v1.0.0/classes/database.php on line 69