I have been using the captcha module on several sites and have had to interact with it on many other Drupal sites on the web. I have noticed that the module always parses the first attempt at answering incorrectly. For instance the math captcha question "what is 8+8" I answer 16 and it says the answer is incorrect. Now I don't have to check this with a calculator to know that something is wrong. Also the same thing is happening with text captchas. I don't know if this is a bug that has been worked on in later release, but I have yet to find a Drupal website on the web that uses a captcha that doesn't have this error.

Comments

soxofaan’s picture

Status: Active » Postponed (maintainer needs more info)

Are you sure that you indicated the right CAPTCHA version? I don't see reason to use 5.x-3.0-rc3 when there is a 5.x-3.1 already.

If I understand you correctly, you say that every CAPTCHA on every Drupal site on the web fails. This would suggest there is something wrong with your browser (e.g. are cookies enabled?). Did you already try other browsers on other computers?

moshe weitzman’s picture

Older versions of captcha had this error. i suspect this person is not up to date.

RobertOak’s picture

I've got the same thing, CAPTCHA incorrect for the 1st 3 attempts. I'm using Drupal 5.6 and CAPTCHA 5.x.3.1.

I'm using the image CAPTCHA with the double vision turned on. But it seems to be the same error regardless.

soxofaan’s picture

Version: 5.x-3.0-rc3 » 5.x-3.1

What is the error message when CAPTCHA validation fails?
Is it with the anonymous user (uid=0)? Can you try with authenticated users (without the skip CAPTCHA persmission)?
Does this issue also happens with the math CAPTCHA?

RobertOak’s picture

The answer you entered for the CAPTCHA was not correct.

the website is The Economic Populist if you want to try all of these conditions.

Myself I want the anonymous user to work with the image CAPTCHA so to me it doesn't matter if authenticated user works or not because I bypass that one.

I'm game to help debug it and there is contact enabled on the site though.

soxofaan’s picture

Category: bug » support

at #5:
I just could successfully post 2 comments on http://www.economicpopulist.org/?q=content/im-government-and-im-here-hel... as anonymous user.
I think your CAPTCHA is just a bit too difficult: try to lower the distortion level or use a smaller character set (e.g. only upper case). It's probably a good idea to set it as easy as possible and only raise the bar if you feel spam bots are getting in.

RobertOak’s picture

Very weird, because I just tried one and it worked the 1st time now also.

No, I made sure it was a real bug before I posted on here. I tested it multiple times and it was not an error on my part due to the double vision algorithm. I also tested it over time, which makes it even weirder.

So, this is quite strange that it's working now just perfectly. I'll keep testing it again because now I'm wondering if it's an intermittent bug that is appear with some sort of mySQL update or something.

I thought I had isolated it before I posted, guess not!

actdigital’s picture

Hello,
I've also been having this bug.
Many times it takes 2-3 tries, the error I receive is
"The answer you entered for the CAPTCHA was not correct."
Even though the answer is in fact correct.
I am using the Random Captcha Type module and have the captcha pack installed. This error happens on most modules, regardless of whether it's an authenticated or anonymous user. This is used mostly during login, so this is where I notice it most. This is from the login page, not a block.
I can say the ASCII art Captcha seems to work every time, the rest are more sporadic.

My Drupal version is 5.7 (I just updated this, it was experiencing the same problem with version 5.5 as well.)

Thanks for your help and insight!
-Michael

actdigital’s picture

Does anyone have more information about this? I have this problem consistently no matter the set up.
I haven't seen any other proposed fixes or workarounds posted.
Any help would be appreciated.
Thanks,
-Michael

cgjohnson’s picture

I just downloaded the latest CAPTCHA for 5.x and am also having this bug. Is there a fix? Thanks.

soxofaan’s picture

@actdigital: does you problem also occur if you are using just the simple math CAPTCHA (not the one from CAPTCHA pack) instead of the random CAPTCHA? If not, it's a problem with CAPTCHA pack.

@cgjohnson: please describe your setup: on which form do you add a CAPTCHA, which CAPTCHA type, which user roles, ...

actdigital’s picture

Hi soxofaan, thanks for the followup, and for all the work on the module(s)!
I seem to have this problem with all the captchas except for the ASCII-art (the one that spells letters out large using characters). I'm not sure why this would be. If it would help to turn off the captcha pack and retest just using the regular captcha module, I can do that and give you an update.
If that fixes it I'll repost my issue over on the captcha pack pages ;) It does seem a lot of people are having similar issues though, wherever the bug lies.

Thanks for your help!
-Michael

soxofaan’s picture

It is not logical that the problem would exist for all CAPTCHAs except for the ASCII-art CAPTCHA. During the validation step, everything happens inside the core CAPTCHA module, there is no interaction with the modules that implement the various CAPTCHA types.

It would help if you could flesh out the problem with just the core CAPTCHA (that is, the basic math challenge)
and try different forms (e.g. login, comment)

actdigital’s picture

As I'm sure you know, bugs sometimes seem to follow their own logic or no logic at all (until you figure out what's really going on anyway).

A few days ago I updated a bunch of modules, and this problem seems to have gone away. This is a development site but I've been updating modules every few weeks. None of the modules updated are directly related to Captcha, but obviously it's a big ecosystem. These include the new CCK, new OG, new Node Profile, among others.
My particular problem seems to be solved, but if anyone else has seen a direct correlation between this issue and another module, I'm sure people would be grateful to hear it!

Thanks for your help.
-Michael

Update: Sorry it seems I spoke too soon. The problem is back. I will proceed testing with Captcha Pack turned off and report back.

ingo.boltz’s picture

I'm having similar issues; if I enter a math captcha question incorrectly once, my subsequent (correct) answers keep getting rejected as incorrect. This is a multi-language site and for some reason, this only seems to happen when running the site on THAI language and the corresponding font. Any ideas? Could this be font related? Thanks, Ingo

soxofaan’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

Closing old/outdated issues for 5.x releases, which is officially unsupported now.