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.
I upgraded to 6.x-1.7 a few days ago and users have started reporting that they are seeing this error on an otherwise blank page intermittently after submitting a form with recaptcha on it:
"For security reasons, you must pass the remote ip to reCAPTCHA"
I saw this which looks related but the fix should already be in the module:
#764796: $_SERVER['REMOTE_ADDR'] incorrectly used when performing validation
Comment | File | Size | Author |
---|---|---|---|
#3 | recaptcha-domains-6.x-1.7.patch | 573 bytes | sebas5384 |
Comments
Comment #1
mr.j CreditAttribution: mr.j commentedNote comment #1 in the linked issue which was not implemented:
http://drupal.org/node/764796#comment-2818538
Comment #2
daroz CreditAttribution: daroz commentedConfirming this issue. Seems to affect unauthenticated users mostly.
Reverted patch from #764796: $_SERVER['REMOTE_ADDR'] incorrectly used when performing validation restored normal operation.
Comment #3
sebas5384 CreditAttribution: sebas5384 commentedThe reCaptcha isn't validating because it seems to need the remote ip adress from where the submission was made.
So with this patch that was resolve.
Cheers!
Comment #4
tpainton CreditAttribution: tpainton commentedI'm getting the same error with authenticated user.
Applied patch and the problem appears to be solved.
Comment #5
mr.j CreditAttribution: mr.j commentedPatch seems to work for me too.
Comment #6
RobLoachThanks a lot for the help on this!!!
Drupal 6: http://drupalcode.org/project/recaptcha.git/commit/1d24fcc
Drupal 7: http://drupalcode.org/project/recaptcha.git/commit/a9b010c
Think a version 1.8 is in order?
Comment #7
mr.j CreditAttribution: mr.j commentedI think so. It can lead to users thinking our website is broken and prevent comments, registrations etc.
Comment #8
colan+1 for a 1.8!
Comment #10
geekgirlweb CreditAttribution: geekgirlweb commentedPatch still needs to be added.
Comment #11
Liam MorlandThe patch has been committed and will appear in the next release.