Fatal error: Uncaught Exception: unable to establish connection for app1 - error 1040: Too many connections in /var/www/gfll/classes/db.php:576 Stack trace: #0 /var/www/gfll/classes/db.php(618): gfll\db->_getRelevantConnection('INSERT INTO `ip...') #1 /var/www/gfll/classes/db.php(91): gfll\db->_process('INSERT INTO `ip...', 'query') #2 /var/www/gfll/classes/dbobject.php(214): gfll\db->query('INSERT INTO `ip...') #3 /var/www/gfll/classes/dbsearch.php(808): gfll\dbobject->writeBack() #4 [internal function]: gfll\dbsearch::findOrCreate('ip', Array) #5 /var/www/gfll/traits/cacheable.php(182): call_user_func_array(Array, Array) #6 /var/www/gfll/traits/cacheable.php(87): gfll\dbsearch::_exec('findOrCreate', Array) #7 [internal function]: gfll\dbsearch::cachedStatic('findOrCreate', 'ip', Array) #8 /var/www/gfll/classes/dbobject.php(334): call_user_func_array('\\gfll\\dbsearch:...', Array) #9 /var/www/gfll/classes/dbobject.php(161): gfll\dbobject->saveForeignTableData() #10 /var/www/gfll/models/stats.php(134): gfll\dbobject->writ in /var/www/gfll/classes/db.php on line 576