Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6920723
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T10:11:05+00:00 2026-05-27T10:11:05+00:00

I have a CS-CART ecommerce set up on a shared server. Lately it had

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T10:11:05+00:00Added an answer on May 27, 2026 at 10:11 am

    Errors like this can happen if the MySQL server isn’t reachable and PHP error handling is not implemented to anticipate this. mysql_connect() returns as MySQL resource pointer to the database server, but only if the connection actually works. If not, the resource pointer is empty and functions further down the line start to complain, which is what you’re seeing there. If this happens only intermittently, this is a typical sign of MySQL server overload.

    If you’re on a shared hosting server, chances are that another tenant is sometimes exhausting all the resources, so there is little you can do. But there may be a couple of things you can do to trace the problem further. If your phpMyAdmin interface allows you access to the Status tab, you can use it to gain some insight into the MySQL server’s status.

    For example, look at the number of queries it performs, and the number of simultaneous connections it allows. Sometimes, connections are denied because the max connection number is exhausted (some hosting environments allow you to change this). The server also keeps track of the failure statistics, it might give you some clues as to what’s going on.

    However, if you have no access to those statistics, or can’t change any settings on the server and you are sufficiently sure that your app isn’t causing the traffic overload, you should probably open a support ticket with your hosting provider.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am currently building an ecommerce site with PHP/MySQL. Recently, I have been working
I have seen several Questions comparing different ECommerce CMS's: Prestashop compared to Zen-Cart and
While building an ecommerce platform I have run into design problems. I'm working with
I have a simple cart page that displays items that are in someones cart,
Or vice versa. Update: Hmm, let's assume I have a shopping cart app, the
I have function getCartItems in cart.js and I want to call that function in
I have an Action that basically adds an item to a cart, the only
I have two tables, one called cart and one called items. Now I want
REVISED QUESTION : We have tracked this down to a custom add to cart
Let's say I have I have an online store with a shopping cart feature

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.