Affiliate Disclosure: Some links on this page are affiliate links. If you purchase through our links, we may earn a commission at no extra cost to you.
Last updated: December 3, 2026 · Reading time: about 12 minutes
WordPress gets stuck in maintenance mode when a file called .maintenance stays in your site’s root folder after an update that did not finish. Delete or rename that file and the site loads again immediately. If the file keeps coming back, an update is failing, and you need to fix the cause before visitors see the message again.
Key takeaways
- The message “Briefly unavailable for scheduled maintenance. Check back in a minute.” comes from a single file:
.maintenancein the WordPress root. - WordPress creates that file at the start of a core, plugin or theme update and deletes it when the update finishes. An interrupted update leaves it behind.
- Deleting the file is safe and does not touch your posts, pages, users or settings.
- If the file reappears, the real problem is the update: a PHP timeout, a memory limit, a fatal error in a plugin, or a file permission issue.
- Always take a backup before you run updates, and update one thing at a time so a failure is easy to trace.

What is maintenance mode in WordPress?
Maintenance mode is a temporary state WordPress switches on while it installs an update. During that time the public site shows a short “briefly unavailable for scheduled maintenance” page instead of your content, so visitors do not see a half-updated site.
The mechanism is simple. Before an update starts, WordPress writes a small file named .maintenance into the folder where WordPress is installed, next to wp-config.php. While that file exists, the function wp_maintenance() returns the maintenance page with an HTTP 503 status. When the update finishes, WordPress removes the file and the site returns to normal.
The whole cycle normally takes seconds. The problem starts when the update does not finish: the process is killed, the browser tab closes, the server hits a PHP time limit, or a plugin throws a fatal error halfway through. The file stays, and so does the message.
Why does WordPress get stuck in maintenance mode?
In almost every case an update was interrupted before it could delete the .maintenance file. The usual causes are a PHP timeout, a memory limit, a fatal error from a plugin or theme, a lost connection during the update, or file permissions that block WordPress from deleting its own file.
1. The update timed out
Shared hosting often limits how long a PHP script may run. A large plugin update, a slow database or a busy server can push past that limit. PHP stops the script, the update never reaches its cleanup step, and the file stays where it is.
2. A fatal error stopped the update
If a plugin or theme update hits incompatible code, PHP can stop with a fatal error. The update process dies before it removes the file. In this case the site may come back after you delete the file, but it may also show a different error, such as a critical error notice.
3. The browser or connection dropped
WordPress updates run inside an HTTP request. Closing the tab, losing Wi-Fi, or a proxy that cuts a long request can end the request before the update is done. This is common on slow connections and on large updates.
4. File permissions are wrong
If the web server user cannot delete files in the WordPress root, the update cannot remove .maintenance even when everything else worked. Typical symptoms: updates appear to finish, but the file is still there and so is the message.
5. A plugin manages maintenance mode itself
Some maintenance or coming-soon plugins create their own maintenance state. They are a different feature from the core file, but they can produce a similar page. Check your plugin list before you start deleting files.
6. Caching shows an old copy
Sometimes the file is already gone but a page cache still serves the maintenance page. If the file is missing and the message continues, purge the cache at your host, in your caching plugin, and in any CDN in front of the site.
How do you fix WordPress stuck in maintenance mode?
Delete the .maintenance file from the WordPress root folder, then reload the site. You can do it in your host’s file manager, over SFTP, with WP-CLI, or with a small plugin. The file is a single empty marker, so removing it cannot damage your content.
Method 1: Hosting file manager (easiest)
Most hosts give you a browser file manager inside the control panel. On Hostinger it is called File Manager in hPanel. The steps are the same on cPanel and on most other panels.

