Fatal error: Uncaught PDOException: SQLSTATE[HY000] [1040] Too many connections in /home/afnspicj/public_html/APP/Core/Connection.php:48
Stack trace:
#0 /home/afnspicj/public_html/APP/Core/Connection.php(48): PDO->__construct('mysql:host=loca...', 'afnspicj_taher', Object(SensitiveParameterValue), Array)
#1 /home/afnspicj/public_html/APP/Core/DB.php(10): Connection->connect('SONGS')
#2 /home/afnspicj/public_html/APP/Core/DB.php(24): DB::DBConnect('SONGS')
#3 /home/afnspicj/public_html/APP/Core/Models/Option.php(15): DB::selectRow('SONGS', 'SELECT `option_...', Array, false)
#4 /home/afnspicj/public_html/APP/Middlewares/checkAccess.php(412): Option::get('_security_show_...')
#5 /home/afnspicj/public_html/APP/Middlewares/index.php(3): require_once('/home/afnspicj/...')
#6 /home/afnspicj/public_html/APP/Config/loader.php(31): require_once('/home/afnspicj/...')
#7 /home/afnspicj/public_html/config.php(23): require_once('/home/afnspicj/...')
#8 /home/afnspicj/public_html/index.php(11): require_once('/home/afnspicj/...')
#9 {main}
Next RuntimeException: Database connection failed: SQLSTATE[HY000] [1040] Too many connections in /home/afnspicj/public_html/APP/Core/Connection.php:52
Stack trace:
#0 /home/afnspicj/public_html/APP/Core/DB.php(10): Connection->connect('SONGS')
#1 /home/afnspicj/public_html/APP/Core/DB.php(24): DB::DBConnect('SONGS')
#2 /home/afnspicj/public_html/APP/Core/Models/Option.php(15): DB::selectRow('SONGS', 'SELECT `option_...', Array, false)
#3 /home/afnspicj/public_html/APP/Middlewares/checkAccess.php(412): Option::get('_security_show_...')
#4 /home/afnspicj/public_html/APP/Middlewares/index.php(3): require_once('/home/afnspicj/...')
#5 /home/afnspicj/public_html/APP/Config/loader.php(31): require_once('/home/afnspicj/...')
#6 /home/afnspicj/public_html/config.php(23): require_once('/home/afnspicj/...')
#7 /home/afnspicj/public_html/index.php(11): require_once('/home/afnspicj/...')
#8 {main}
thrown in /home/afnspicj/public_html/APP/Core/Connection.php on line 52