I found this issue in the list but no solution was ever posted:
https://www.drupal.org/project/captcha/issues/1646574

I'm unable to successfully complete any form with captcha because it is fails the answer check with an error like this:

image

Any idea how to fix this?

Comments

ewaters5 created an issue. See original summary.

MykolaVeryha’s picture

I have got the same error.

MykolaVeryha’s picture

StatusFileSize
new678 bytes

Please check this patch. I had a problem with the panels module. The module was creating a wrong form_id with "-"

MykolaVeryha’s picture

Status: Active » Needs review
steven buteneers’s picture

Status: Needs review » Reviewed & tested by the community

I can confirm that in combination with panels this error occurs because the form contains dashes.

The problem does occur because the posted form ID is validated differently in `_captcha_get_posted_captcha_info() ` where the dashes are filtered out. The path in #3 makes sure both ID's are filtered the same way.

Tested the patch and it works, therefor I will RTBC this.

wundo’s picture

  • wundo committed 4e881f5 on 8.x-1.x authored by Mykola Veriga
    Issue #3061067 by Mykola Veriga, ewaters5, Steven Buteneers: Captcha-...
wundo’s picture

wundo’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.