October 11, 2004
MT Bayesian Problem

I've been having a problem with MT-bayesian when I try to delete spam. Seems to an issue with somethign the perl module is calling, but looking at the source, I can't figure out WTF the problem is. (and it's not like I know much of anything about this stuff to begin with).

Here's the error:

Can't call method "remove" without a package or object reference at /home/dani/public_html/mt/lib/MT/App/BayesianTrain.pm line 519.

And looking at the module BayesianTrain.pm, here is the offending seciton:


require MT::Bayesian;
my @bys = MT::Bayesian->load({ blog_id => $blog_id });

for my $obj (@bys) {
next unless ($obj->comment_id);
next unless ($allspam || $obj->is_trained);
if ($obj->spam>0) {
require MT::Comment;
my $cm = MT::Comment->load($obj->comment_id);
$cm->remove;
$obj->remove;
}
}

Posted by danisaacs at October 11, 2004 10:49 PM | TrackBack
Comments
Post a comment
Name:


Email Address:


URL:


Comments:


Remember info?