How do I fix WordPress maintenance mode?

If the site is stuck in maintenance mode after an update, log in via FTP or your hosting file manager and delete the .maintenance file in the root WordPress directory. Refresh the front end and the site should load normally. If it does not, check for incomplete updates and run them manually from the dashboard.

How to Fix WordPress Stuck in Maintenance Mode

  • Connect to your site with FTP, SFTP, or your host’s file manager.
  • Open the main WordPress folder, the one that contains wp-config.php and the wp-content folder.
  • Find the file named .maintenance. It is a hidden file, so you may need to turn on the option to show hidden files.
  • Delete the .maintenance file and reload your site.
  • Log in to the dashboard and check Dashboard, then Updates, for anything that did not finish. Run those updates again one at a time.
  • Clear any caching plugin and server cache so visitors see the live site again.

If the site loads but shows errors after this, the update that was interrupted may have left a plugin or theme half installed. Reinstalling that plugin or theme usually fixes it.

Why WordPress Gets Stuck in Maintenance Mode

WordPress creates the .maintenance file at the start of every update and deletes it when the update finishes. If the update is interrupted, the file stays behind and the site keeps showing the maintenance message. Common causes include:

  • Closing the browser tab or losing your connection during an update.
  • Server timeouts or low PHP memory on cheaper hosting.
  • Updating many plugins at once.
  • A plugin conflict that causes an error partway through the update.

To avoid it, update plugins in small groups, take a backup first, and test larger updates on a staging site. Good managed hosting and a WordPress care plan make stuck updates much rarer, and when they do happen they are usually fixed within minutes.

Maintenance mode can also be switched on deliberately. Some plugins add a coming soon or maintenance page so you can work on the site privately. If the message will not go away and there is no .maintenance file, check whether one of these plugins is active.

If you are not comfortable working with site files, your host’s support team can usually remove the file for you.