I have a CS-CART ecommerce set up on a shared server. Lately it had some problems and I'm getting mysql errors, like these ones:
PHP Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/mp/public_html/core/db/mysql.php on line 53
PHP Warning: mysql_errno(): supplied argument is not a valid MySQL-Link resource in /home/mp/public_html/core/db/mysql.php on line 57
PHP Warning: mysql_errno(): supplied argument is not a valid MySQL-Link resource in /home/mp/public_html/core/db/mysql.php on line 57
PHP Warning: mysql_error(): supplied argument is not a valid MySQL-Link resource in /home/mp/public_html/core/db/mysql.php on line 64
PHP Warning: mysql_errno(): supplied argument is not a valid MySQL-Link resource in /home/mp/public_html/core/db/mysql.php on line 127
The weird thing is that I randomly receive the error, on random pages. It's not something that appears on a certain page or after doing a certain thing.
To make things more complicated, this only happens sometimes. Is there any chance that this could be caused by the server/mysql process?
For example, the website loads excellent now, all features work flawlessly - I tested most of the features, pages, and I did not receive the errors. A few hours ago everything loaded slow and some of the pages returned the errors above.
Any input will be appreciated. Thank you.