Exception -> object(PDOException)#2 (8) { ["message":protected]=> string(48) "SQLSTATE[HY000] [2002] No such file or directory" ["string":"Exception":private]=> string(0) "" ["code":protected]=> int(2002) ["file":protected]=> string(41) "/opt/app-data/www/html/include/db.inc.php" ["line":protected]=> int(9) ["trace":"Exception":private]=> array(5) { [0]=> array(5) { ["file"]=> string(41) "/opt/app-data/www/html/include/db.inc.php" ["line"]=> int(9) ["function"]=> string(11) "__construct" ["class"]=> string(3) "PDO" ["type"]=> string(2) "->" } [1]=> array(3) { ["file"]=> string(41) "/opt/app-data/www/html/include/db.inc.php" ["line"]=> int(20) ["function"]=> string(16) "connectDBWithPDO" } [2]=> array(4) { ["file"]=> string(48) "/opt/app-data/www/html/include/cms_admin.inc.php" ["line"]=> int(24) ["args"]=> array(1) { [0]=> string(41) "/opt/app-data/www/html/include/db.inc.php" } ["function"]=> string(12) "include_once" } [3]=> array(4) { ["file"]=> string(34) "/opt/app-data/www/html/en/news.php" ["line"]=> int(7) ["args"]=> array(1) { [0]=> string(48) "/opt/app-data/www/html/include/cms_admin.inc.php" } ["function"]=> string(12) "include_once" } [4]=> array(4) { ["file"]=> string(37) "/opt/app-data/www/html/zh_HK/news.php" ["line"]=> int(2) ["args"]=> array(1) { [0]=> string(34) "/opt/app-data/www/html/en/news.php" } ["function"]=> string(12) "include_once" } } ["previous":"Exception":private]=> NULL ["errorInfo"]=> array(3) { [0]=> string(5) "HY000" [1]=> int(2002) [2]=> string(25) "No such file or directory" } }
Fatal error: Uncaught PDOException: SQLSTATE[HY000] [2002] No such file or directory in /opt/app-data/www/html/include/db.inc.php:9 Stack trace: #0 /opt/app-data/www/html/include/db.inc.php(9): PDO->__construct() #1 /opt/app-data/www/html/include/db.inc.php(20): connectDBWithPDO() #2 /opt/app-data/www/html/include/cms_admin.inc.php(24): include_once('...') #3 /opt/app-data/www/html/en/news.php(7): include_once('...') #4 /opt/app-data/www/html/zh_HK/news.php(2): include_once('...') #5 {main} thrown in /opt/app-data/www/html/include/db.inc.php on line 9