LifeType 中文開發論壇

支援 => 使用與操作 => 主題作者是: bigheadghost 於 一月 15, 2006, 10:45:59 下午



主題: Call to a member function getTotalSpam() on a non-object
作者: bigheadghost一月 15, 2006, 10:45:59 下午
Fatal error: Call to a member function getTotalSpam() on a non-object in xxx\plog\class\bayesian\bayesianfiltercore.class.php on line 72

那一行附近是这样的, 我用的是lifetype 1.0.2 原版,未做任何改动, php 5.1.2.
            $bayesianFilterInfos = new BayesianFilterInfos();
            $bayesianFilterInfo  = $bayesianFilterInfos->getBlogBayesianFilterInfo($blogId);
           
             $totalSpam = $bayesianFilterInfo->getTotalSpam();    <=这里就是72行
            $totalNonSpam = $bayesianFilterInfo->getTotalNonSpam();

我把过滤设置选项中的bayesian_filter_enabled设为否,还是不行 :-S


主題: Re: Call to a member function getTotalSpam() on a non-object
作者: bigheadghost一月 15, 2006, 10:48:26 下午
每次写完日志点击发表按钮,都会出现这种错误提示, 但奇怪的是此时这篇日志已经能够在首页上了