WordPressWordPress Stuck in Maintenance Mode: How to Fix It in 5 Minutes

WordPress Stuck in Maintenance Mode: How to Fix It in 5 Minutes

WordPress Stuck in Maintenance Mode: How to Fix It in 5 Minutes

You click “Update” on a few plugins, close the browser tab a little too early, and suddenly your whole website is gone — replaced by a single polite line: “Briefly unavailable for scheduled maintenance. Check back in a minute.”

A minute passes. Then ten. Then an hour. Your site still shows the same message, and the panic starts to set in. Is the site broken? Did the update corrupt something? Do you need to restore a backup?

Take a breath. A WordPress stuck in maintenance mode is one of the most common WordPress errors, and it is also one of the fastest to fix. In most cases your site is back in under five minutes and nothing is actually damaged. This guide walks you through the whole fix, step by step, using a real case — and explains the one tricky detail most tutorials skip: why the message sometimes refuses to go away even after an hour.

WordPress Stuck in Maintenance Mode: What Happened to Daniel’s Site

Daniel runs a small business-coaching site on WordPress — his booking page, his blog, and the landing page for his coaching programme all live there. One Tuesday afternoon he logged into his dashboard and saw four plugin updates waiting: a contact form plugin, a caching plugin, a security plugin, and a page builder add-on.

He did what most of us do: he ticked all four, clicked “Update”, and watched the progress bar start moving. Then his phone rang. It was a client, and without thinking he closed the browser tab mid-update to take the call.

When he came back twenty minutes later, his site showed the maintenance message. He refreshed — same message. He tried the WordPress admin — same message, because maintenance mode locks out the admin area too. He waited an hour. Still the same message.

Daniel’s site was not hacked, and nothing was corrupted. When WordPress starts a core, theme, or plugin update, it creates a tiny hidden file called .maintenance in the root folder of the site. That file tells WordPress to show the maintenance message to every visitor while the update runs, and when the update finishes, WordPress deletes the file automatically and the site comes back.

But Daniel had closed the tab mid-update. The update process was interrupted, so WordPress never got to the step where it deletes the file. The .maintenance file stayed behind, and the site stayed in maintenance mode.

First, Confirm No Update Is Still Running

Before you delete anything, check whether an update is genuinely still in progress. If you delete the .maintenance file while a plugin is halfway through writing its files, you can end up with a half-updated plugin — a much bigger headache.

The check is simple: wait at least 10 minutes from the moment the update started. A normal plugin update takes seconds to a couple of minutes, so if the message has been showing for more than 10 minutes, the update is almost certainly not running anymore. If it has been showing for an hour, as it had for Daniel, you can be confident nothing is still updating. The update died the moment the browser tab closed.

Here is one important fact: WordPress core stops honouring the .maintenance file after 10 minutes. The file contains a timestamp, and if that timestamp is more than 10 minutes old, WordPress ignores the file and serves the site normally. That is built into core on purpose, so a stuck update cannot lock a site forever.

So if your site still shows the maintenance message after an hour, one of two things is going on:

  • Your page cache or CDN is still serving the old 503 page. The site itself is fine, but a cached copy of the maintenance page is being handed to every visitor. This is the most common cause, and Daniel’s case turned out to be exactly this.
  • The .maintenance file was not written by WordPress core — for example, a plugin or a custom maintenance mode tool created its own file or setting. In that case the 10-minute rule does not apply, because core never manages that file.

How do you tell which one it is? Delete the .maintenance file (Method 1 below) and check the site in a private browser window. If the site comes back, it was the file. If it comes back only after you also clear the cache, it was the cache. If it is still stuck after both, look for a maintenance mode setting in a plugin or your hosting panel.

Method 1: Delete the .maintenance File via cPanel File Manager

This is the easiest method for most people, and it is the one Daniel used. You only need your hosting account login — no extra software.

  1. Log into your hosting control panel (cPanel) and open File Manager.
  2. Open the root folder of your WordPress installation. For most sites this is public_html. If WordPress lives in a subfolder or an add-on domain, navigate to that folder instead.
  3. The .maintenance file is hidden — files starting with a dot are hidden by default. Click Settings in the top-right corner of File Manager, tick Show Hidden Files (dotfiles), and click Save.
  4. You should now see .maintenance in the folder, alongside wp-config.php, wp-content, and the other WordPress files.
  5. Right-click .maintenance and choose Delete. Confirm the deletion.
  6. Open your site in a new private/incognito browser window. It should load normally.

Close-up of a hosting file manager on a laptop screen showing website files

Daniel found the file within a minute of opening File Manager. He deleted it, refreshed his site — and got the maintenance message again. Remember the 10-minute rule: the message had been showing for over an hour, so the file itself was almost certainly not the problem anymore. What he was seeing was a cached copy of the maintenance page, which we fix properly in Method 4. First, though, here are the other two ways to delete the file, for anyone who does not have cPanel access.

Method 2: Delete the .maintenance File via FTP (FileZilla)

If your host does not use cPanel, or you simply prefer FTP, the fix is identical — you are just deleting the same file through a different tool.

  1. Open FileZilla (or any FTP client) and connect with the FTP credentials from your hosting account. If you do not have them, your host can provide them, or you can create an FTP account in your hosting panel.
  2. In the remote site panel, navigate to the root folder of your WordPress installation — usually public_html.
  3. Hidden files are invisible in FileZilla by default too. Go to Server > Force showing hidden files in the top menu and make sure it is ticked.
  4. Find the .maintenance file in the list, right-click it, and choose Delete.
  5. Check your site in a private browser window.

Whether you use File Manager or FTP, you are doing the same thing: removing the one file that tells WordPress to show the maintenance page.

Method 3: Deactivate Maintenance Mode with WP-CLI

