Wordpress openbase_dir发布Windows Server 2008 R2和Plesk 11.0.9

时间:2013-08-07 13:43:42

标签: php windows wordpress plesk

Windows Server 2008 R2和Plesk 11.0.9上的Wordpress openbase_dir问题

我刚刚将一个网站和它的wordpress数据库从旧的Windows服务器移动到运行Plesk和IIS7的新服务器。

我启用了PHP并且openbase目录设置为web根目录和c:\ Windows \ Temp但是我收到以下错误(见下文)。 Wordpress从根目录安装在info文件夹中。

如果有人对wordpress php文件l10n.php有所了解,那将是最有帮助的,看起来我有一个双路径,因为它试图读取的字符串等于:

  

C:\的Inetpub \虚拟主机\ creative-steps.com \的httpdocs \方式/ C:\的Inetpub \虚拟主机\ creative-steps.com \的httpdocs \方式/可湿性粉剂内容/插件/铂SEO包/ platinum_seo_pack -en_US.mo

Warning: is_readable() [function.is-readable]: open_basedir restriction in effect.     File(C:\Inetpub\vhosts\creative-steps.com\httpdocs\info/C:\Inetpub\vhosts\creative-    steps.com\httpdocs\info/wp-content/plugins/platinum-seo-pack/platinum_seo_pack-en_US.mo) is not within the allowed path(s): (C:/Inetpub/vhosts/creative-steps.com\;C:\Windows\Temp\) in C:\Inetpub\vhosts\creative-steps.com\httpdocs\info\wp-includes\l10n.php on line 322

Warning: Cannot modify header information - headers already sent by (output started at C:\Inetpub\vhosts\creative-steps.com\httpdocs\info\wp-includes\l10n.php:322) in C:\Inetpub\vhosts\creative-steps.com\httpdocs\info\wp-login.php on line 290

Warning: Cannot modify header information - headers already sent by (output started at C:\Inetpub\vhosts\creative-steps.com\httpdocs\info\wp-includes\l10n.php:322) in C:\Inetpub\vhosts\creative-steps.com\httpdocs\info\wp-login.php on line 302

Warning: Cannot modify header information - headers already sent by (output started at C:\Inetpub\vhosts\creative-steps.com\httpdocs\info\wp-includes\l10n.php:322) in C:\Inetpub\vhosts\creative-steps.com\httpdocs\info\wp-login.php on line 304

1 个答案:

答案 0 :(得分:0)

问题在于Platinum Seo Pack的插件配置。如您所见,此文件名不正确。

C:\的Inetpub \虚拟主机\ creative-steps.com \的httpdocs \方式/的 C:\的Inetpub \虚拟主机\ creative-steps.com \的httpdocs \方式/可湿性粉剂内容/插件/铂 - seo-包/ platinum_seo_pack-en_US.mo

应该是

C:\的Inetpub \虚拟主机\ creative-steps.com \的httpdocs \方式/的可湿性粉剂内容/插件/铂SEO包/ platinum_seo_pack-en_US.mo

要解决此问题,请转到wp-content \ plugins \ platinum-seo-pack文件夹中的platinum_seo_pack.php文件。搜索load_plugin_textdomain或转到其中的第181行。在该行中使用WP_PLUGIN_DIR更改basename( dirname( __FILE__ ) )