LifeType 中文開發論壇

支援 => 安裝與設定 => 主題作者是: dmkk42 於 十二月 08, 2007, 06:56:26 下午



主題: 移機升級1.1.6之後Bayesian出了狀況
作者: dmkk42十二月 08, 2007, 06:56:26 下午
小弟將原本Server從1.1.3升級到1.1.6之後

找到一個發表文章會出現的 Bug (測試了一篇 do you see what I see...)

如果字長的時候,好像會出現

Fatal error: Uncaught exception 'Exception' with message
'BayesianTokens::updateOccurrencesFromTokensArray: Cannot update occurrences
of token 'tag?.' in C:\AppServ\www\class\dao\bayesiantokens.class.php:197
Stack trace: #0 C:\AppServ\www\class\dao\bayesiantokens.class.php(167):
BayesianTokens->updateOccurrencesFromTokensArray('6', Array, 0, 1, '235',
253) #1 C:\AppServ\www\class\bayesian\bayesianfiltercore.class.php(87):
BayesianTokens->incNonSpamOccurrencesFromTokensArray('6', Array, '235', 253)
#2 C:\AppServ\www\class\bayesian\bayesianfiltercore.class.php(108):
BayesianFilterCore->train('6', 'Do you see what...', 'MCN????????????...',
'', '', '', false) #3
C:\AppServ\www\class\action\admin\adminaddpostaction.class.php(149):
BayesianFilterCore->trainWithArticle(Object(Article)) #4
C:\AppServ\www\class\controller\controller.class.php(310):
AdminAddPostAction->perform() #5 C:\AppServ\www\admin.php(43):
Controller->process(Array, 'op') #6 {main} thrown in
C:\AppServ\www\class\dao\bayesiantokens.class.php on line 197

不知道是不是哪裡漏更新了

有高手能指點一下嗎

感謝