On 3 different sites running spam 2.0: If I click on administer-->input types-->configure (on any type) I get this error:

Fatal error: Call to undefined function: spam_publish_list() in /[serverpath]/modules/spam/spam.module on line 1681

In the logs, there are a series of php errors, as follows:

Location	/admin/filters/3
Message	Missing argument 2 for spam_filter() in /[serverpath]/modules/spam/spam.module on line 52.
Severity	error
Location	/admin/filters/3
Message	Missing argument 3 for spam_filter() in /[serverpath]/modules/spam/spam.module on line 52.
Location	/admin/filters/3
Message	Missing argument 4 for spam_filter() in /[serverpath]/modules/spam/spam.module on line 52.
Location	/admin/filters/3
Message	asort() expects parameter 1 to be array, null given in /[serverpath]/modules/spam/spam.module on line 744.
Severity	error
Location	/admin/filters/3
Message	array_keys(): The first argument should be an array in /[serverpath]/modules/spam/spam.module on line 749.
Severity	error
Location	/admin/filters/3
Message	array_pop(): The argument should be an array in /[serverpath]/modules/spam/spam.module on line 753.
Severity	error
Location	/admin/filters/3
Message	Division by zero in /[serverpath]/modules/spam/spam.module on line 764.
Severity	error

Also, I'm not sure if this is related, but I've been unable to get new javacripts to function. (Old scripts seem to be continuing to work.) This could be completely unrelated, but I thought I'd mention it as this behavior started appearing around the same time.

Comments

jeremy’s picture

Assigned: Unassigned » jeremy
Category: task » bug
Priority: Normal » Critical
Status: Active » Reviewed & tested by the community

The spam_filter() function was being called as a _filter() hook. I have renamed spam_filter() to spam_filter_content(). You can see the diff here. I will release a 2.0.11 that includes this fix in the near future, once I have time to create a patch for the trackback module. I will mark this bug "fixed" once I release 2.0.11.

laura s’s picture

Tried v. 2.0.11-pre and seems to work fine.

jeremy’s picture

Status: Reviewed & tested by the community » Fixed

Release spam module 2.0.11 which includes this fix.

(Note, spam_filter_content() became spam_content_filter() to match existing spam_ip_filter() naming convention.)

Anonymous’s picture

jeremy’s picture

Version: » 4.6.x-1.x-dev
Status: Fixed » Closed (fixed)

Manually closing, the project module doesn't seem to do this automatically anymore.