一般後臺升級後資料庫data路徑會出現問題,是因為我們為了安全而會把data資料庫放進根目錄的上一層去,這時升級後後臺會出現一片空白,
以下就是解決方法,希望大家和我一樣遭遇的童鞋也能解決問題。
先看下把
//error_reporting(e_all);
error_reporting(e_all || ~e_notice);
改為error_reporting(e_all);
//error_reporting(e_all || ~e_notice);
這時你開啟後臺就會顯示錯誤的路徑:
例如:warning:require_once(d:/wwwroot/zgdxbw/wwwroot/data/config.cache.inc.php)[function.require-once]: failed to open stream: no such file or directory ind:\wwwroot\zgdxbw\wwwroot\include\common.inc.php on line 110
這個意思是說include\common.inc.php的 110行裡找不到config.cache.inc.php的檔案;
是因為更新檔案的時候,系統會修改上圖的這個data路徑為預設,你改為你現在的路徑就行,如../data表示上一層的意思,改後,把
//error_reporting(e_all);
// error_reporting(e_all || ~e_notice);
讓系統不提示錯誤,這時你的後臺就可以開啟了。