Today while performing a WordPress upgrade on another blog the update failed! Grrr. If that wasn’t enough of a problem, when I checked the site it was stuck in “Maintenance” mode – meaning that no matter what you tried to do the only thing that showed up was a page telling you the site was in “Maintenance Mode”.
I Googled like a madman, and searched the WordPress site too, but there is no documentation as to what to do to get it out of this mode! So, I fired up my FTP browser and manually performed a complete upgrade of WordPress. Still no luck!
Next I checked the .htaccess file to see if the system had added some sort of line to it, but no luck. Finally, I noticed a strange file in the root of the site called .maintenance. The date stamp was just minutes old, so I deleted it and VOILA, the site was back to normal.
So, if you are unable to load WordPress because it’s stuck in Maintenance mode, just FTP into the root directory and delete the .maintenance file. Too bad this wasn’t documented somewhere, and too bad that with this in place you can’t even access the WP Admin area. Sheesh…
Hi John,
What can I do if I can’t find the .maintenance file? My website isn’t stuck in the maintenance mode, but if you browse around the site, you will get that page a couple of times. I check My FTP (with the hidden dot files check) and there is no .maintenance file to be found anywhere. I can even see the .htaccess file but no .maintenance file. Do you know what else may be causing this issue? Would really appreciate your help.
Thanks
Thank you, thank you, thank you… If you would have hade a donate button I so would have. Life saver!
This saved me much time and I am sure a headache, thanks so much for posting this!
Yip, I also don’t have a file called .maintenance. Any plan B?
Thanx for sharing worked well for me – however now I need to figure out which plugin failed an update and screwed the site :(
Hi there,
I recently put a new theme on my site and then upgraded WordPress. It is now stuck with OUR SITE IS CURRENTLY UNDER CONSTRUCTION PLEASE CHECK BACK SOON. I have seen to delete the .maintenance file via FTP but I have looked through every file and this maintenance file is not there. I have forced show hidden files too. I have deleted the theme and deactivated all the plugins but its still in Maintenance Mode. Can anybody help please?
after login my site appears but when I click the ´control panel´ on the upper left sidebar to edit my site, there is only a blank – nothing shows. There is no ´maintenance. file in the ftp root, and this occurred after updating the version. So can anyone give a suggestion on how to reactivate the edit mode again.
Thanks. It was a great help :-)
Tks man! Don’t believe WP never alerted anybody on this…
Thanks for saving my life! It worked for me!!!!
hello i was upgrading WordPress 3.4 to 3.5 in maintenance mode, but accidently i close my browser! when i reopen the wordpress it say this error(Fatal error: Call to undefined function force_ssl_admin() in /home/eurdmaur/public_html/wp-login.php on line 15).
Can anybody help me out of this situation?
Please…
Thanks, this got me out of a pickle.
I wasn’t even upgrading anything, just adding products through WooCommerce when suddenly! Maintenance.
Any idea what causes it?
Thanks for this! Exactly what I needed.
Thank you for the tip. Failed plugin update put me into maintenance mode. Panic was mercifully short after seeing your post. Sometimes WordPress takes us a little out of our comfort zone. When are they going to include a big, fat Undo Button?!
I was waiting for the hosting to answer when I found this answer to my problem! Thank you so much for posting about getting stuck in maintenance. Saved lots of time and stress.
Thanks man, You saved my life ;-)
Thanks for this tip – a real life saver!
I’m just getting used to working on some WordPress themes and I have like 3 different installations going at once, which all needed to be upgraded. Most of the time they don’t work right away (blame the web host I guess) and one of them got stuck in maintenance. Your tip saved me, thanks!
Thanks. This really helped me. I was busy updating my plugins and closed the window by mistake.
John,
Thanks for hunting down this solution for the rest of us. It worked perfectly! You kept my period of panic down to a minimum. :-)
Be well, be free,
Lance
But I can see the .maintenance file when using the cpanel filemanager.
Thank you so MUCH! I just had a minor freak out when it happened to me with a clients website!! Do you mind if I repost this on my site?
Thank you for saving me! I knew updating plugins through the WordPress website rather than my FTP would be a disaster but that didn’t seem to stop me. You’ve saved me from having to pester my more web savvy friends :)
This happened to me once before, immediately after I upgraded WordPress to 3.0. Like your experience, this error was so new, not much had been written about it. After about 10 minutes, it came to its senses! But today when it happened after trying to bulk upgrade some plugins, I’d forgotten the answer.
Glad you took time to write up a quick tutorial. Looks like the bulk upgrade function could use some work.
I encountered this before as well, but once I was so tried, I left it in maintenance mode and went to have a Tea. When I came back, I refreshed the site to see that every was normal… no maintenance mode! I logged and saw in the admin panel a message saying “An automated WordPress update has failed to complete – please attempt the update again now.”
This was a after approximately 10 mins (very hot Tea!), and it seems WP has a script inside which manually deletes the “.maintenance” file.
Hope this helps. (Its ok to err with WP :-) )
Thanks John. That tip was a real life-saver.
Mitch
Thanks, you just saved me a lot of time! :D
Thanks for the post. I got stuck in maintenance mode and you are the sixth site that comes up on google. Luckily you are the only one with the answer. Thanks again.
WordPress is a great blogging tool but can be tricky sometimes when you need to do routine maintenance.
Thanks for the heads up. Hope I am never in that situation. Must have very annoying. Did you already know how to do this or did you find out by trial.
A very interesting post. I have been using wordpress for the last couple of years. I absolutely love the platform. It is growing and improving all the time and will stay at the front of blogging for years to come.
I personally have not had that problem with the maintenance mode plugin, however, i have had various problems with others. The problems are always encountered because of the frequency that WordPress is upgraded. The majority of plugins are created by normal people like you and I and as such don’t always get the attention they should. In time new plugins are always released to replace ones that fall by the wayside and wont work with the latest version of WordPress.
If in doubt whether a plugin will work or not, then don’t upgrade the WordPress version. It will continue to work with no problem.
THANK YOU!!! You just saved me from hours searching and reinstall nightmare.. ;)
Nice Post,
Thanks For information, This information is very usefull for me.
Tanks for the post! I am now starting to build a blog using wordpress and am having a very hard time!!! lol…..I guess I need to buy a wordpress book to get a blog that looks as good as this one! lol
The exact same thing happened to me today! I had to contact tech support for help. I couldn’t find any documentation either. More people need to know about this. Thanks for posting.