Database connection problem.
-
Hello:
I have a single (non-multi-site) wordpress website that has been running for a while on version 3.6. Yesterday while browsing the site some of my users noticed that there was an error at the very bottom of the page. The error states:
ERROR ESTABLISHING A DATABASE CONNECTION
If your site does not display, please contact the owner of this network. If you are the owner of this network please check that MySQL is running properly and all tables are error free.
Database tables are missing. This means that MySQL is not running, WordPress was not installed properly, or someone deleted wp_site. You really should look at your database now.
What do I do now? Read the bug report page. Some of the guidelines there may help you figure out what went wrong. If you’re still stuck with this message, then check that your database contains the following tables:
wp_users
wp_usermeta
wp_blogs
wp_signups
wp_site
wp_sitemeta
wp_registration_log
wp_blog_versions
– See more at: http://<mywebsiteurl.com>/#sthash.SJ5DprGV.dpufLet me clarify first that my website actually loads up just fine aside from the fact that this error shows up at the very bottom of my site on every single page. Obviously the connection to the database is just fine and all of the tables mentioned in this error (except wp_users and wp_usermeta) do not exist since this is not a multi-site installation. What I have read on regards to this error is that this is due to a misconfiguration while trying to set up multi-sites. There are only two people (including myself) that have access to the wp-config.php file and none of us have changed it. The file’s last update times corresponds to the last time that we recorded any changes. I have also diffed this file from an earlier back and everything looks exactly the same. I have also ran checks on my directory structure to ensure that no other configuration files have been changed since my last update and it seems that nothing has been updated recently (last week or so).
My only suspicion is that this may have something to do with the current theme. It is a custom theme which our webmaster has edited and created a child theme from. I am not familiar at all as to how themes/child themes work but when I take a look at the source for any of the pages on the site in the area just where the error starts I see something that says “Global Footer Menu loaded from transient cache”. Am I way off here? If this is not the problem what else could be causing these errors to pop up?
The topic ‘Database connection problem.’ is closed to new replies.