WordPress stuck in maintenance mode
The site says “Briefly unavailable for scheduled maintenance. Check back in a minute.” and it has been a lot longer than a minute. One hidden file turns that message on, and the number inside it tells you whether deleting the file will fix anything.
- Open your site's files in your host's file manager or an FTP client, and turn on hidden files.
- Go to the folder that holds wp-admin and wp-includes, and open the file named .maintenance.
- Copy the number after $upgrading into the checker below. It is the time the update started.
- Less than 10 minutes old: an update started then. Wait for the message to clear by itself, or delete the file if you know the update has stopped.
- More than 10 minutes old, or no file there: WordPress has already stopped showing its message. Delete the file if it's there, then look for a saved copy of the page or a maintenance plugin.
- When the site loads, go to Dashboard > Updates and run anything that didn't finish.
How old is the file?
Paste the line from .maintenance, or just the number in it. Your host's file manager can usually open it with Edit or View. In cPanel's File Manager the file stays hidden until you open Settings: “To display hidden files in the interface, select Show Hidden Files (dotfiles)”. FTP clients have a setting for hidden files too.
This compares the number with this device's clock. WordPress compares it with the server's, so the answer is off by however far apart the two clocks are. Nothing you type leaves this page.
What WordPress writes, and when it stops listening
When an update starts, WordPress writes one line of PHP into .maintenance. For a plugin or theme update the line comes from WP_Upgrader::maintenance_mode() in 7.1.5. A WordPress update writes the same line from update_core():
$maintenance_string = '<?php $upgrading = ' . time() . '; ?>';time() is the current Unix time, the number of seconds since 1 January 1970 in UTC. So the file ends up holding something like this, which would be 5 Dec 2026 at 13:20 UTC:
<?php $upgrading = 1796476800; ?>When the update ends, whichever of the two wrote the file deletes it. If the update is cut off before it ends, nothing deletes it.
Each time a page loads, wp_is_maintenance_mode() reads the file and checks its age:
// If the $upgrading timestamp is older than 10 minutes, consider maintenance over.
if ( ( time() - $upgrading ) >= 10 * MINUTE_IN_SECONDS ) {
return false;
}MINUTE_IN_SECONDS is 60, so a file 600 seconds old is ignored and the site loads as if it weren't there. WordPress's own message can't outlast the time in the file by more than 10 minutes. That is why the number is worth reading before you delete anything: it tells you whether WordPress is the one showing the page.

