Closed (fixed)
Project:
CAPTCHA
Version:
6.x-2.x-dev
Component:
Captcha API (captcha)
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 Sep 2008 at 04:32 UTC
Updated:
23 May 2009 at 17:10 UTC
I am using drupal 6 DEV sept 23 and the latest captcha module with latest recaptcha module add-on on a contact form. I get the following error after submitting:
notice: Undefined index: captcha_response in /home/content/m/o/d/modoggieweb/html/modules/captcha/captcha.module on line 333.
Comments
Comment #1
beginner commentedI confirm this bug with 6.x-1.x. This part of the code is similar in the dev version, so upping.
I am having this problem with captach + recaptcha.
The code has:
However, $form_state['values'] at this stage is (on a user registration form):
So, what is it supposed to be?
Comment #2
beginner commentedTo be clear: I have been able to reproduce this bug on the latest dev version, so the bug applies to the two branches, but on line 313 in the active dev branch.
Comment #3
beginner commentedI solved the issue for now by using the following code:
but I don't know this module enough to know if it's the proper approach, since captcha_response is not referenced anywhere in the form value. Is it supposed to be something else?
Comment #4
beginner commentedSee #214505: notice: Undefined index: captcha_response in captcha.module on line 306. in recaptcha.module issue queue.
Comment #5
soxofaan commentedNot much time to review this thoroughly, but captcha_response is a field that should be defined by the module that implements the challenge.
So important question is: what challenge type are you using?
Comment #6
beginner commentedAs mentioned in #1, I am having this problem with captach + recaptcha.
Comment #7
soxofaan commentedThis issue seems to be fixed with the latest version CAPTCHA 6.x-2.x-dev and reCAPTCHA.
please reopen if you're still experiencing the same problem