2016-12-25 69 views
0

我已經在WAMP服務器上安裝了Joomla,配置了模塊和插件後.... 我試圖將它移動到我的網站上,我用「Plesk文件管理器」上傳腳本 然後我成功導出並導入數據庫到遠程主機。 除了數據庫配置,我重新配置configuration.php文件如下:將Joomla從本地主機移動到我的網站時出錯

public $log_path = 'D:\\Inetpub\\vhosts\\site.com\\httpdocs\\site\\Joomla/logs'; 
public $tmp_path = 'D:\\Inetpub\\vhosts\\site.com\\httpdocs\\site\\Joomla/tmp'; 

,但我得到了以下錯誤,一邊瀏覽我的Joomla索引頁:

Warning: require_once(__DIR__/cache.php) [function.require-once]: failed to open stream: No error in D:\Inetpub\vhosts\site.com\httpdocs\site\Joomla\plugins\system\nnframework\helpers\protect.php on line 16 

Fatal error: require_once() [function.require]: Failed opening required '__DIR__/cache.php' (include_path='.;./includes;./pear') in D:\Inetpub\vhosts\site.com\httpdocs\site\Joomla\plugins\system\nnframework\helpers\protect.php on line 16 

那麼如何修復這個錯誤?

回答

0

而不是手動移動網站,請嘗試使用組件,如AkeebaBackup

您可以使用免費版本進行備份,下載它,然後使用kickstart文件在本地恢復網站。

0

問題解決了....好像PHP版本不支持__DIR__功能 所以我絕對目錄位置替換它,並且工作正常

相關問題