WordPress3.7 indicates that "routine maintenance is being performed. Please come back one minute later".

Source: Internet
Author: User
Tags chmod ftp mkdir php and

Wordpress 3.7 supports automatic upgrade. This also brings about a common problem. When wordpress times out during the upgrade process, the website remains in maintenance mode and cannot access the website. "Briefly unavailable for scheduled maintenance. Check back in a minute" is displayed. (you are performing routine maintenance. Please return in one minute ").
This problem occurs when I upgrade the plug-in. This is the first time in my life to see this problem.

Why does this error occur during maintenance?
The maintenance mode page is not technically incorrect. It is a notification page. During the update process, wordpress downloads the required update files to your server, extracts them, and installs new files. So during this time period, wordpress will release the maintenance mode webpage reminder "Briefly unavailable for scheduled maintenance. check back in a minute "(performing routine maintenance, please come back in one minute ").
If the update process goes smoothly, this reminder page appears for only a few seconds. However, for servers with slow response or low memory, the update script may time out or be interrupted. When the update times out or is interrupted, wordpress will remain in maintenance mode and always display the maintenance page.

How can I solve the problem of WordPress "Briefly unavailable for scheduled maintenance. Check back in a minute?
In the root directory of wordpress, you can find a file named. maintenance, but this file is hidden. After finding the file, delete it and your website will be accessible.
Delete. maintenance under shell. Go to the wordpress root directory (wordpress installation directory)
# Ls-
You can see the. maintenance file.
Then delete it:
# Rm-rf. maintenance
Open the website again and you will be able to access it normally.
Under FTP, you can set the ftp software to display hidden folders, and then manually delete the folder.
How do I customize the maintenance mode reminder page?
The simplest way to avoid the default maintenance mode reminder is to redirect visitors to a temporary maintenance page. Before the upgrade, set your website to the maintenance mode so that users cannot access it for the moment.
Of course, if you do not want to manually set the website to enter the Maintenance Mode, you can create a Maintenance page without using plug-ins (if you are lazy, you can use the Maintenance Mode plugin or WP Maintenance Mode ins ). Create a file named maintenance. php and paste the following code.

The code is as follows: Copy code
<? Php
$ Protocol = $ _ SERVER ["SERVER_PROTOCOL"];
If ('http/1.1 '! = $ Protocol & 'HTTP/123 '! = $ 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. </Body>
</Html>
<? Php die ();?>

 
Upload this file to the wordpress wp-content directory. Now, no matter when you upgrade your website, this page will be displayed in maintenance mode. You can also add css to beautify the page.
Original English
 
Another method shown on the Internet:
If it still doesn't work, or you want it to display. maintenance later, open/wp-admin/PRODES/class-wp-filesystem-direct.php.
Run the following code:

The code is as follows: Copy code
Function mkdir ($ path, $ chmod = false, $ chown = false, $ chgrp = false ){
// Safe mode fails with a trailing slash under certain PHP versions.
$ Path = untrailingslashit ($ path );
If (empty ($ path ))
Return false;
If (! $ Chmod)
$ Chmod = FS_CHMOD_DIR;
If (! @ Mkdir ($ path ))
Return false;
$ This-> chmod ($ path, $ chmod );
If ($ chown)
$ This-> chown ($ path, $ chown );
If ($ chgrp)
$ This-> chgrp ($ path, $ chgrp );
Return true;
}
 
Changed:
Function mkdir ($ path, $ chmod = false, $ chown = false, $ chgrp = false ){
// Safe mode fails with a trailing slash under certain PHP versions.
If (! $ Chmod)
$ Chmod = $ this-> permission;
If (ini_get ('safe _ mode') & substr ($ path,-1) = '/')
{
$ Path = substr ($ path, 0,-1 );
}
If (! @ Mkdir ($ path ))
Return false;
$ This-> chmod ($ path, $ chmod );
If ($ chown)
$ This-> chown ($ path, $ chown );
If ($ chgrp)
$ This-> chgrp ($ path, $ chgrp );
Return true;
}

Then refresh the FTP directory to see if. maintenance is displayed. Delete it!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.