剛剛安裝完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試試?