While the file is younger than that, wp_maintenance() stops every request with status 503, a Retry-After of 600 seconds and the page title “Maintenance”. It sends no-cache headers with it, Cache-Control: no-cache, must-revalidate, max-age=0, no-store, private, which tell browsers and caches not to keep a copy. If wp-content holds a file called maintenance.php, WordPress shows that page instead of the plain message, so a custom-looking maintenance page can still be WordPress's own. When that file exists, WordPress loads it and stops. The 503 and the Retry-After then come only from whatever that file sends, and it may send neither.
WordPress's handbook page on common errors gives the message as “Briefly unavailable for scheduled maintenance. Please check back in a minute.” The 7.1.5 code says “Check back in a minute.” The handbook also says the file “will be found in your site root”. WordPress looks for it in its own folder, the one holding wp-admin and wp-includes. On most sites that is the site root. Where WordPress was installed in a subfolder, it's the subfolder. wp-load.php also accepts a wp-config.php one folder up, so finding wp-config.php doesn't prove you're in the right folder.
Which updates write it
- A WordPress update, every time (update_core()).
- Plugin updates from Dashboard > Updates or the Plugins screen, when at least one plugin in the batch is active and has an update. On a multisite network, any plugin update (Plugin_Upgrader::bulk_upgrade()). The “update now” link on the Plugins screen goes through the same function (wp_ajax_update_plugin()).
- An update to the theme in use, or to its parent theme. On a multisite network, any theme update (Theme_Upgrader::bulk_upgrade()).
- Automatic updates in the background. WP_Automatic_Updater turns maintenance mode on for every kind of update except translations, and WordPress's auto-updates documentation says “By default WordPress runs auto-updates twice per day.” A file can appear when nobody was logged in.
Older than 10 minutes and the message is still there
WordPress's check is already letting visitors through, so something else is putting the page up.
A saved copy of the page
Open the site in a private window. If it loads there, your browser kept the old page. If it doesn't, clear the cache in your caching plugin and at your host. If you use a CDN, purge it too.
If you can run curl, ask for the headers alone:
curl -sI https://example.com/WordPress's plain message answers 503 with retry-after: 600. That test only fits the plain message: a wp-content/maintenance.php page sends whatever its file sets. A header saying the response came from a cache (the name depends on the host or CDN) means you're looking at a stored copy.
A maintenance or coming-soon plugin
These put up a page of their own, usually with their own wording and design, and they don't use .maintenance. Turn the plugin off on the Plugins screen. If you can't get into the dashboard, rename the plugin's folder in wp-content/plugins. The handbook gives the same move for every plugin at once: “Locate the folder wp-content/plugins and rename the Plugin folder plugins_old. This will deactivate all of your Plugins.”
A .maintenance file somewhere else
If curl shows 503 with retry-after: 600 and no cache header, WordPress is still finding a young file. It's in a folder you haven't opened yet: the one with wp-admin and wp-includes in it. If your site has a wp-content/maintenance.php, curl can't rule this out, so look for the file there anyway.
A file that keeps coming back
If you delete it and a new one appears with a newer number, an update is starting again, from WordPress's automatic updates or from a tool you've connected that runs updates. Give it 10 minutes. If it keeps happening, turn off auto-updates for that plugin with the link in the Plugins screen's “Automatic update” column.
Finding the update that was cut off
Deleting the file brings the site back, but the update that wrote it may have stopped halfway. Two folders in wp-content show how far it got.
wp-content/upgrade/: each update is unpacked here into a folder named after the download, with 16 random characters on the end. WordPress empties this folder at the start of the next update (unpack_package()), so a folder left in it is the last package WordPress unpacked.
wp-content/upgrade-temp-backup/, in WordPress 6.3 and later: before replacing a plugin or theme, WordPress moves the installed copy into plugins/ or themes/ in here (move_to_temp_backup_dir()). As the request ends, it puts that copy back if the update failed, or deletes it if the update worked. A folder still in here names a plugin or theme whose update never got that far. If the same plugin's folder in wp-content/plugins is missing or half empty, the copy here is the version you had before. WordPress clears this folder with a weekly scheduled task, so look before then.
Then go to Dashboard > Updates and run whatever is still listed. If the site shows “There has been a critical error on this website. Please check your site admin email inbox for instructions.”, WordPress caught a fatal PHP error (WP_Fatal_Error_Handler) and emailed the site's admin address. Start with that email.
With WP-CLI
If your host gives you SSH and WP-CLI, run these from the WordPress folder.
wp maintenance-mode statusIt prints “Maintenance mode is active.” or “Maintenance mode is not active.” and uses the same 10-minute test. The command's source says so: “The logic here is based on the core WordPress `wp_is_maintenance_mode()` function.” So “not active” with the message still on your screen points to a saved copy or a plugin.
wp maintenance-mode deactivateThis deletes the file, but only while it's younger than 10 minutes. On an older one it stops with “Error: Maintenance mode already deactivated.” and leaves the file in place, so delete that one in your file manager. WP-CLI keeps working while the site is in maintenance mode, because its runner switches WordPress's check off for itself: “Always permit operations against WordPress, regardless of maintenance mode”.
wp plugin verify-checksums --allThis checks every plugin's files against WordPress.org's checksums, so a plugin whose files were only partly replaced fails it. A plugin that isn't in the WordPress.org directory has nothing to check against, and the command skips it with a warning that begins “Could not retrieve the checksums for version”. To put a clean copy of one back:
wp plugin install plugin-slug --forceThe docs describe --force: “If set, the command will overwrite any installed version of the plugin, without prompting for confirmation.” Put the plugin's folder name where it says plugin-slug.
Sources
- wp_is_maintenance_mode(), wp-includes/load.php, WordPress 7.1.5, read 5 Dec 2026
- wp_maintenance(), wp-includes/load.php, WordPress 7.1.5, read 5 Dec 2026
- WP_Upgrader::maintenance_mode(), WordPress 7.1.5, read 5 Dec 2026
- Plugin_Upgrader::bulk_upgrade(), WordPress 7.1.5, read 5 Dec 2026
- Theme_Upgrader::bulk_upgrade(), WordPress 7.1.5, read 5 Dec 2026
- WP_Automatic_Updater::update(), WordPress 7.1.5, read 5 Dec 2026
- update_core(), wp-admin/includes/update-core.php, WordPress 7.1.5, read 5 Dec 2026
- update_core() removing .maintenance, wp-admin/includes/update-core.php, WordPress 7.1.5, read 5 Dec 2026
- wp_ajax_update_plugin(), WordPress 7.1.5, read 5 Dec 2026
- WP_Upgrader::unpack_package(), WordPress 7.1.5, read 5 Dec 2026
- WP_Upgrader::move_to_temp_backup_dir(), WordPress 7.1.5, read 5 Dec 2026
- wp_initial_constants(), wp-includes/default-constants.php, WordPress 7.1.5, read 5 Dec 2026
- wp_get_nocache_headers(), wp-includes/functions.php, WordPress 7.1.5, read 5 Dec 2026
- wp-load.php, WordPress 7.1.5, read 5 Dec 2026
- WP_Fatal_Error_Handler, WordPress 7.1.5, read 5 Dec 2026
- api.wordpress.org version check (the current release), read 5 Dec 2026
- wp maintenance-mode, WP-CLI Commands, read 5 Dec 2026
- MaintenanceModeCommand.php, WP-CLI maintenance-mode-command v3.0.1, read 5 Dec 2026
- Runner.php, WP-CLI v3.0.1, read 5 Dec 2026
- wp plugin verify-checksums, WP-CLI Commands, read 5 Dec 2026
- Checksum_Plugin_Command.php, WP-CLI checksum-command v3.0.1 (the version bundled with WP-CLI 3.0.1), read 5 Dec 2026
- wp plugin install, WP-CLI Commands, read 5 Dec 2026
- Common WordPress Errors, Advanced Administration Handbook, read 5 Dec 2026
- Plugins and Themes Auto-Updates, WordPress.org documentation, read 5 Dec 2026
- File Manager, cPanel documentation, read 5 Dec 2026