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;
按照上述代码修改function mkdir函数即可
I like this web blog very much, Its a very nice situation to read and find information.
I thank you hmulby for sharing your wisdom JJWY
I told my kids we’d play after I found what I neeedd. Damnit.
And I tohguht I was the sensible one. Thanks for setting me straight.
Thanks for satrtnig the ball rolling with this insight.