- Log in to your hosting control panel and open File Manager.
- Open the folder where WordPress is installed. On most hosts it is
public_html. If WordPress lives in a subfolder, open that folder instead. - Turn on the option that shows hidden files. Files that start with a dot are hidden by default, and
.maintenancestarts with a dot. - Find
.maintenanceand delete it. If you prefer to keep it, rename it to.maintenance.bakinstead. Renaming has the same effect. - Reload your site in a private browser window so you do not see a cached copy.
- If the site loads, purge the cache and check the WordPress dashboard for the update that failed.
Method 2: SFTP or FTP
Connect with an SFTP client such as FileZilla using the credentials from your host. Open the WordPress root, enable hidden files in the client, delete .maintenance, then reload the site. This method is useful when the file manager is slow or when the panel is unavailable.
Method 3: WP-CLI
If your host offers SSH and WP-CLI, one command handles it cleanly:
wp maintenance-mode deactivate
Run it from the WordPress directory. WP-CLI removes the file and reports the result. The same tool can then run the update again in the terminal, where you can see the error output instead of guessing.
Method 4: A maintenance-mode plugin
Small plugins can toggle maintenance mode on and off from the dashboard. They are convenient when you cannot reach the file system, but they add a dependency for a problem that a file manager solves in ten seconds. Use them only if the other methods are blocked.
Which method should you use?
Use the hosting file manager for a one-off fix, SFTP when the panel is unavailable, WP-CLI when you are comfortable in a terminal, and a plugin only as a last resort. The table compares them.

What if the maintenance file keeps coming back?
If .maintenance reappears, an update is being retried and failing every time. Stop retrying from the dashboard and find the error: read the PHP error log, raise the PHP time and memory limits, then run the update again from WP-CLI or after deactivating the plugin that fails.

Read the error log first
Your host keeps a PHP error log, usually in the same folder as the site or in the panel under Logs. Open the last entries around the time of the failed update. A message about memory, execution time, or a specific plugin file tells you exactly what to fix.
Raise the PHP limits
Two limits cause most failed updates: max_execution_time and memory_limit. Many hosts let you change them in the panel. If yours does not, ask support for a higher limit for the length of the update. Our guide on speeding up a WordPress site explains where these limits also slow down normal page loads.
Update in a different way
WP-CLI runs the update in a terminal session without a browser timeout, which solves many stuck updates in one step:
wp core update
wp plugin update --all
wp theme update --all
If a single plugin keeps failing, deactivate it, update the rest, then update that plugin alone. If it still fails, replace it with a maintained alternative.
Check permissions
Folders should normally be 755 and files 644 on a typical Linux host. If the WordPress root is not writable by the web server user, updates and file deletions fail quietly. Your host’s support can confirm the correct owner for your setup.
Do not leave the site in maintenance mode while you investigate
Visitors and search engines see a 503 page while the file exists. Remove the file so the site loads, then investigate the update in a staging copy. A 503 is treated as a temporary server problem, but a site that shows it for days loses traffic and can lose rankings.
Maintenance mode or a different WordPress error?
The maintenance message is specific: it means the .maintenance file exists. Other errors look similar to a visitor but have different causes, so identify the message before you start fixing.

“Briefly unavailable for scheduled maintenance”
Core maintenance file present. Remove .maintenance. Covered above.
“Error establishing a database connection”
WordPress cannot reach the database. The cause is usually wrong credentials in wp-config.php, a database server that is down, or a corrupted database. This is not maintenance mode, and deleting files will not help.
White screen with no message
A PHP fatal error with errors hidden. Our guide on the WordPress white screen of death walks through the plugin and theme checks that find the cause.
“There has been a critical error on this website”
WordPress caught a fatal error and sent a recovery email to the admin address. The email usually contains a recovery mode link that lets you reach the dashboard and deactivate the plugin that broke the site.
A 503 page from the host or CDN
Some hosts and CDNs show their own 503 page when the server is overloaded or when a security rule blocks a request. If the page does not mention maintenance and does not look like WordPress, the file is not your problem.
How do you prevent a stuck maintenance mode?
Back up before updates, update one item at a time, keep PHP limits generous, and avoid closing the browser during an update. Those four habits prevent most stuck updates, and a backup makes the rare failure easy to undo.

