Fatal error: Uncaught PDOException: SQLSTATE[HY000] [1040] Too many connections in /home/nghmaty/public_html/app/core/Database.php:26
Stack trace:
#0 /home/nghmaty/public_html/app/core/Database.php(26): PDO->__construct('mysql:host=loca...', 'nghmaty_db', Object(SensitiveParameterValue), Array)
#1 /home/nghmaty/public_html/app/core/Database.php(37): App\Core\Database->__construct()
#2 /home/nghmaty/public_html/app/core/Model.php(19): App\Core\Database::instance()
#3 /home/nghmaty/public_html/app/controllers/frontend/SearchController.php(49): App\Core\Model->__construct()
#4 /home/nghmaty/public_html/app/controllers/frontend/SearchController.php(20): App\Controllers\Frontend\SearchController->fetchResults('\xD9\x85\xD9\x87\xD8\xB1\xD8\xAC\xD8\xA7\xD9\x86 \xD9\x82...', false, 59)
#5 [internal function]: App\Controllers\Frontend\SearchController->index('59')
#6 /home/nghmaty/public_html/app/core/Router.php(132): call_user_func_array(Array, Array)
#7 /home/nghmaty/public_html/app/core/Router.php(76): App\Core\Router->invokeHandler(Array, Array, Object(App\Core\Request))
#8 /home/nghmaty/public_html/public/index.php(9): App\Core\Router->dispatch(Object(App\Core\Request))
#9 {main}
thrown in /home/nghmaty/public_html/app/core/Database.php on line 26