This error message appears when a WordPress update was interrupted before it could complete. WordPress creates a temporary .maintenance file to lock the site during updates. If the update fails, this file is not automatically removed, and your site stays locked in maintenance mode. This guide shows you how to fix it.

Quick Fix: Delete the .maintenance File

  1. Log in to your cPanel account.
  2. Go to FilesFile Manager.
  3. Navigate to your WordPress root directory (usually public_html).
  4. Look for a file named .maintenance.
  5. If you do not see it, click Settings (top-right) and enable Show Hidden Files (dotfiles).
  6. Right-click .maintenance and select Delete.
  7. Reload your website. The error should be resolved.

What If the .maintenance File Does Not Exist?

If deleting the file does not resolve the issue or the file is not there, try these steps:

  1. Check the wp-content/upgrade folder for leftover update files. Delete any files or folders inside it.
  2. Check the wp-content/upgrade-core folder if it exists. Delete its contents.
  3. Clear your browser cache and reload the site.

Re-running the Failed Update

After removing the maintenance file, the update that failed may still be available:

  1. Log in to your WordPress Dashboard.
  2. Go to DashboardUpdates.
  3. Retry the update that failed (plugin, theme, or WordPress core).

Why Does This Happen?

  • The browser was closed or navigated away during an update.
  • The server timed out during the update process (common with large plugins or slow servers).
  • A PHP memory limit was reached during the update.
  • Internet connectivity was lost during the update.

Preventing the Issue

  • Do not close your browser while an update is in progress.
  • Update one item at a time instead of updating everything at once.
  • Ask your hosting provider to increase the PHP memory limit and max execution time if updates frequently fail.
  • Use the cPanel Backup tool before performing updates so you can restore if needed.

Important Notes

  • This error is not caused by a hack or security breach — it is simply an interrupted update.
  • The .maintenance file is a standard WordPress mechanism. It is created and deleted automatically during successful updates.
  • If this error keeps occurring, your server may have resource limitations. Contact your hosting provider.

Troubleshooting

Error persists after deleting .maintenance file:

  • Clear your browser cache and cookies.
  • Check wp-content/upgrade/ for leftover files.
  • Check if there is a plugin conflict — deactivate all plugins via File Manager (rename the wp-content/plugins folder).

Cannot access WordPress admin to retry the update:

  • Delete the .maintenance file first, then try accessing wp-admin again.
  • If wp-admin also shows the maintenance message, the file is still present. Double-check that it was deleted.
Was this answer helpful? 0 Users Found This Useful (0 Votes)