When I go to the login form (/user) and also then the user page I get having logged in I get an error message:
recoverable fatal error: Object of class stdClass could not be converted to string in /var/www/vhosts/atomkraftsfritt.org/httpdocs/sites/all/modules/spamicide/spamicide.module on line 441.
Changing that line from
$description = variable_get("spamicide_description_$lang_code", $default);
to
$description = variable_get("spamicide_description_" . $lang_code->language, $default);
fixes it
| Comment | File | Size | Author |
|---|---|---|---|
| #16 | spamicide-1.3-patched.module.gz | 4.41 KB | jleinenbach |
| #12 | spamicide_error_fix.patch | 601 bytes | tsi |
Comments
Comment #1
lipcpro commentedLooks good to me. Being that there aren't any translations for this module, would you like to volunteer to add 1?
Comment #2
slarti commentedWhile the above *works* I realised after I'd posted and turn off the computer that it's kind of inefficient... We don't need a second copy of the whole $language variable. Chaning the line I altered back to it's original and replacing line 439 from
$lang_code = $languageto
$lang_code = $language->language;has the same effect but it more efficient.
Re the translation: my Swedish may be up to it, but I'd better wait till my partner comes home to check it!
Comment #4
slarti commentedI'd fixed this locally but when i upgraded (which i thought would include the fix) the error came back. On investigation it was fixed in the 1.x-dev version, but for some reason not in the 1.2 version released later the same day? Apart from the version IDs and datestamp, the only difference between the two is the presence of this bug in 1.2. Is that deliberate? I notice that 1.2 is labelled as "Attempting to fix branch/tag issue" so I wonder if it got missed by accident? I don't think it's a big enough change to require a dev version!
Comment #5
ezra-g commentedMarked #487668: a lot of messages in log as a duplicate of this.
Comment #6
Anonymous (not verified) commentedI had the same issue, solved it with #2.
Thank slarti
Comment #7
jleinenbach commentedSame as #6, solved it with #2.
Thank you slarti.
Comment #8
aldim commentedThanks you slarti. It works. Solved it with #2.
Comment #9
ñull commentedbump
Please could somebody with that permission include this fix in a release version? Aparently since june nothing has been was done about it. Or may be this module is meanwhile without maintainer?
Comment #10
xanchez commented#2 is still working great.
Thanks slarti.
Comment #11
aschiwi commentedThis works for me as well. Is somebody here capable of creating patches? That might make it easier for the maintainer to commit this.
Comment #12
tsi commentedWell, here is a patch for the fix in #2 against head.
Comment #13
ñull commentedfix works. Please submit and bring out an upgrade.
Comment #14
nadam commentedChanged priority to critical since the bug causes the module to not work at all for many people.
It's just one line of code (see #2 above) so it could easily be included in the next release.
Comment #15
meustrus commentedIf I make this fix manually, can I trust that the next release version will not break the fix? Asked another way, can I be certain that this fix will be in the next release version?
Comment #16
jleinenbach commentedPatched module file v1.3. Fixes issues #744560: Installation does not create required directory and CSS is saved in the wrong path, #722014: Spamicide seems to install and configure OK but doesn't prevent spam in any form!!!!, #465100: "recoverable fatal error" with fix.
Comment #17
danielma commentedIt is impossible to make Spamicide work for example on comments, contact_mail_page, user login and so on. It is so heavy problem to get smamicide to every form which is on my web page ? Thanks a lot.
And meanwhile, How can I recognize that it is working ? I mean really working. Thanks Martin
Comment #18
frank ralf commentedThe above patch is included in the most recent release. Please see #722014: Spamicide seems to install and configure OK but doesn't prevent spam in any form!!!! for the most recent discussion on this module. Marking this as duplicate therefor.