【问题标题】:Wordpress openbase_dir issue Windows Server 2008 R2 and Plesk 11.0.9Wordpress openbase_dir 问题 Windows Server 2008 R2 和 Plesk 11.0.9
【发布时间】:2013-08-07 13:43:41
【问题描述】:

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

【问题讨论】:

    标签: php windows wordpress plesk


    【解决方案1】:

    问题在于 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__ ) )

    【讨论】:

    • 嗨 Gökhan Çoban,我已经注释掉了该行并将其复制并更改为以下内容(仍然不起作用): load_plugin_textdomain( dirname( FILE ) );
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-07-29
    • 2014-09-12
    • 1970-01-01
    • 2020-03-14
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多