It is safe to say that you are seeing the ‘Briefly unavailable for scheduled maintenance’ error in WordPress? This error normally appears while updating the WordPress center, plugins, or subjects.
Essentially, your WordPress site neglects to finish the update which leaves you stuck in the maintenance mode.
In this article, we will show you how to effortlessly fix the “Briefly unavailable for scheduled maintenance” error in WordPress. We will likewise show you why this error happens and how you can keep away from it later on.
- 1 For what reason Does The WordPress Maintenance Mode Error Occur?
- 2 How to Fix WordPress Maintenance Mode Error?
- 3 How to Avoid WordPress Maintenance Mode in the Future?
- 4 How to Customize Maintenance Mode Notification
- 5 Troubleshooting WordPress Maintenance Mode Error
- 6 Related
For what reason Does The WordPress Maintenance Mode Error Occur?
The maintenance mode page is in fact not an error. It is a notification page.
During the update interaction, WordPress downloads important update files to your worker removes them, and afterward installs the update.
WordPress likewise puts your site on maintenance mode and showcases the “Briefly unavailable for scheduled maintenance. Check Back in a minute.” notice during the interaction.
To trigger the maintenance mode notification, WordPress makes a brief .maintenance file in your site’s root folder.
If everything works regularly, then this notification will likely be shown for a couple of moments. After the effective update, WordPress will automatically erase the maintenance file to disable maintenance mode.
However, once in a while due to a lethargic WordPress hosting worker reaction or low memory issue, the updated content will break in this way interrupting the cycle. At the point when this happens, WordPress doesn’t get an opportunity to remove your site from maintenance mode.
At the end of the day, your site will continue showing the maintenance mode notice, and you should physically fix it.
How to Fix WordPress Maintenance Mode Error?
To get your site out of maintenance mode, you definitely should simply erase the .maintenance file from your site’s root folder using FTP.
- If you can’t find the .maintenance file in your WordPress root directory, then ensure you checked your FTP customer to show hidden files.
- In Filezilla, you can force it to show covered-up files by clicking on Server > Force showing hidden files from the menu bar.
- Once the .maintenance file is removed, your site will emerge from maintenance mode, and the error ought to be fixed.
If you don’t have the foggiest idea how to use FTP, then you can likewise eliminate the files by going to the file chief in your WordPress hosting control board and afterward deleting the .maintenance file inside the file administrator.
How to Avoid WordPress Maintenance Mode in the Future?
We definitely know that the “Briefly unavailable for scheduled maintenance” error is caused by sluggish worker reaction or low memory issue on your web hosting worker.
The most straightforward approach to keep away from this error is by upgrading to a higher hosting plan. We suggest going with one of these oversaw WordPress hosting organizations that offer unrivaled hosting performance.
If upgrading to a higher hosting plan isn’t an option, then we suggest doing plugin and topic updates each in turn.
Regularly users have an inclination to rapidly clicking on the update link under each plugin. WordPress then amazes the update request, yet even a millisecond of postponement in connection could cause a contention leading your site to be stuck in maintenance mode.
Instead of rapidly clicking on the Update link, we suggest calmly updating each plugin in turn.
How to Customize Maintenance Mode Notification
A simpler answer for try not to show the default maintenance mode notification is by physically putting your WordPress site on maintenance mode before installing any updates.
The most ideal approach to do this is by installing and activating the SeedProd plugin. It is the most famous maintenance mode plugin for WordPress. For additional subtleties, see our bit-by-bit guide on how to install a WordPress plugin.
- Upon initiation, go to Settings > Coming Soon Pro page and check the case close to the ‘Enable maintenance mode‘ option.
- From that point onward, you need to click on ‘Edit Coming Soon/Maintenance Page‘ button. This will open the SeedProd subject customizer. From here you can pick a topic and afterward customize it’s anything but a beautiful maintenance mode page for your site.
- Now, if you would prefer not to physically place your site in maintenance mode each time you update, then you can make a maintenance page in WordPress without using a plugin.
- Essentially make another file called maintenance.php on your desktop and paste this code inside it:
<?php $protocol = $_SERVER["SERVER_PROTOCOL"]; if ( 'HTTP/1.1' != $protocol && 'HTTP/1.0' != $protocol ) $protocol = 'HTTP/1.0'; header( "$protocol 503 Service Unavailable", true, 503 ); header( 'Content-Type: text/html; charset=utf-8' ); ?> <html xmlns="http://www.w3.org/1999/xhtml"> <body> <h1>We are updating the site, please check back in 30 minutes.</h1> </body> </html> <?php die(); ?>
- Then, you need to transfer this file to your WordPress site’s wp-content directory.
Now at whatever point you are updating your site, WordPress will show this page during the maintenance mode. You can use CSS to style this page at any rate you need.
Troubleshooting WordPress Maintenance Mode Error
Since we have helped a great many users fix the “Briefly unavailable for scheduled maintenance” error in WordPress, we have assisted users with solving a few inconspicuous issues that can come up.
The following are some extra steps you may need to take if the above arrangement doesn’t work.
WordPress actually stuck in maintenance mode after the update and fix above?
If this is the situation, then you need to update the wp-activate.php file situated in your main WordPress folder. This is a similar spot where you found and erased the .maintenance file.
You should either open the file using your hosting organization’s file administrator or download it on your PC using FTP.
Then, you need to find the code: define (‘WP_INSTALLING’, valid) and change the consistency with bogus.
So your code will resemble this:
define ('WP_INSTALLING', bogus)
After that, you need to save the progressions and transfer the file to your hosting worker using FTP. If you’re using the hosting organization’s file director, then essentially saving the file ought to get you out of maintenance mode.
My site is broken after I fixed the WordPress maintenance mode error. How would I fix it?
An unfinished or interrupted update may cause issues when your site emerges from maintenance mode.
If this error happened when you were updating WordPress center programming, then you should follow our manual for physically update WordPress using FTP.
If the error happened when you were updating a WordPress plugin, then you should briefly deactivate all WordPress plugins using FTP. This progression will guarantee that the degenerate plugin is disabled, and your site will return.
Then, you should log in to your WordPress dashboard and enact each plugin in turn, to see which plugin caused the issue. After that, you need to physically install the plugin update, so it’s working appropriately.
We trust this article helped you fix ‘Briefly unavailable for scheduled maintenance‘ error in WordPress.