DB Error: object(PDOException)#4 (8) { ["message":protected]=> string(106) "SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo for mariadb failed: Name or service not known" ["string":"Exception":private]=> string(0) "" ["code":protected]=> int(2002) ["file":protected]=> string(39) "/var/www/html/php/app_ed_tech/pdoDb.php" ["line":protected]=> int(20) ["trace":"Exception":private]=> array(4) { [0]=> array(6) { ["file"]=> string(39) "/var/www/html/php/app_ed_tech/pdoDb.php" ["line"]=> int(20) ["function"]=> string(11) "__construct" ["class"]=> string(3) "PDO" ["type"]=> string(2) "->" ["args"]=> array(3) { [0]=> string(47) "mysql:host=mariadb;dbname=echoquiz;charset=utf8" [1]=> string(8) "echoquiz" [2]=> object(SensitiveParameterValue)#5 (0) { } } } [1]=> array(6) { ["file"]=> string(33) "/var/www/html/php/echoQuiz/tn.php" ["line"]=> int(274) ["function"]=> string(13) "getConnection" ["class"]=> string(17) "app_ed_tech\pdoDb" ["type"]=> string(2) "::" ["args"]=> array(0) { } } [2]=> array(6) { ["file"]=> string(40) "/var/www/html/php/app_ed_tech/edTech.php" ["line"]=> int(342) ["function"]=> string(8) "tnLogout" ["class"]=> string(11) "echoQuiz\tn" ["type"]=> string(2) "::" ["args"]=> array(0) { } } [3]=> array(6) { ["file"]=> string(23) "/var/www/html/index.php" ["line"]=> int(7) ["function"]=> string(12) "specialPages" ["class"]=> string(18) "app_ed_tech\edTech" ["type"]=> string(2) "::" ["args"]=> array(0) { } } } ["previous":"Exception":private]=> object(PDOException)#2 (8) { ["message":protected]=> string(103) "PDO::__construct(): php_network_getaddresses: getaddrinfo for mariadb failed: Name or service not known" ["string":"Exception":private]=> string(0) "" ["code":protected]=> int(0) ["file":protected]=> string(39) "/var/www/html/php/app_ed_tech/pdoDb.php" ["line":protected]=> int(20) ["trace":"Exception":private]=> array(4) { [0]=> array(6) { ["file"]=> string(39) "/var/www/html/php/app_ed_tech/pdoDb.php" ["line"]=> int(20) ["function"]=> string(11) "__construct" ["class"]=> string(3) "PDO" ["type"]=> string(2) "->" ["args"]=> array(3) { [0]=> string(47) "mysql:host=mariadb;dbname=echoquiz;charset=utf8" [1]=> string(8) "echoquiz" [2]=> object(SensitiveParameterValue)#3 (0) { } } } [1]=> array(6) { ["file"]=> string(33) "/var/www/html/php/echoQuiz/tn.php" ["line"]=> int(274) ["function"]=> string(13) "getConnection" ["class"]=> string(17) "app_ed_tech\pdoDb" ["type"]=> string(2) "::" ["args"]=> array(0) { } } [2]=> array(6) { ["file"]=> string(40) "/var/www/html/php/app_ed_tech/edTech.php" ["line"]=> int(342) ["function"]=> string(8) "tnLogout" ["class"]=> string(11) "echoQuiz\tn" ["type"]=> string(2) "::" ["args"]=> array(0) { } } [3]=> array(6) { ["file"]=> string(23) "/var/www/html/index.php" ["line"]=> int(7) ["function"]=> string(12) "specialPages" ["class"]=> string(18) "app_ed_tech\edTech" ["type"]=> string(2) "::" ["args"]=> array(0) { } } } ["previous":"Exception":private]=> NULL ["errorInfo"]=> NULL } ["errorInfo"]=> array(3) { [0]=> string(5) "HY000" [1]=> int(2002) [2]=> string(83) "php_network_getaddresses: getaddrinfo for mariadb failed: Name or service not known" } }
Warning: Undefined global variable $pdoDB in /var/www/html/php/app_ed_tech/pdoDb.php on line 27

Fatal error: Uncaught Error: Call to a member function prepare() on null in /var/www/html/php/echoQuiz/tn.php:276 Stack trace: #0 /var/www/html/php/app_ed_tech/edTech.php(342): echoQuiz\tn::tnLogout() #1 /var/www/html/index.php(7): app_ed_tech\edTech::specialPages() #2 {main} thrown in /var/www/html/php/echoQuiz/tn.php on line 276