How To Fix WordPress Maintenance Mode

If your website suddenly shows a maintenance mode message, it can feel like something is seriously wrong. The good news is, it’s usually a simple fix. In this guide, we walk through how to fix WordPress maintenance mode, why it happens, and what to do to get your site back online quickly.

How To Fix WordPress Maintenance Mode When Your Site Gets Stuck

If you have a WordPress website, there’s a chance you’ve seen your website get stuck in the dreaded Maintenance Mode. You get the gray screen, and the site won’t load. In that moment of wondering how to fix WordPress maintenance mode, you might think your site is broken, hacked, or compromised. There was likely a glitch while running system updates.

This is usually a simple fix. The key is knowing where to look and what hidden file to delete.

In this blog, we’ll look at what the WordPress maintenance mode is, and how to fix your site if it is stuck in Maintenance mode. We’ll also give some pointers to make it not happen again.

What Is WordPress Maintenance Mode?

A WordPress site will automatically go into Maintenance mode while any core updates are running. While the site is updating the core system, plugins, or themes, the site will show that Maintenance mode with the “Briefly unavailable for scheduled maintenance” message.

From a technical standpoint, what happens is the WordPress system creates a temporary, and sometimes hidden, file named .maintenance. This file is added to the websites root directory of files.

When the updates are installed and completed, the file is automatically removed and the website will work again. There are times, unfortunately, that the site can get stuck in that maintenance mode.

Why WordPress Maintenance Mode Gets Stuck

When running those system updates, if the browser window or tab is closed, or if the refresh button is pressed, the site will likely get stuck in Maintenance mode. If the internet connection is lost on the devices that ran the updates, the site can get stuck in Maintenance mode. 

If there are a significant number of updates ran at the same time, the server can timeout. If this happens, the site will likely get stuck in Maintenance mode. Hint: this is why we recommend running updates regularly.

If there are themes or plugins that have a conflict once updated, it can put the site in Maintenance mode. This is another reason to be careful of which plugins get installed on a site. 

When running updates, don’t try to save time and have two people or two computers working on them. This can also send the site into Maintenance mode, and any time you saved will be quickly lost.

Will WordPress Maintenance Mode Turn Off On Its Own?

When WordPress runs the system updates correctly, it will automatically remove the .maintenance file at completion. If the site gets stuck in Maintenance mode, there is little chance of WordPress coming out of that on its own.

If the site is stuck in Maintenance mode and the .maintenance file remains, it will need to be deleted. You can wait and hope for the best, but I don’t think I’ve ever actually seen a WordPress site “unstuck” itself from Maintenance mode when it gets stuck there.

When it happens and the site is stuck in Maintenance mode, you will have to do some manual work to get it unstuck.

How To Fix WordPress Maintenance Mode

The only way to fix a WordPress site that is stuck in Maintenance mode is to delete the .maintenance file. You’ll need access to your website hosting through either FTP or cPanel. 

This login, FTP or cPanel, is not your WordPress admin login. It is a separate login that you’ll need to get from your hosting company. Any reputable hosting company should be able to either easily provide one of those logins or delete the file for you. 

Once logged in to FTP or cPanel, navigate to the main root folder. This is the folder that holds all of the WordPress files. You’ll also need to make sure that the FTP program or cPanel is showing all hidden files. The file that needs to be deleted is a temporary system file, so it will literally show up as just .maintenance. There is no file name before the .maintenance, or anything after. 

Once you find that file, you simply need to delete it. Once it is deleted, you can refresh your site. It should now be working like normal again. 

What To Check After Fixing Maintenance Mode

Once you’ve deleted the .maintenance file, be sure to reload your website right away. If the site loads, it confirms that the site is out of Maintenance mode. If it does not load, there could be deeper issues. You’ll likely need to reach out to your hosting provider for additional support.

Once the site is loading again, log back into the admin section and run the updates. Be sure to not close the browser window or hit refresh. You can keep the FTP program open or cPanel account open in case the same issue happens again. If the updates still won’t run properly and goes into Maintenance mode, you may need to talk to your hosting provider or web developer.

Once the updates are run, check the site again to make sure it is all working correctly. Make sure any pro-plugins are still connected properly and functioning. You may lso need to clear the cache on the browser.

How To Prevent WordPress Maintenance Mode Issues

The top reasons I’ve seen for sites to go into Maintenance mode is because the person running the updates hit refresh or closed the browser tab while the updates were running. When I run updates, I will click the button to run the updates and literally take my hands off the keyboard and mouse. I don’t want to have any accidental clicks or presses that cause this issue. 

If there are a lot of updates to run, update just a few at a time. Sometimes, one plugin update will cause issues with another. You’ll need to test and find out which ones are having a conflict. Running the updates one at a time can help point out the culprit plugin. 

Running one at a time can also make for an easier task for your hosting system. If you are on a  slower host, it might not be able to safely and securely do all the updates at once. Instead doing the updates one at a time makes it into a more manageable workload.

Once the plugins are updated, be sure to keep them updated regularly. Check them weekly to see what needs to be updated. This also adds a great level of security to your site. Outdated plugins and themes are common weak points that hackers and malware will attack.

Hosting Matters More Than You Think

The most common time a WordPress site will go into Maintenance mode is during updates. This updating time is a definite moment of risk for a WordPress site. Having a hosting company that will manage and run these updates for you can entirely remove this issue. 

If you’re hosting with Full Scope Creative, our hosting plans all include us running all the WordPress system updates. We monitor the updates, know when to run them, know how best to run them, and can fix any issue that comes up. If something goes wrong in the updates, and the site goes into Maintenance mode, we fix it and get the site back up and running.

If you choose to run updates in WordPress and host with Full Scope Creative, we can still jump in and restore the site if it is stuck in Maintenance mode. All you’d need to do is email, call, or text and we’ll get the .maintenance file deleted quickly for you.

An Easy Fix For A Common WordPress Problem

A WordPress website getting stuck in maintenance mode is a common issue, and almost always easy to fix. The .maintenance file needs to be deleted. Quick action can get your site unstuck with minimal downtime.

Knowing what can get a site stuck in Maintenance mode, knowing where to look for the file, and having the logins and tools needed can save a lot of frustration. 

If you’re not comfortable with any of these steps, reach out to your website hosting provider. They should be able to get the site out of Maintenance mode quickly.

If you’re not sure where to find the .maintenance file or don’t want to risk breaking anything, reach out to Full Scope Creative and we’ll help you figure out the next step.

We hired Full Scope Creative to redesign our nonprofit website. Chris and his team guided us through the process, providing valuable advice and expertise. They redesigned the overall look of our website, simplified the navigation, and created tutorials that complemented the provided training. They continue to be a valued partner, providing ongoing support, prompt responses to our questions, and affordable solutions when new projects arise. We highly recommend Chris and the team at Full Scope Creative!

~ Catherine Stern,
Untied Way Fox Cities