Hi,
I periodically would receive a burst of emails from one of our SS (2.4.6) sites. But now I'm receiving it more frequently (fortnightly) from more of our SS sites.
I get the following 4 errors in quick succession:
Warning/Error #1
Warning: mysql_query() expects parameter 2 to be resource, boolean given
At line 116 in /home/site1/public_html/sapphire/core/model/MySQLDatabase.php
mysql_query(SET CHARACTER SET 'utf8',)
Line 116 of MySQLDatabase.php
MySQLDatabase->query(SET CHARACTER SET 'utf8')
Line 60 of MySQLDatabase.php
MySQLDatabase->__construct(Array)
Line 97 of DB.php
DB::connect(<filtered>)
Line 121 of main.php
Warning/Error #2
Warning: mysql_error() expects parameter 1 to be resource, boolean given
At line 123 in /home/site1/public_html/sapphire/core/model/MySQLDatabase.php
mysql_error()
Line 123 of MySQLDatabase.php
MySQLDatabase->query(SET CHARACTER SET 'utf8')
Line 60 of MySQLDatabase.php
MySQLDatabase->__construct(Array)
Line 97 of DB.php
DB::connect(<filtered>)
Line 121 of main.php
Warning/Error #3
Error: Couldn't run query: SET CHARACTER SET 'utf8'
At line 525 in /home/site1/public_html/sapphire/core/model/MySQLDatabase.php
Couldn't run query: SET CHARACTER SET 'utf8'
Line 525 of MySQLDatabase.php
MySQLDatabase->databaseError(Couldn't run query: SET CHARACTER SET 'utf8' | ,256)
Line 123 of MySQLDatabase.php
MySQLDatabase->query(SET CHARACTER SET 'utf8')
Line 60 of MySQLDatabase.php
MySQLDatabase->__construct(Array)
Line 97 of DB.php
DB::connect(<filtered>)
Line 121 of main.php
Warning/Error #4
Warning: mysql_connect() [function.mysql-connect]: User site1_ss more than 'max_user_connections' active connections
At line 57 in /home/site1/public_html/sapphire/core/model/MySQLDatabase.php
mysql_connect(<filtered>,<filtered>,<filtered>,<filtered>)
Line 57 of MySQLDatabase.php
MySQLDatabase->__construct(Array)
Line 97 of DB.php
DB::connect(<filtered>)
Line 121 of main.php
What looked suspicious was the warning User site1_ss more than 'max_user_connections' active connections. I enquired of the web host who suggested that it was due to the code not closing mysql connections cleanly.
What do you think? These sites aren't even experiencing an enormous traffic spike at the times that the errors are being experienced.
Thank you very much.
VWD.