Wordpress openbase_dir issue Windows Server 2008 R2 and Ples


Wordpress openbase_dir issue Windows Server 2008 R2 and Plesk 11.0.9

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''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

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

问题在于Platinum Seo Pack的插件配置。正如您所看到的,这个文件名是不正确的。

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

应该是

C: ''Inetpub''vhosts''creative steps.com''httpdocs''info/wp-content/plugins/platinum-seo-pack/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__ ) )