If WordPress is stuck in maintenance mode and visitors "Unavailable briefly due to scheduled maintenance. Check back in a minute." message, an aborted update is in the root directory. .maintenance It means he left his file. Deleting this file opens the site immediately. However, since the update was interrupted, it is necessary to make a few checks afterwards.

Why is maintenance mode stuck?

WordPress creates a temporary .maintenance file in the root directory when updating a plugin, theme, or core and deletes it when the update is finished. The file remains undeleted if:

  • The browser tab was closed or the connection was lost during the update.
  • Too many plugins were updated at the same time and hit the PHP time limit.
  • The server ran out of memory and the operation was aborted.
  • File permissions did not allow the update to write files.

Step by step solution

  1. Enter the root directory of the site (usually public_html) with the FTP program or the file manager of the hosting panel.
  2. Turn on the option to show hidden files.
  3. .maintenance Find the file and delete it.
  4. Open the site in an incognito window and check that it looks normal.
  5. If you are using a caching plugin or CDN, clear the cache; The maintenance page may be stuck in cache.

If you have SSH access, you can do the same thing with a single command:

cd public_html
rm .maintenance
wp core verify-checksums

The first line moves to the root directory, the second line deletes the maintenance file. The third line checks whether the core files are complete with WP-CLI; An aborted kernel update will appear here as a missing or changed file.

Checks to be made after deleting the file

The update is not complete just because the maintenance screen is gone. Open the Updates page in the panel and find the abandoned plugin. If the plugin's version number appears outdated, run the update again. If the plugin does not appear in the list at all, its folder may have been half copied; Delete and reinstall the plugin, its settings will not be lost because they are in the database.

What do you see?Meaningto be done
The site is opened, everything is normalUpdate completedClear cache
Plugin is in old versionThe update stopped before it startedRun the update again
Plugin is not in the list or gives an errorFiles left unfinishedDelete and reinstall the plugin
Critical error messageHalf file gives PHP errorRead error log

If you see a critical error WordPress critical error Continue with the steps in our guide.

To never live again

Make updates a few at a time rather than all at once, and don't close the tab before the process is finished. In shared hosting, the PHP time limit can be short; Insufficient this limit in major plugin updates is the most common reason for the maintenance file to get stuck. Taking a backup before the update allows you to restore a file corrupted by an incomplete update within minutes.

For example, on a site that updates 25 plugins every month with a single click, if a timeout occurs during the process, it becomes difficult to find which plugin is left unfinished. Doing the same update five at a time takes a few extra minutes, but when problems occur, it immediately points out the culprit.

Stuck during automatic updates

When automatic updates run at night, the maintenance screen may not be noticed until the morning. Monitoring the site from outside and looking for an expected text in the home page content will inform you of this situation within minutes. Leaving automatic updates on only for minor security versions and making major plug-in updates during working hours and in a controlled manner reduces the risk of getting stuck. If there is a problem, taking note of which plugin was left unfinished on the same day will make it easier for you to update that plugin separately and alone in the next update.

Common mistakes

  • Looking for maintenance screen in plugin setting: This screen comes from a .maintenance file, not a plugin.
  • Deleting the file and not checking for update: Half plugin will lead to error later.
  • Forgetting cache: Visitors may still see the maintenance page even if the file is deleted.

To ensure regular and controlled updates WordPress technical support You can review the maintenance scope on our page.

Is it safe to delete the .maintenance file?

Yes. This file is created to display the maintenance message only; When deleted, the site returns to normal operation.

What should I do if I cannot see the file?

Files starting with a dot are considered confidential. Turn on the show hidden files option in the FTP program or file manager.

Is this screen the same as the maintenance plug-in's screen?

No. The maintenance plugin is intentionally turned on and off from the plugin setting; The planned maintenance message is caused by an interrupted update.