WordPress Site Keeps Going Down – Solutions
So your WordPress website keeps going offline on a regular basis and you don’t know what to do. Never fear! We’ve seen it all. If your site is going down consistently, there is a cause and we’re going to find it.
If your site goes down just once, take a look at our other post to troubleshoot that.
You may also want to view our page to make sure the site is actually down and it’s not just a local issue.
Most common reasons a WordPress site regularly goes offline
- Scheduled plugin or task issues
- Server resource limits
- Unrelated hosting issues
- Problems with caching plugins
- Malware or malicious attacks
- Too many plugins or queries
- Other plugin conflicts
So how do we troubleshoot this? I’ll show you what I would do to narrow this down. Ask yourself some questions:
Tired of dealing with your slow WordPress website? Enter in your email address here to receive the secret to lightning-fast load speeds overnight.
Is there any pattern to when the site goes offline?
If there is, then that helps us narrow down what the problem is.
If the site is going offline at the same time every day
If, for example, your site goes offline every single day at midnight, then you are almost certainly dealing with some kind of scheduled task issue. I would first try disabling any plugins that perform scheduled tasks, such as backup plugins and other maintenance plugins. If that doesn’t solve the problems, I would reach out to your website host and see if they are running anything.
Often what you’ll find is that a backup plugin is maxing out the resources of your server, and possibly reaching memory limits. Here’s a great article on increasing that memory limit.
If there is a pattern but it’s somewhat inconsistent
If your site goes down intermittently, but almost always during the day and especially during peak hours, it’s very likely that your server is reaching its resource limits due to high traffic. Server logs should help you narrow this down. Reach out to your host to see how you can access them.
Note that the traffic may not even be yours. It might be to other sites on your shared server! There’s not much you can do about that, other than switching hosting.
Generally the solution to any of these problems is to upgrade your website hosting.
If there’s no pattern
Continue on to the other sections! There are many things it could be.
Are you receiving an error message of some kind when it goes down?
An error message will typically guide you directly to the problem, unless it just says 500 server error, which could be almost anything.
If you see a PHP fatal error, that will usually guide you right to what you need. Often it will give a path to the file that is causing problems. Usually this will be a plugin! Look for the name of a plugin in that file path. If you can’t reach the site’s backend, navigate to that plugin’s folder and rename it via FTP or the online file manager in your website hosting account. That should disable it! Leave it off, and see if the site comes back.
If the error message you see seems to be branded from your hosting company, it’s possible and likely that the issues are related to your hosting. You might want to reach out to them and have them take a look.
If the error says that you’ve reached a memory limit, you might want to try increasing the PHP memory limit!
Do you have any caching plugins installed?
If you have any caching plugins such as W3 Total Cache, WP Super Cache, WP Rocket, or any others, you might want to try disabling them. Once they are disabled, leave them off and see if the site continues to go down. If it starts working, you’re all set! Try a different caching plugin or leave it off.
Malware or other malicious attacks
I would install the WordFence plugin and run a scan. If it finds evidence of malware throughout your site, hire a pro to take care of that for you. Removing malware can be difficult and time consuming! Especially if you don’t know what you’re doing.
There could also be a coordinated DDoS attack, which basically just floods your site with traffic until it crashes. WordFence should also alert you to this, and possibly even block the attackers.
Are you running a large number of plugins on your website?
“Large number” can vary from site to site. If you have cheap shared hosting, 15 or 20 plugins is probably pushing it. Especially if you’ve slowly added them yourself and aren’t a website developer. With higher-end hosting, you should be able to handle 40 or more plugins as long as they are good plugins.
If you have more than that, you may want to try disabling some or all of them, and seeing if you still have issues.
Likewise, if your website has a lot of complicated queries or is poorly coded, you code regularly bring it down that way. Try using a different theme, or contacting a pro to take a look for you.
None of these helped?
Hiring a professional WordPress expert is always going to be your best bet if you’re facing a complicated issue. We’re more than happy to take a look for you if you like! Just fill out the form below.
If none of those helped, the most likely problem is still plugin-related. You could always try disabling some or all of your plugins and seeing if that solves the problem. Checking your server logs is always helpful, too. Contact your host if you don’t know how to do that and see how you can enable and view error logs.