刚刚安装完shopex,运行首页发现一个“Couldn't lock the file !”错误,这是怎么回事呢?具体错误信息如下:
Couldn't lock the file !
--------------------------------------------------------------------------------
#0 secache->trigger_error(Couldn't lock the file !, 256) called at --
#1 secache->_format(1) called at--
#2 secache->trigger_error(Can't open the cachefile: --, 256) called at--
#3 secache->workat-- called at --
#4 secache->secache() called at --
#5 kernel->kernel() called at --
#6 shopCore->shopCore() called at --
查了半天发现解决方法有两个:
1、修改config.php文件
在config目录下找到config.php文件,打开并将:
define('WITHOUT_CACHE',false);
修改为:
define('WITHOUT_CACHE',true);
2、修改缓存目录的权限
将home/cache里面的cachedata.php和cachedata.stat.php文件删除,在将目录权限修改为777或是775试试?