Dev.to WebDev 🛠 Dev 👁 2

One file causes WordPress maintenance mode, and one file ends it

"Briefly unavailable for scheduled maintenance" comes from exactly one file: .maintenance in the WordPress root. WordPress creates it when a core, plugin or theme update starts and deletes it when the update finishes. An

"Briefly unavailable for scheduled maintenance" comes from exactly one file: .maintenance in the WordPress root. WordPress creates it when a core, plugin or theme update starts and deletes it when the update finishes. An update that times out or dies leaves it behind, and the site stays in maintenance mode for everyone.

The fix takes seconds: connect over SFTP or the file manager, find .maintenance in the root, and delete or rename it. It does not touch posts, pages, users or settings, so it is safe.

If the file comes back after you delete it, stop deleting it and fix the cause: the update itself is failing, usually on a PHP timeout, a memory limit, a fatal error in a plugin, or a file permission problem. Update one thing at a time so the failure is traceable, and take a backup before you run updates so a half-finished one is recoverable.

Full explanation of the mechanism: https://cmsideas.net/wordpress-stuck-in-maintenance-mode/

📰 Read the original article on Dev.to WebDev

Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.