Closed (outdated)
Project:
AntiSpam
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 Feb 2011 at 18:41 UTC
Updated:
23 Nov 2022 at 13:43 UTC
Jump to comment: Most recent
Comments
Comment #1
pixture commentedThis is not a bug but a runtime notice from PHP. You can suppress the notice message from appearing by changing PHP setting (php.ini) file.
error_reporting = E_ALL & ~E_NOTICE
If you can not do this, then add code to antispam_get_moderator_types() function.
Before
After
I guess this will do it.
Comment #2
ultrabizwebnet commentedThanks for the prompt reply I edited the php.ini file as you suggested and it took away the errors.
Comment #3
Konstantin Boyandin commentedNote: I have PHP warnings turned off, but the above message is still being printed.
My opinion is that correct code should NOT access non-existing indices, and the correct line 1227 could look like
Comment #4
Kutakizukari commentedI have the same settings as ultrabizwebnet, Pressflow and the Typepad API for spam filtering. I don't have memcache and varnish installed yet but returning the same error in the log file.
I turned off the errors from writing to screen by going to:
and under "Error Reporting" select "Write errors to the log" in the drop-down box.
Hope this helps!
Comment #5
avpadernoI am closing this issue, since Drupal 4.x, 5.x, and 6.x are now not supported.