Closed (fixed)
Project:
Spam
Version:
5.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
25 Feb 2007 at 09:51 UTC
Updated:
29 Oct 2007 at 15:52 UTC
This is what cron daemon tells: Fatal error: Call to undefined function: spam_delete_trackback() in
/home/bjghgfb/public_html/modules/contrib/spam/spam.module on line 458
I do not have trackback module installed (there is no one for drupal 5.x). Is this what causes the problem? How do I fix it?
Comments
Comment #1
dmjossel commentedI'm having the same problem on some sites I've installed this module on, but not others. On sites that never had the trackback module installed, spam.module doesn't generate this error.
On sites where it was once installed (but is no longer installed) it occurs.
I've tried removing the database tables related to the trackback.module. No luck so far.
Comment #2
dmjossel commentedOK, I found the source of this error.
Line 462 calls a function based on the value of the column 'source' in the spam_tracker table. If you've upgraded from previous versions of drupal while using the spam and/or trackback modules, it's likely you've got old entries in there with "trackback" as the value for the "source" column.
Spam.module will try to call the function spam_delete_trackback to delete that spam, but this function no longer exists.
Run this SQL query on your database to solve the problem and allow cron to complete:
delete from spam_tracker where source = 'trackback';Comment #3
jeremy commenteddmjossel's manual fix solves the problem. Marking as such.
Comment #4
(not verified) commented