上传 wordpress 主题时获取"PHP Warning: is_readable(): open_basedir restriction in effect."



我正在上传一个购买的主题到wordpress,但一直得到这个错误:

PHP Warning:  is_readable(): open_basedir restriction in effect. File(G:localhostrootwebsitewordpress/wp-content/plugins/G:/localhostrootwebsitewordpress/wp-content/themes/cacoon/inc/languages/portfolioposttype-en_US.mo) is not within the allowed path(s): (G:localhostroot;C:WindowsTemp) in G:\localhostrootwebsitewordpresswp-includesl10n.php on line 457

/root/website是指我在同一帐户内托管多个网站的托管帐户内的结构。mainhostsite.com/otherSiteOnTheSameAccount.com

这是第457行的语句:

if ( !is_readable( $mofile ) ) return false;
$mo = new MO();
if ( !$mo->import_from_file( $mofile ) ) return false;
if ( isset( $l10n[$domain] ) )
    $mo->merge_with( $l10n[$domain] );
$l10n[$domain] = &$mo;
return true;
}

谁能透露一些光我需要做什么来修复这个错误?(如果我提出问题的方式不是最好的,如果有人能告诉我如何正确地构建它,我将不胜感激。)

我通过在plesk面板的PHP设置中设置open_basedir中的none来修复它。

最新更新