今天有一個客戶的ecshop網站訪問不了,打開他的網站出現一個很少出現的錯誤提示“Notice: Undefined variable: data in ”,詳細錯誤提示如下:
Notice: Undefined variable: data in http://www.xxx.com/includes/lib_base.php on line 1241
Warning: require(F:/freehost/b2btianshu/web/languages//common.php) [function.require]: failed to open stream: No such file or directory in http://www.xxx.com/includes/init.php on line 124
Fatal error: require() [function.require]: Failed opening required 'F:/freehost/b2btianshu/web/languages//common.php' (include_path='.;F:/freehost/b2btianshu/web/') in http://www.xxx.com/includes/init.php on line 124
問題分析:
出現上面Notice: Undefined variable: data in這個問題的原因ecshop 的緩存紊亂。
如何解決:
把lib_base.php文件重新傳一下,把數據庫里你session表清除一下,然后再修復外加優化一下表就可以恢復正常使用了,建議平明做一些表優化就不會出現此類情況了,緩存數據如果不及時處理的話很容易滿的