object(PDOException)#2 (8) { ["message":protected]=> string(117) "SQLSTATE[HY000] [2003] Can't connect to MySQL server on 'legalcommunityv2.serverwl.com' (111 "Connessione rifiutata")" ["string":"Exception":private]=> string(0) "" ["code":protected]=> int(2003) ["file":protected]=> string(62) "/var/www/vhosts/lcsondaggi.it/httpdocs/eventi/event_config.php" ["line":protected]=> int(39) ["trace":"Exception":private]=> array(2) { [0]=> array(6) { ["file"]=> string(62) "/var/www/vhosts/lcsondaggi.it/httpdocs/eventi/event_config.php" ["line"]=> int(39) ["function"]=> string(11) "__construct" ["class"]=> string(3) "PDO" ["type"]=> string(2) "->" ["args"]=> array(3) { [0]=> string(63) "mysql:host=legalcommunityv2.serverwl.com;dbname=financec_events" [1]=> string(14) "financec_event" [2]=> string(8) "5nYhk2!7" } } [1]=> array(4) { ["file"]=> string(59) "/var/www/vhosts/lcsondaggi.it/httpdocs/eventi/my_booked.php" ["line"]=> int(3) ["args"]=> array(1) { [0]=> string(62) "/var/www/vhosts/lcsondaggi.it/httpdocs/eventi/event_config.php" } ["function"]=> string(7) "include" } } ["previous":"Exception":private]=> NULL ["errorInfo"]=> NULL }
Catchable fatal error: Argument 1 passed to admin::__construct() must be an instance of PDO, null given, called in /var/www/vhosts/lcsondaggi.it/httpdocs/eventi/event_config.php on line 48 and defined in /var/www/vhosts/lcsondaggi.it/httpdocs/eventi/class/class_admin.php on line 11