I've just installed recaptcha module and it works fine but I get this error only at the sign up screen (registration screen).

Does anyone know what can I do to fix it??

The error:

Notice: Undefined index: form_id in _captcha_get_posted_captcha_info() (line 604 of /var/www/drupal/sites/all/modules/captcha/captcha.module). Notice: Undefined index: captcha_info in _captcha_get_posted_captcha_info() (line 607 of /var/www/drupal/sites/all/modules/captcha/captcha.module).

Screenshot:

https://image.ibb.co/eYQdhn/Captcha.jpg

Comments

grahammiranda13 created an issue. See original summary.

surbz’s picture

Cannot replicate.
@grahammiranda13 Could you provide more insights that might help reproducing this error.
Thank You!!

a_developer’s picture

@surbz The issue seems to only affect Drupal Commons. grahmmirand13's screenshot is of a Drupal Commons setup. I have the same issue on commons as well. 1.3 Captcha worked fine but 1.5 has this error. Appears to be related to security upgrades in captcha.module Lines 258, 598-609 Edit: Incorrect Version, Apologies. Added details.

ishani.addweb’s picture

Status: Active » Needs review
StatusFileSize
new830 bytes

@grahammiranda13, I got the same error as you mentioned above & tried to give you the solution which resolves the error for mine too.
Hope this helps you. Please share your inputs on it if you have any query or issue.

Thanks!..

elachlan’s picture

Version: 7.x-1.5 » 7.x-1.x-dev
Status: Needs review » Needs work

Can you please re-roll against dev?

avpaderno’s picture

Issue tags: -Debugging, -error, -undefined index, -notice +Debug
anastasiaphil’s picture

StatusFileSize
new834 bytes
new908 bytes

In captcha.module:195 it checks if $posted_captcha_sid is set, which, after this patch, it is set and empty. This causes an error when trying to submit a valid captcha.

japerry’s picture

Status: Needs work » Closed (outdated)
Issue tags: -

Drupal 7 is no longer supported, closing.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.