Back up first
A backup turns a failed update from an emergency into a ten-minute restore. Our step-by-step guide on how to back up a WordPress site covers files, database and off-site copies.
Update one thing at a time
Update core, then plugins one by one, then themes. When something breaks you know exactly which update did it. Bulk updates save a few minutes and cost far more when they fail.
Test on staging when the update is large
Major version updates, WooCommerce updates and page builder updates deserve a staging test. Most managed hosts and several backup plugins offer one-click staging.
Keep the site lean
Every inactive plugin is code that can fail during an update. Delete what you do not use, and keep PHP at a supported version. Our WordPress security basics guide covers the update routine that keeps both security and uptime in good shape.
Know your host’s limits
Ask support for the PHP memory limit and maximum execution time on your plan. If they are low, an update of a large plugin can fail every month. A small plan upgrade or a support request that raises the limits for updates solves it, and it is worth knowing the numbers before an update fails at midnight.
Does maintenance mode affect SEO?
A short maintenance window has no lasting effect on rankings. A site that stays in maintenance mode for days can lose traffic and crawl attention, because search engines see a 503 response instead of your pages.
A 503 status tells crawlers the site is temporarily unavailable, which is the correct signal for a real maintenance window of minutes or hours. The problem is duration. Google may slow crawling while the site keeps returning 503, and visitors who see the message once rarely come back the same day. Remove the file as soon as you can, then check the site in Search Console.
If you need a planned maintenance window, keep it short, tell your users in advance, and make sure the site returns a proper 503 with a Retry-After header rather than an error page. For a normal WordPress update, you do not need a maintenance window at all: the update takes seconds.
Can you delete the .maintenance file safely?
Yes. The file is an empty marker with no settings, no content and no connection to your database. Deleting it only tells WordPress that maintenance is over.
The one precaution is to delete the right file. It sits in the WordPress root, next to wp-config.php and the wp-content folder, and its name begins with a dot. If you delete something else, restore it from your backup. Take a fresh backup before any file operation if you are unsure, and work in a copy of the site when the stakes are high.
Frequently asked questions
What does “briefly unavailable for scheduled maintenance” mean?
It is WordPress telling visitors that an update is running. The site shows this page while a file named .maintenance exists in the WordPress root folder. Normally the file disappears within seconds, when the update finishes.
Is it safe to delete the .maintenance file?
Yes. It is an empty marker file. Deleting or renaming it does not touch posts, pages, users, plugins or settings. Take a backup first if you plan further changes.
Where is the .maintenance file located?
In the folder where WordPress is installed, next to wp-config.php. On most hosts that is public_html. The file is hidden because its name starts with a dot, so enable hidden files in your file manager or FTP client.
Why does maintenance mode keep coming back?
An update is failing repeatedly. Common causes are a PHP timeout, a memory limit, a fatal error in a plugin, or file permissions that block deletion. Read the PHP error log and raise the PHP limits before you retry.
Can I fix it without FTP access?
Yes. Use the file manager in your hosting panel, or a maintenance-mode plugin from the dashboard. If the dashboard is unreachable, ask your host’s support to delete the file; it takes them seconds.
Does maintenance mode hide my site from Google?
For a few minutes, no. The site returns a 503 status, which search engines treat as temporary. If the site stays in maintenance mode for days, crawling and traffic suffer.
Will I lose data if I delete the file?
No. The file contains no data. Your content lives in the database and in wp-content. Deleting the marker only ends the maintenance state.
How do I put my site in maintenance mode on purpose?
Use a maintenance plugin or WP-CLI with wp maintenance-mode activate. That creates the same file, and wp maintenance-mode deactivate removes it. Plan the window, keep it short and tell your users.
What if the site still shows the message after deleting the file?
You are probably looking at a cached page. Purge the host cache, the caching plugin cache and any CDN cache, then reload in a private window. If the message continues and the file is gone, check whether a maintenance plugin is active.
Sources and further reading
- WordPress Developer Reference: wp_maintenance().
- WordPress Developer Handbook: Upgrading WordPress.
- WordPress Support: Updating WordPress.
- WordPress CLI Handbook: wp maintenance-mode.
Summary
WordPress stuck in maintenance mode is one leftover file, not a broken site. Enable hidden files, delete .maintenance from the WordPress root, reload, and purge the cache. Then find out why the update stopped: the error log, the PHP limits and the plugin that failed will tell you. Back up before updates, update one item at a time, and the message becomes a rare ten-second fix instead of a lost afternoon.
2 thoughts on “WordPress Stuck in Maintenance Mode? How to Fix It”