尝试在首页建一文件调用lifetype
<?php
define ("PLOG_CLASS_PATH","e:/website/blog/");
include_once (PLOG_CLASS_PATH."class/summary/dao/summarystats.class.php");
include_once (PLOG_CLASS_PATH."class/dao/blogs.class.php");
$stats = new SummaryStats();
?>
随即报错:
Fatal error: Call to a member function error() on a non-object in e:\website\blog\class\cache\Cache_Lite\Lite_lifetype.php on line 724
查看了一下,出错的行是:
$this->log->error('Unable to write cache file : '.$this->_file, LOGGER_PRIO_ERROR );
但把文件拷贝到lifetype目录下又一切正常。
哪儿错了呢?