LifeType 中文開發論壇

開發 => 核心補強 => 主題作者是: stonism 於 十月 17, 2006, 12:17:09 下午



主題: fatal error?另问怎么样才能正确调用lifetype的数据呢?
作者: stonism十月 17, 2006, 12:17:09 下午
尝试在首页建一文件调用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目录下又一切正常。

哪儿错了呢?