Error establishing a database connection

Posted in: Newspaper
Post count: 58

Hi guys,

I am having lots of troubles with the site, it keeps kicking me out after making minor edits on the backend, and I end up getting the Default WordPress Install.php screen or eventually an “Error establishing a database connection”

After doing some digging online and trying to understand whats happening, adn applying the different usual troubleshooting options, i found out that most of the issues are due to exceeding the maximum queries per hour limit and therefore access to the database gets temporarily locked, so WP cant read from it. After 30/60 mins or so, I have access again.

Can you please help me figure this one out? Is this theme not setup to run on shared hosting? the hosting provider could only advise i upgrade to VPS hosting, but i am hoping we can stay with a shared plan.

Please help.
Any ideas how to fix this and avoid from it happening in the future?

Post count: 9544

Limit number of queries. Simply start with simpler design. Stuff like ‘related posts’ or ‘more from author’ or random elements, or using 5 modules per page, vs choosing ONE module for sidebar on posts, as one example.

I use max of three module types on home page, and no modules in footer, and only ONE module type in sidebar on posts.

Don’t use mega menu unless you absolutely need to.

Also, consider disabling XMLRPC, disabling comments, and using a security plugin like “Limit Login Attempts” to help cut down on bad actor system overloads.

Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘Newspaper’ is closed to new topics and replies.