I'm currently experiencing two errors with this module.
One non fatal on the user/register page:
WARNING: IMPLODE(): INVALID ARGUMENTS PASSED IN ANTISPAM_FORM_ALTER() (LINE 1533 OF /SRV/WWW/DOMAIN.COM/PUBLIC_HTML/MODULES/ANTISPAM/ANTISPAM.MODULE).
And a fatal one when changing a custom profile field setting (as a normal user):
PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'db.antispam_moderator_email_for' doesn't exist: SELECT * FROM {antispam_moderator_email_for} WHERE uid=:uid; Array ( [:uid] => 1 ) in antispam_user_insert() (line 1568 of /modules/antispam/antispam.module).
Comments
Comment #1
Cheek CreditAttribution: Cheek commentedI'm getting the same 'db.antispam_moderator_email_for doesn't exist' error when trying to edit a profile. Any thought on how to fix this?
Comment #2
KD0JEJ CreditAttribution: KD0JEJ commentedI am not sure if this is a clean fix or not.....and I'm a little new to the procedures here... but...
I went and hunted down the SQL query in the antispam.module file (at that line number's area), and found that the query was looking for antispam_moderator_email_for... The problem was I didn't see a table antispam_moderator_email_for in the database, so I took the _email_for at the end of the table name off, and it executed like a champ.
Also, I posted a new bugreport, but wasn't sure if it needed to be added to this one instead or if it was to be new. I also in addition to this, once I fixed this issue in my copy of the code, received an Undefined notice. I also got that fixed and described that in the issue report.
Comment #3
Cheek CreditAttribution: Cheek commentedThanks for the tip KD0JEJ! I think you are right. It's working ok now.. I changed antispam_moderator_email_for on line 1568, like on 1551.
I also removed line 1529-1539 in antispam.module, because the message seems unnecessary on the register page.
Comment #4
Frits1980 CreditAttribution: Frits1980 commentedThanx KD0JEJ, worked for me to!
Comment #5
mgiffordThis seems to work for me:
Someone want to review & RTBC it? Based on version = "7.x-1.1"
Comment #6
pixture CreditAttribution: pixture commentedI will review and update the code.
Thanks everyone for the problem analysis and debugging/testing.
Comment #7
madri2 CreditAttribution: madri2 commentedProblem when editing an user :
SQLSTATE[42S02]: Base table or view not found: 1146 Table 'xxxx.antispam_moderator_email_for' doesn't exist: SELECT * FROM {antispam_moderator_email_for} WHERE uid=:uid; Array ( [:uid] => 1 ) dans antispam_user_insert() (ligne 1574 dans xxxxxx/sites/all/modules/antispam/antispam.module).
Comment #8
madri2 CreditAttribution: madri2 commentedanother bugs when posting a link :
Notice : Undefined index: comment dans antispam_comment_view() (ligne 1140 dans xxxx/all/modules/antispam/antispam.module).
Warning : array_merge(): Argument #1 is not an array dans antispam_comment_view() (ligne 1140 dans xxxx/all/modules/antispam/antispam.module).
Comment #9
Dave Cohen CreditAttribution: Dave Cohen commentedThe fix #5 working for me.
Comment #10
jbeckers CreditAttribution: jbeckers commentedworks for me as well
Comment #11
sylvain_a CreditAttribution: sylvain_a commentedSame error here as #7, but coming from "admin/people/create".
In other words, this is actually crashing the site when trying to create a new user.
Comment #12
jbeckers CreditAttribution: jbeckers commented@sylvain_a: is that before or after the proposed fix?
Comment #13
sylvain_a CreditAttribution: sylvain_a commentedThis is before.
On the other hand, if the fix is stable, it would be a good idea to publish a new version of the module. I was giving a beginner's workshop, and obviously these people won't patch their modules.
Ideally, it would be good to mention this fix on the project page. But i'm assuming this can only be done by the maintainer...
Comment #14
kmontyThe patch in #5 has been applied in the current dev (looks like it was applied some months ago)
Comment #15.0
(not verified) CreditAttribution: commentedremoved domain