Last update at :2024-07-06,Edit by888u
When WordPress is upgrading programs, themes, and plug-ins, if the network abnormality causes the upgrade to fail, it is easy to prompt: "Routine maintenance is being performed, please come back in a minute" error, and the front and backend of the website cannot be accessed normally. Share below How to fix this problem:
Log in to the root directory of the website, find and delete .maintenance
, and then refresh (or clear the browser cache) to return to normal.
Under normal circumstances, the above method can solve the problem of "Routine maintenance is being performed, please come back in a minute." However, under special circumstances we may not be able to find .maintenance
in the root directory of the website. document.
Then you need to open the wp-admin/includes/class-wp-filesystem-direct.php file and modify the following 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;
}
Change to the following code:
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;
}
After that, return to the root directory of the website, you can find the .maintenance
file, and delete it according to the above method.
Recommended site search: free trial of virtual space, domain name price, https proxy ip, telecom server rental, station group server, virtual host provider, Korean cheap server, free foreign space, foreign vps server rental, Hong Kong ip, p>
发表评论