Skip to main content

WordPress Stuck in Maintenance Mode: How to Get Your Site Back

Your site shows one line, "Briefly unavailable for scheduled maintenance. Check back in a minute," and the minute has stretched into an hour. The cause is almost always a single leftover file from an update that did not finish. Removing it takes two minutes. Checking what the update left behind takes a little longer.

A glass shutter stuck halfway down a web page panel, with the small tile that jammed its track lifted out and glowing green

Quick answer

WordPress creates a file named .maintenance in your site's root folder while it installs updates. If the update is interrupted, the file stays and the site keeps showing the maintenance message. Delete that file using your host's file manager, FTP or WP-CLI. Then check the plugin, theme or core update that was running, because it may be only half installed.

Maintenance mode is WordPress protecting your visitors. While it swaps old plugin files for new ones, a page request could catch the site with half its code missing, so WordPress shows a short holding message instead. On a healthy update the message is up for a few seconds and nobody notices.

It turns into a problem when the update stops partway. The holding message stays up, sometimes alongside a plugin that is now missing files. The fix has two halves: get the site back, then make sure the update finished properly.

What Maintenance Mode Actually Is

When you click Update on a plugin, a theme or WordPress core, WordPress writes a small file called .maintenance into the root of your install. The file holds one line of PHP recording when the update began. While the file exists, every page request gets the message "Briefly unavailable for scheduled maintenance. Check back in a minute." along with a 503 status code, which tells search engines the outage is temporary.

When the update completes, WordPress deletes the file and the site comes back. If something stops the process first, nothing deletes it. Common interruptions:

  • Closing the browser tab, or losing the connection, during a bulk "Update All".
  • The server hitting its PHP time limit or memory limit midway through a large update.
  • A plugin that throws a fatal error as soon as its new version loads.
  • The hosting account running out of disk space while unpacking the update.

Wait Ten Minutes First

WordPress has a safety valve built in. When it reads the .maintenance file, it compares the timestamp inside with the current time. If the file is ten minutes old or more, WordPress treats maintenance as finished and loads the site normally.

So if the message appeared moments ago, an update may still be running. Give it ten minutes. If it is still there after that, or if the site comes back but looks broken, carry on below. A message that outlasts the ten minutes usually means one of two things: a caching layer is still serving the old holding page, or an update keeps restarting and writing a fresh file.

Delete the .maintenance File

Back up first if you can. Your host's backup tool is fine for this. Then pick whichever access route you have:

Host file manager

In cPanel, open File Manager and go to the folder that holds wp-config.php, often public_html. Open Settings in the top right and tick "Show Hidden Files (dotfiles)". The .maintenance file will appear. Delete it, then reload the site.

FTP or SFTP

Connect with a client such as FileZilla, browse to the WordPress root, then turn on hidden files. In FileZilla that option sits in the Server menu as "Force showing hidden files". Delete .maintenance.

SSH and WP-CLI

From the WordPress root, wp maintenance-mode status tells you whether the site is in maintenance mode. wp maintenance-mode deactivate removes it. A plain rm .maintenance does the same job.

After deleting the file, clear every cache you have: the caching plugin, any server cache your host provides, and a CDN such as Cloudflare. Then load the site in a private browser window.

Check What the Update Left Behind

Removing the file brings the site back. It does not finish the update. Log in to the dashboard and work through these checks.

  1. Open Dashboard, then Updates. Anything that still shows as pending did not finish. Update those items one at a time, not as a batch.
  2. Check the Plugins screen for notices. If a plugin's files went missing mid-update, opening the Plugins screen makes WordPress deactivate it and show a notice that the plugin file does not exist. Reinstall that plugin from its source, then reactivate it.
  3. Check the plugin's settings survived. Settings live in the database, so a reinstall usually brings them back intact. Confirm the important ones anyway, especially for forms, caching and SEO plugins.
  4. Test the pages that make you money. Submit the contact form, run a test checkout, try the booking widget.

If the site shows a blank page or "There has been a critical error on this website" once the file is gone, the update itself broke something. Our guide to the WordPress white screen of death walks through isolating the plugin or theme responsible.

It also helps to know that WordPress, since version 6.3, keeps a temporary copy of the old plugin or theme in wp-content/upgrade-temp-backup while an update runs. If the update fails, WordPress tries to put the old copy back. That is a safety net, though not a backup. Restore from a real backup if the site is damaged.

"Another Update Is Currently in Progress"

Sometimes the maintenance message is gone, but trying to update WordPress core shows "Another update is currently in progress." WordPress sets a lock in the database when a core update starts, so two updates cannot run at once. An interrupted update leaves the lock in place.

The lock expires on its own after 15 minutes, so waiting is the simplest fix. If you cannot wait, delete the core_updater.lock row from the wp_options table in phpMyAdmin (your table prefix may differ from wp_), or run wp option delete core_updater.lock with WP-CLI. Then run the update again.

Leftover files in wp-content/upgrade can be deleted too. That folder is a temporary workspace WordPress uses while unpacking updates. It should be empty when nothing is updating.

Stop It Happening Again

Maintenance mode getting stuck is a symptom of updates running in conditions where they can fail halfway. These habits remove most of the risk:

  • Take a backup before every update session. Our guide on how often to back up WordPress covers frequency and where to store copies.
  • Update in small groups. Five plugins at a time is easier to recover from than thirty, and if one fails you know which.
  • Keep the tab open. Stay on the update screen until WordPress reports success for every item.
  • Test large updates on staging first. Major plugin versions, page builders and WooCommerce updates deserve a dry run on a WordPress staging site.
  • Watch disk space. An update needs room to unpack. An account at 98 percent of its quota will fail mid-update sooner or later.

Maintenance Mode FAQ

Why is my WordPress site stuck in maintenance mode?

WordPress puts the site into maintenance mode while it installs updates by creating a file called .maintenance in the site's root folder. It deletes the file when the update finishes. If the update is interrupted, for example by a closed browser tab, a server timeout or a PHP error, the file stays behind and visitors keep seeing the maintenance message.

Where is the .maintenance file?

In the root folder of your WordPress install, the same folder that holds wp-config.php, wp-admin and wp-content. On many hosts that folder is public_html. The name starts with a dot, so file managers and FTP programs hide it unless you turn on the option to show hidden files.

Is it safe to delete the .maintenance file?

Yes. The file only holds a timestamp that tells WordPress when the update started. Deleting it does not remove any content or settings. What deserves attention afterwards is the update that was interrupted, because a plugin or theme may have been left half installed.

How long does WordPress maintenance mode normally last?

Usually a few seconds per plugin or theme, and a minute or two for a core update. WordPress also ignores a .maintenance file that is more than ten minutes old, so a message that lasts much longer than that usually means a cached copy of the page or an update that keeps restarting.

Can I see my site while it is in maintenance mode?

Not by default. WordPress shows the maintenance message to everyone, logged in or not, while the file is active. Maintenance or coming-soon plugins are a separate thing: they let logged-in administrators see the site while visitors see a holding page.

Let Someone Else Run the Updates

Updates are the most routine job on a WordPress site, and the one most likely to take it offline when rushed. On our WordPress maintenance plans a developer applies core, plugin and theme updates on a schedule. If one breaks something, we roll back from a tested backup, then fix the cause.

Book a free call if your site is stuck right now, or if you want the update cycle off your desk.

Related reading: WordPress White Screen of Death: Causes and Fixes • What Is a WordPress Staging Site? • Vortex Media Care Plans