Fixing WordPress stuck in maintenance mode

wordpresshostingops

WordPress stuck in maintenance mode usually means an update failed mid-flight. This guide covers a safe way to clear the flag and what to check so it doesn’t happen again.

Safety first

Fix pattern

Root cause checks

FAQ

Where is the maintenance file?
In the WordPress root (same directory as wp-config.php), named .maintenance. Remove it only after you’ve addressed the cause (e.g. disk, permissions, timeouts) so the next update can complete.

Updates keep failing halfway.
Check PHP timeouts and WordPress updates and increase limits where appropriate. Also verify disk space and permissions.