2013-08-07 132 views
1

WordPress的openbase_dir問題R2和Plesk 11.0.9WordPress的openbase_dir問題在Windows Server 2008 R2和Plesk 11.0.9 Windows Server 2008上

我剛剛搬進了一個網站,它的WordPress的數據庫從舊的Windows服務器到一個新的一個運行Plesk和IIS7。

我已啓用PHP並將openbase目錄設置爲web根目錄並且c:\ Windows \ Temp但是我收到以下錯誤(請參閱下文)。 Wordpress安裝在根目錄下的info文件夾中。

如果有人知道關於WordPress的PHP文件l10n.php這將是最有幫助的東西,它看起來像我有一個雙通道,因爲它試圖讀取字符串等於此:

Ç :\的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 

回答

0

的問題是關於白金搜索引擎優化包的插件配置。正如你所看到的,這個文件名是不正確的。

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 \虛擬主機\ creative-steps.com \ httpdocs資料\資料/ 的wp-content /插件/鉑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__))

+0

嗨格克汗科班,我已經註釋掉該行並複製它,並更改爲以下(不仍然工作):\t \t \t load_plugin_textdomain(目錄名(__FILE__)); –

相關問題