Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
in Watchdog first there is a message that one is blocked.
Then always we get this in the log:
Notice: Array to string conversion in url() (line 2186 of .httpdocs/includes/common.inc).
Maybe the use of the $path isn't handy, is it a global one 2?
Comment | File | Size | Author |
---|---|---|---|
#3 | spamicide_destinationfix_1942834.patch | 984 bytes | cr0ss |
Comments
Comment #1
neRok CreditAttribution: neRok commentedI am receiving a similar error. My register form has Name and Email fields, along with 2 check boxes. When spam gets block, I receive the 'spamicide blocked ..." message, plus the following messages (in order)
My guess is the spam is writing some sort of url/array into the fields? Why are the fields being processed at all, I would think they would just be dumped.
Comment #2
xkjq CreditAttribution: xkjq commentedProblem is on line 460 in spamicide.module. Its trying to redirect the user to an array (instead of a url).
Changing
to
seems to fix it. I don't have much experience with drupal so am not sure why/when this problem first appeared (or the best way to submit a patch).
Comment #3
cr0ss CreditAttribution: cr0ss commentedI would say $form_state['values']['destination'] should have an actual destination URL. There is no need to include whole array the drupal_get_destination() returns.
Comment #4
MartinDeJong CreditAttribution: MartinDeJong commentedSeems to be working:) Thanks. I needed a few tries to read the patch file, must have been the monday.
Comment #5
xkjq CreditAttribution: xkjq commentedYeah that is a better solution.
(And apparently its not the first time someone suggested it either - https://drupal.org/node/1787774)
Comment #6
lipcpro CreditAttribution: lipcpro commented