Posted by soxofaan on February 13, 2008 at 9:27pm
| Project: | CAPTCHA Pack |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | task |
| Priority: | critical |
| Assigned: | soxofaan |
| Status: | needs review |
Issue Summary
Because the world list CAPTCHA choices change on every form instance, Drupal thinks that the submitted response is an illegal choice (most of the times). In the Drupal 5 version this could be worked around with #DANGEROUS_SKIP_TEST, but this 'feature' has been removed in Drupal 6: http://drupal.org/node/114774#choice_check .
An alternative is needed.
Comments
#1
same problem for phrase CAPTCHA module
#2
the hack with $_POST['random_captcha_type'] in random_captcha_type probably should be replaced with a related fix
#3
marked #568880: Phrase and relative position Error Message as duplicate
#4
subscribed
#5
subscribed
#6
I've fixed this with an #after_build handler which ensures that the submitted value is always present in the options array at validation time.
#7
I was having this exact problem with the word_list_captcha and the maths captcha, which was odd as it was working without error on another site. I shecked the enabled modules, and the only difference was that I had Botcha and Image captcha enabled on the site that didn't work. I've now only have
ASCII art,
math,
phrase,
word list
enabled on both sites and they are both now working without the error.