WordPress undoubtedly is the most powerful content management system today. All thanks to its easy to use interface and simple to manage back-end. However, the problem arises when your WordPress website or blog gets stuck, and keeps on showing ‘Briefly unavailable for scheduled maintenance. Check back in a minute’ error.
As a result, the site shifts into maintenance mode leaving you stuck amid an important post update, in addition to interfering with your website’s traffic. But, fret not! In this article, we will tell you what to do when WordPress is stuck in maintenance mode.
Table of Contents
Technically speaking, the maintenance mode page is actually not an error, but a notification page which tells you that a certain update is going on. During the update, WordPress downloads the corresponding update files to your server. They are then extracted and installed. It is for this period, that WordPress creates a hidden .maintenance file and puts your website in maintenance mode and displays a message “Briefly unavailable for scheduled maintenance. Check back in a minute.”
Generally, this message is displayed only for a few seconds. However, at times, the web server starts reacting too slowly or a memory issue pops up which leads to an interruption in the update process. This is when the problem starts. As a result, the update process may timeout and WordPress gets no chance to take your website out of the maintenance mode.
Until and unless the required script is executed, your website would display the error and would remain stuck in the maintenance mode.
This primarily happens when:
- Your web server is responding slowly
- Your website is running out of memory
- Script times out or is interrupted
So what’s the solution? Let’s find out.
WordPress Briefly Unavailable For Scheduled Maintenance error can be fixed by deleting the .maintenance file manually. .maintenance is a hidden file which is generated by WordPress in your main directory every time an update happens. In a normal scenario – WordPress automatically removes this file when the update is completed. But if the process is interrupted, you may have to do it manually. There are three ways of doing this, let’s check them out:
Follow the below-mentioned steps in order to delete the .maintenance file by using FTP:
- Use an FTP client like FileZilla and connect to your hosting account.
- Find the .maintenance file in the list. You will find it in WordPress installation directory.
- Right click on the file and delete it.
And voila! Your site is active again.
You can use Hostinger file manager to access your site’s files located in the server. Even if you are not using Hostinger, file manager provided by your host should not be very different. Thus, you can still follow the instructions below. In case you face a problem, contact your host for specific directions.
- Access Hostinger control panel and click on File Manager.
- Locate the .maintenance file.
- Right click on the file and choose Delete.
The third option to delete the .maintenance file is by using command line:
- Establish an SSH connection. You can find a detailed guide on how to connect with Putty here.
- Navigate to your WordPress installation folder. Usually, WordPress is installed in public_html folder:1cd public_html
- In order to make sure that you are in the correct directory and see all the files in it type:1ls -a
- In order to delete the .maintenance file type:1rm .maintenance
And you’re done.
We hope the above-mentioned tutorial would help you in bringing a WordPress website out of the maintenance mode. If you have any queries, do let us know in the comments.