Home/Blog/How to Fix WordPress Stuck in Maintenance Mode (2026)

How to Fix WordPress Stuck in Maintenance Mode (2026)

WordPress stuck in maintenance mode — laptop showing maintenance screen

You click “Update” on a plugin and instead of your website you see: “Briefly unavailable for scheduled maintenance. Check back in a minute.” A minute passes, then ten. Your WordPress site is stuck in maintenance mode — and every visitor sees the same screen. The good news: it is one of the easiest WordPress errors to fix. Usually, deleting a single hidden file brings your site back in under five minutes. This guide shows you how to fix it, why it happens, and how to stop it happening again.

What Is WordPress Maintenance Mode?

Every time you update WordPress core, a theme or a plugin, your site briefly enters maintenance mode. It creates a tiny temporary file called .maintenance in your site’s root folder; while that file exists, visitors see the maintenance message instead of your content. Normally the file is deleted automatically when the update finishes, so maintenance mode lasts only a few seconds — but if an update is interrupted, the message stays up indefinitely.

Why Does WordPress Get Stuck in Maintenance Mode?

A stuck screen almost always means the update died before its cleanup step. The most common causes are:

  • An interrupted update — you closed the tab or lost your connection mid-update.
  • A slow server — the update timed out, common on cheap shared hosting.
  • A PHP limit — the update ran out of memory or hit the maximum execution time.
  • Updating too much at once — core, theme and plugin updates together raise the risk.
  • A plugin conflict — a faulty plugin crashed mid-update and took the process down with it.

How to Fix WordPress Stuck in Maintenance Mode

The fix is simple: delete the .maintenance file from your root folder. That is usually public_html — the folder holding wp-config.php, wp-admin and wp-content. The file starts with a dot, so it is hidden by default — show hidden files first. Back up first if you can — the crashed update may still need attention.

Method 1: Delete the File with cPanel File Manager

  1. Log in to your hosting account, open cPanel and click File Manager.
  2. Open public_html, or the folder where WordPress is installed.
  3. Click Settings and tick “Show Hidden Files (dotfiles)”.
  4. Find .maintenance, right-click it and choose Delete.
  5. Reload your website — the message should be gone. If not, clear your browser cache.

Method 2: Delete the File with FTP (FileZilla)

  1. Connect with FileZilla using the FTP details from your hosting panel.
  2. Go to Server > Force showing hidden files.
  3. Open the root folder and find .maintenance.
  4. Right-click it, select Delete, then hard-refresh with Ctrl+F5.

Fixing WordPress maintenance mode in the file manager

Method 3: Delete the File with WP-CLI

With SSH access, WP-CLI is fastest. Open a terminal in your WordPress root folder and run:

wp maintenance-mode deactivate

This removes the file in one step — check the current state first with wp maintenance-mode status.

What If the Error Is Still There?

If the message is still showing, work through these checks. First, clear every cache — browser, caching plugin, CDN and host cache — since a cached copy of the maintenance page can linger long after the file is gone. Second, wait a few minutes and refresh: WordPress ignores a .maintenance file older than ten minutes, so a background update may still finish on its own. Third, if the file keeps reappearing, a plugin is triggering maintenance mode again. Rename wp-content/plugins to plugins-old over FTP to deactivate all plugins at once, then restore it and reactivate them one by one to find the culprit. Finally, re-run the interrupted update one item at a time. If you hit a different error, our guide to fixing the database connection error covers the next most common failure.

How to Prevent It Happening Again

  • Update one item at a time instead of using “Update All”.
  • Back up your site before running updates.
  • Keep PHP updated — WordPress recommends PHP 8.1 or newer.
  • Test big updates on a staging site first.
  • Avoid updating during traffic peaks or on an unstable connection.
  • Keep your login secure — see our guide on how to stop brute force attacks on WordPress.

Frequently Asked Questions

Is it safe to delete the .maintenance file?

Yes — it is a temporary flag file, not part of WordPress itself, and deleting it only stops the maintenance message. The interrupted update will not resume by itself, so re-run it afterwards.

How long does maintenance mode normally last?

Only a few seconds — the length of the update. If it is still there after ten minutes, the update has failed — remove the file by hand.

Why does the .maintenance file keep coming back?

Something is starting a new update — usually automatic updates, or a plugin that re-triggers maintenance mode. Disable automatic updates temporarily and check for a conflicting plugin.

Can I still log in to wp-admin while my site is stuck?

Usually not — the maintenance screen blocks the dashboard too. Delete the file via FTP or File Manager, then log in normally.

Conclusion

A site stuck in maintenance mode looks alarming, but the fix takes under five minutes: delete the .maintenance file, clear your caches and re-run the interrupted update. Update one item at a time, keep a backup handy, and this error will rarely bother you again. For more fixes, explore the free tools on KamiWeb and our WordPress themes.