If you are comfortable with the command line, WP-CLI gives you the cleanest version of this fix — and it also tells you the current state before you change anything. This is the method I use on my own sites.

Connect to your server over SSH and navigate to your WordPress root folder:

cd ~/public_html

Then check whether maintenance mode is active:

wp maintenance-mode status

If maintenance mode is on, you will see output like this:

Maintenance mode is active.

Now turn it off:

wp maintenance-mode deactivate

You should see a confirmation:

Success: Maintenance mode deactivated.

Refresh your site in a private window to confirm it is back. The advantage of this method is that WP-CLI removes the .maintenance file through WordPress itself, so there is no chance of deleting the wrong file. If the command tells you maintenance mode is not active but your visitors still see the message, you have your answer straight away: the problem is the cache, not the file.

Method 4: Clear the Cache and Test Properly

This is the step most people skip — and it is the step that actually fixed Daniel’s site.

When Daniel deleted the .maintenance file and refreshed, he still saw the maintenance page. The reason was his caching plugin combined with his host’s server-level cache: the maintenance page had been cached as a 503 response, and the cache kept serving that stored copy to every visitor even though the underlying site was already fine.

Here is the correct way to clear it:

  1. Clear your caching plugin’s cache. If you can get into the WordPress admin now that the file is gone, open your caching plugin (WP Rocket, W3 Total Cache, LiteSpeed Cache, or whichever you use) and click Purge All or Clear Cache. If you still cannot reach the admin, delete the contents of the wp-content/cache folder via File Manager or FTP — but do not delete the cache folder itself, just the files inside it.
  2. Clear your CDN cache. If you use Cloudflare or another CDN, log into its dashboard and purge the cache for the whole site. A CDN can hold the old maintenance page for hours if you skip this step.
  3. Test in a private/incognito window. Your own browser may be showing you a cached copy even after the server cache is clean.
  4. Check the site from a different network — for example, load it on your phone with Wi-Fi turned off. If it loads on mobile data but not on your home Wi-Fi, the problem is a cache somewhere on your side, not the site.

Daniel cleared his caching plugin’s cache and purged Cloudflare, then opened his site in a private window. It loaded instantly — homepage, booking page, blog, everything exactly as it was before the update. The whole fix, from finding the file to the site being back, took him under five minutes once he knew what to look for.

A website owner smiling with relief as a website loads normally again on a laptop

What to Check After Your Site Is Back

Getting the site back online is only half the job. The interrupted update still needs to be finished properly — otherwise you can end up with a plugin that is half old and half new, which is how mysterious errors start appearing days later.

1. Finish the interrupted updates, one at a time

Go to Dashboard > Updates in your WordPress admin. You should see the same four plugin updates Daniel saw, still waiting. Update them one at a time — click “Update” on the first plugin, wait for it to finish completely, then move on to the next. Never update several plugins at once again, and never close the tab while an update is running.

Daniel updated his four plugins one by one. All four installed cleanly, with no errors.

2. Check the plugin list for a half-updated plugin

Go to Plugins > Installed Plugins and scan the list. Look for any plugin showing an error notice, a version number that does not match the latest release, or a warning that the plugin was deactivated. If a plugin looks half-updated, deactivate it, delete it, and reinstall it fresh from the WordPress plugin directory. A clean reinstall takes two minutes and removes any doubt.

3. Check for other errors

A stuck maintenance mode is usually an isolated incident, but while you are in the admin area, do a quick sanity check: open a few key pages, submit a test contact form, and check that your site’s main features still work. If you spot a different error — a 404 error, for example — fix that separately rather than assuming it is related. And if a plugin starts misbehaving after the interrupted update, the culprit is often a plugin conflict rather than the maintenance mode itself.

For a broader overview of the errors WordPress site owners run into most often, see our common WordPress errors hub — maintenance mode is only one entry on that list.

How to Prevent It Next Time

Daniel’s problem was entirely preventable, and the habits that prevent it are simple:

  • Update one plugin at a time. It takes a little longer, but if one update fails you know exactly which one it was, and the others are untouched.
  • Never close the browser tab during an update. Wait for the confirmation message that the update has finished before you navigate away.
  • Keep a backup before updating. A backup plugin or your host’s daily backup means that even in the worst case — a genuinely broken update — you can restore the site in minutes instead of rebuilding it.
  • Keep WordPress, your theme, and your plugins up to date regularly. Small, frequent updates are far less likely to cause trouble than a backlog of twenty updates done all at once.

If you want a second opinion on the fix, WPBeginner’s guide to fixing WordPress stuck in maintenance mode covers the same methods with screenshots — a useful cross-check if anything here behaves differently on your host.

The Finished Result

Daniel’s site was back in under five minutes once he found the .maintenance file in File Manager and cleared the cache. All four plugins updated cleanly afterwards, one at a time, and his booking page never missed a client — the maintenance message had only ever been visible to visitors, and the bookings already made were untouched.

That is the thing to remember about WordPress stuck in maintenance mode: it looks alarming, it locks you out of your own admin, and it makes your site look dead to the world. But in almost every case the fix is a single small file and a cache purge. Delete .maintenance, clear the cache, finish your updates one by one — and you are done.

If your site is showing the maintenance message right now, stop waiting for it to fix itself. Open File Manager, show the hidden files, delete .maintenance, and purge the cache. Five minutes from now, your site will be back.

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Subscribe Today

GET EXCLUSIVE FULL ACCESS TO PREMIUM CONTENT

LATEST UPDATES REGULARLY

GET EXCLUSIVE CONTENTS ON WORDPRESS, THEMES, PLUGINS & TOOLS

REGULAR PROMOTIONS AND TIPS

Get unlimited access to our EXCLUSIVE Content and our archive of subscriber stories.

Exclusive content

Latest article

More article