PDOException: PDO::__construct(): MySQL server has gone away in /home/idesign/public_html/Class/Database.php:87 Stack trace: #0 /home/idesign/public_html/Class/Database.php(87): PDO->__construct('mysql:host=loca...', 'learning', 'c;B4.sb7y%du') #1 /home/idesign/public_html/Manager/TestManager.php(24): Database->__construct('localhost:3306', 'learning_etvfun', 'learning', 'c;B4.sb7y%du', 'utf8mb4') #2 /home/idesign/public_html/userMenu.php(57): TestManager->__construct('localhost:3306', 'learning_etvfun', 'learning', 'c;B4.sb7y%du', 'utf8mb4') #3 /home/idesign/public_html/userTestList.php(1424): require_once('/home/idesign/p...') #4 {main} Next PDOException: SQLSTATE[HY000] [2006] MySQL server has gone away in /home/idesign/public_html/Class/Database.php:87 Stack trace: #0 /home/idesign/public_html/Class/Database.php(87): PDO->__construct('mysql:host=loca...', 'learning', 'c;B4.sb7y%du') #1 /home/idesign/public_html/Manager/TestManager.php(24): Database->__construct('localhost:3306', 'learning_etvfun', 'learning', 'c;B4.sb7y%du', 'utf8mb4') #2 /home/idesign/public_html/userMenu.php(57): TestManager->__construct('localhost:3306', 'learning_etvfun', 'learning', 'c;B4.sb7y%du', 'utf8mb4') #3 /home/idesign/public_html/userTestList.php(1424): require_once('/home/idesign/p...') #4 {main}PDOException: SQLSTATE[HY000] [2002] No route to host in /home/idesign/public_html/Class/Database.php:87 Stack trace: #0 /home/idesign/public_html/Class/Database.php(87): PDO->__construct('mysql:host=loca...', 'learning', 'c;B4.sb7y%du') #1 /home/idesign/public_html/Manager/TestHistoryManager.php(20): Database->__construct('localhost:3306', 'learning_etvfun', 'learning', 'c;B4.sb7y%du', 'utf8mb4') #2 /home/idesign/public_html/userMenu.php(58): TestHistoryManager->__construct('localhost:3306', 'learning_etvfun', 'learning', 'c;B4.sb7y%du', 'utf8mb4') #3 /home/idesign/public_html/userTestList.php(1424): require_once('/home/idesign/p...') #4 {main}PDOException: SQLSTATE[HY000] [2002] No route to host in /home/idesign/public_html/Class/Database.php:87 Stack trace: #0 /home/idesign/public_html/Class/Database.php(87): PDO->__construct('mysql:host=loca...', 'learning', 'c;B4.sb7y%du') #1 /home/idesign/public_html/Manager/CustomTestManager.php(19): Database->__construct('localhost:3306', 'learning_etvfun', 'learning', 'c;B4.sb7y%du', 'utf8mb4') #2 /home/idesign/public_html/userMenu.php(59): CustomTestManager->__construct('localhost:3306', 'learning_etvfun', 'learning', 'c;B4.sb7y%du', 'utf8mb4') #3 /home/idesign/public_html/userTestList.php(1424): require_once('/home/idesign/p...') #4 {main}PDOException: SQLSTATE[HY000] [2002] No route to host in /home/idesign/public_html/Class/Database.php:87 Stack trace: #0 /home/idesign/public_html/Class/Database.php(87): PDO->__construct('mysql:host=loca...', 'learning', 'c;B4.sb7y%du') #1 /home/idesign/public_html/Manager/Manager.php(23): Database->__construct('localhost:3306', 'learning_etvfun', 'learning', 'c;B4.sb7y%du', 'utf8mb4') #2 /home/idesign/public_html/Manager/UserMenuManager.php(18): Manager->__construct('localhost:3306', 'learning_etvfun', 'learning', 'c;B4.sb7y%du', 'utf8mb4') #3 /home/idesign/public_html/userMenu.php(60): UserMenuManager->__construct('localhost:3306', 'learning_etvfun', 'learning', 'c;B4.sb7y%du', 'utf8mb4') #4 /home/idesign/public_html/userTestList.php(1424): require_once('/home/idesign/p...') #5 {main}
Fatal error: Uncaught Error: Call to a member function prepare() on null in /home/idesign/public_html/Class/Database.php:45 Stack trace: #0 /home/idesign/public_html/Class/Database.php(170): Database->RunSql('SELECT m.*, 'NA...', 'SELECT') #1 /home/idesign/public_html/Manager/UserMenuManager.php(225): Database->DbSelect('SELECT m.*, 'NA...') #2 /home/idesign/public_html/userMenu.php(317): UserMenuManager->GetUserMenuByGroupId(2) #3 /home/idesign/public_html/userTestList.php(1424): require_once('/home/idesign/p...') #4 {main} thrown in /home/idesign/public_html/Class/Database.php on line 45