解决ecshop 前后台出现Notice: Undefined variable: data in

  今天有一个客户的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表清除一下,然后再修复外加优化一下表就可以恢复正常使用了,建议平明做一些表优化就不会出现此类情况了,缓存数据如果不及时处理的话很容易满的

原文地址:https://www.cnblogs.com/sunny520/p/6708357.html