POST TIME:2017-11-13 00:19
一般后臺升級后數(shù)據(jù)庫data路徑會出現(xiàn)問題,是因?yàn)槲覀優(yōu)榱税踩鴷裠ata數(shù)據(jù)庫放進(jìn)根目錄的上一層去,這時升級后后臺會出現(xiàn)一片空白,
以下就是解決方法,希望大家和我一樣遭遇的童鞋也能解決問題。
先看下
include/common.inc.php這個文件,下載下來后用DW編輯
把
//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的文件;
是因?yàn)楦挛募臅r候,系統(tǒng)會修改上圖的這個data路徑為默認(rèn),你改為你現(xiàn)在的路徑就行,如../data表示上一層的意思,改后,把
//error_reporting(E_ALL);
// error_reporting(E_ALL || ~E_NOTICE);
讓系統(tǒng)不提示錯誤,這時你的后臺就可以打開了。