Have a Question?

If you have any question you can ask below or enter what you are looking for!

WordPress stuck in maintenance

Description

When WordPress performs an update — whether to the core software, a theme, or a plugin — it automatically creates a .maintenance file in the root of the WordPress installation. This puts the site into maintenance mode and displays a “Briefly unavailable for scheduled maintenance. Check back in a minute.” message to visitors.

If the update process is interrupted or fails, this file may not be removed, leaving the site permanently stuck in maintenance mode.

Cause

During an update, WordPress creates a temporary .maintenance file in the site’s root directory. This file is normally deleted automatically once the update completes successfully. If the update is interrupted — for example due to a timeout, a network error, or a PHP fatal error mid-update — the file is left behind. WordPress then continues to serve the maintenance mode message to all visitors indefinitely, as it has no way to know the update has already ended.

Solution

Delete the .maintenance file from the root directory of your WordPress installation. The file is located at the top level of your site’s files, alongside wp-config.php and the wp-content folder.

You can remove it using an FTP client, SSH, or your hosting control panel’s file manager. Once deleted, WordPress will exit maintenance mode immediately and the site will load normally for all visitors.