NOTA: codice commentato il 2022.01.14 perché già inserito tramite Google SiteKit // exclude auto ads from privacy & cookie policy $currentSlug = basename(get_permalink()); if ($currentSlug != "privacy" && $currentSlug != "privacy-info" && $currentSlug != "cookie" && $currentSlug != "cookie-info") { ?> */ ?> function EzConsentCallback(consent) { // necessary, preferences, statistics, marketing (true or false) if(consent.marketing) { // TODO: do marketing stuff here - like insert ads. } } */ ?> */ ?>
Sunday, December 6, 2026Online since 2014Articles, tutorials, software solutions and open source projects
Coding

WordPress stuck in maintenance mode - how to fix

How to recover a Wordpress website/blog stuck on the dreadful "Briefly unavailable for scheduled maintenance. Check back in a minute" maintenance screen.

When you perform a WordPress update - be it a new version/build of the  core platform, one or more plugins or themes - the system switch to Maintenance Mode, showing the following screen to all the users trying to access the wensite:

Briefly unavailable for scheduled maintenance. Check back in a minute.

The message is due to a specific .maintenance  file which is created inside the WordPress root folder at the start of the update process, and then removed on completion. Problem is, sometimes it doesn't get removed because the update process failed to complete: it can happen if we reload the page manually, or when a PHP script encounters an error, or other not-so-uncommon scenarios. When this situation arises, the unavailability message doesn't go away, thus locking the whole website.

To solve the issue, all you need to do is to remove the   .maintenance  file from the WordPress root folder. In order to do this you will need to access the web server's filesystem either using a remote connection - RDP, VNC, TeamViewer or any other provided by your hosting plan - or a FTP client of any kind: if you go for the FTP route and don't have a client already, I strongly suggest to try FileZilla, an excellent freeware software available in 32 or 64-bit version from this page. If you're missing the connection parameters - hostname, porta, username and password - ask them to your service provider.

Happy recovery!

*/ ?>
Tags
Share
Author

Ryan

IT Project Manager, Web Interface Architect and Lead Developer for many high-traffic web sites & services hosted in Italy and Europe. Since 2010 it's also a lead designer for many App and games for Android, iOS and Windows Phone mobile devices for a number of italian companies. Microsoft MVP for Development Technologies since 2018.

All articles by Ryan
Discussion

Comments

No comments.

Leave a comment

Your email address will not be published.


The reCAPTCHA verification period has expired. Please reload the page.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

*/ ?>

Newsletter

New articles and product updates, by email.

We will ask you to confirm your subscription by email. You can unsubscribe at any time; your data is handled as described in the privacy policy.

{"prefetch":[{"source":"document","where":{"and":[{"href_matches":"/*"},{"not":{"href_matches":["/wp-*.php","/wp-admin/*","/wp-content/uploads/*","/wp-content/*","/wp-content/plugins/*","/wp-content/themes/monstrance-ryadel/*","/wp-content/themes/monstrance/*","/*\\?(.+)","/*ao_noptirocket*","/*jetpack=comms*","/*kinsta-monitor*","/*ao_speedup_cachebuster*","/*removed_item*","/my-account*","/wc-api/*","/edd-api/*","/wp-json*"]}},{"not":{"selector_matches":"a[rel~=\"nofollow\"]"}},{"not":{"selector_matches":".no-prefetch, .no-prefetch a"}}]},"eagerness":"conservative"}]}