解决wordpress“正在执行例行维护,请一分钟后回来。“

刚才自动升级wordpress插件,升级失败了提升”

正在执行例行维护,请一分钟后回来。

网上查了下可能是无法创建目录,修改 /wp_admin/includes/class-wp-filesystem-direct.php 文件中的function_mkdir函数, 修改如下:

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) )
$path = '/';
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;
}

4 thoughts on “解决wordpress“正在执行例行维护,请一分钟后回来。“

Comments are closed.