When I test the riddler as an anonymous user or a registered user, and I give a correct answer to the captcha riddler, I get a reply that my answer was incorrect. If I am logged in as a "registered user" I am allowed to post my comment anyway (though I think lots of registered users wouldn't continue through to click "post comment" after being told their captcha response was incorrect).

Any idea why the "incorrect response" message comes up even when the response is definitely correct?

CommentFileSizeAuthor
#15 Picture 3_15.png37.13 KBbenmmc

Comments

imerlin’s picture

Assigned: Unassigned » imerlin

This sounds really weird since in fact after I started using the Captcha API there's not that much in the Riddler code that verifies the form.

Are you using any international characters or upper-/lowercase in your answer?

Would help if you'd post your question/answer here or even give me a demo.

elizabeth.wood11’s picture

I'm not using any international characters in the question or the answer.

The question was "What is the second word in the first menu tab at the top of the page" and the answer was "us."

I disabled the module but if you think it would be helpful I will enable it again. (The site is in development at http://drupal.craigambrose.com ) I also discovered that even though I'd set the captcha points such that Administrators and Editors would never be challenged with a captcha, when logged in as Administrator I was indeed being challenged. This did not happen when I was just using the math problem captchas before installing the riddler. On the other hand, when I was using the math problem captchas users were being told their answers were incorrect before entering an answer, but when they did enter the correct answer their answers were accepted.

elizabeth.wood11’s picture

Is it possible that the problem comes from the version of Captcha that I'm using? I'm using Captcha 5.x-2.1, but Riddler is marked as 5.x-1.2.

imerlin’s picture

The versions are right. I just tried your site and I was unable to submit a commend without the right word and able to send it to moderation with the right word.

Looks like normal.

elizabeth.wood11’s picture

Thanks for following up, Imerlin. It's interesting. Your comment came through without being held for moderation. And then when I tried as an unregistered visitor this morning I had the same problems as yesterday. My comment goes through if I provide the correct answer, but I still get a message that says my answer is incorrect. If I ignore that message and click "submit" anyway, the comment goes through.

I'm grateful for your help. I think for now I'm going to leave it off so that users of the site don't get confused by the message.

imerlin’s picture

Not sure how to explain this.

I'd like to the able to reproduce this. I didn't get any errors when I tried your site using the right word. What browser/os are you using?

I'm using Firefox2 on Linux.

David Goodwin’s picture

I'm getting the same problem :

Drupal 5.1 (2007/01/29)
Captcha-5.x-2.1
Riddler-5.2-1.1.tar.gz

My question is : 2+2 = ?
Where the answer is : 4

See http://www.codepoets.co.uk - all comments enter a moderation queue, so if you feel like playing around, just stick 'Riddler Test' or something obvious in the subject....

imerlin’s picture

Works for me as well. What browser/os, are you using?

If you do a 'preview' of your comment, does it also complain there? If it does, please provide a screenshot.

David Goodwin’s picture

Hi,

Browser: Firefox 2 on either Ubuntu Edgy or MacOSX.

If I do a preview it still fails.

Thanks
David.

imerlin’s picture

Just tried this on your site with both Firefox 2 and Safari on my Macbook. No problems, whatsoever.

If anyone can reproduce this and send me screenshots, that would be great.

This however reminds me of something people complained to me about when I was running the Captcha module some time ago. Getting 'wrong' for right answers. Try deleting any cookies you might have for the website, restart your browser and try again.

It is highly unlikely that this bug is limited to the Riddler module.

David Goodwin’s picture

Ah; deleting any existing cookies, and viewing the site as 'Anonymous' works fine. I.e. the captcha question works properly.

If I authenticate myself, then I have to submit the form twice.

Odd. Thanks for the suggestions and help.

imerlin’s picture

Status: Active » Postponed

There is absolutely no session code in the Riddler module so this has to be caused by the Captcha module. Changing status to 'postponed' until I can pinpoint where the problem is and reassign this to the Captcha module.

gagarine’s picture

Nice idea the riddler module :).
I have the same problem, i clear all session data but that change any thins. If i don't use the Riddler module but just a math chalenge all work fine.
I have alway the message "Invalid captcha token.".

My system:
Ubuntu feisty
Firefox + ie4linux
apache 2 + PHP5 + MySQL 4 (locahost)

JasonMR’s picture

Version: 5.x-1.2 » 5.x-3.0
Category: support » bug
Priority: Normal » Critical
Status: Postponed » Active

I was just informed of the problem by one of the few people that actually visit my site, besides spam bots. It would display an error message, but still submit the comment. So I've upgraded from 1.2 to 3.0 and now it doesn't work at all, displaying the same error message as Gagarine "Invalid captcha token.".

The site is hosted with hostgator:
linux kernel 2.6.17.11-grsechg
apache 1.3.37
php 4.4.4

benmmc’s picture

StatusFileSize
new37.13 KB

This is happening to me as well. Using FF2.0.0.7 and OSX - Drupal 5.1 I have attached a screenshot. I'll use the Math one for now. Thanks.

imerlin’s picture

Status: Active » Closed (fixed)

Just released a new version, please report again if problem persists.

actdigital’s picture

Version: 5.x-3.0 » 5.x-3.1
Component: User interface » Code
Status: Closed (fixed) » Active

Hello.
I've been having this issue as well for some time, and this has continued after the 3.1 release. The other Captcha sub-modules work correctly now, but Riddler does not (it rejects the answer every time.) This has been tested on Firefox 2 on both Windows XP and Mac OS X 10.4 and 10.5, and Safari 3.1 in Mac 10.4 and 10.5. I'm running Captcha 3.1, Captcha pack 1.1 and Drupal 5.7. I want to keep Riddler going because it's a very nice module, but I'll need to turn it off if it continues blocking people unnecessarily.

Thanks for your help!
-Michael

actdigital’s picture

This problem has continued - other captcha modules do not have this problem.
Any progress?
Thanks for your help.
-MIchael

imerlin’s picture

Status: Active » Postponed (maintainer needs more info)

What answers/questions are you using? I can't fix unless I can reproduce... So, no... no progress.

actdigital’s picture

I have tried many many questions and answers. None have punctuation in the answer, none have numbers. They are all just simple one word alphabetical answers. Unfortunately none of them work.
One such question is "What city are we located?" answer:seattle. (Answer tried with caps or without, this doesn't matter)
The answer was always rejected, every single time.
This would be a great addition to the Captcha arsenal, but I've had to disable it. It has never worked for me.

Thanks,
-Michael

colemanw’s picture

Version: 5.x-3.1 » 6.x-1.1
Status: Postponed (maintainer needs more info) » Active

This module always worked fine for me. However, after upgrading to the latest version of Captcha last week, now all questions for which there is more than one possible answer do not work. Regardless of which correct answer is given, they are always reported as incorrect. Questions that have only one right answer still seem to work however.

awolfey’s picture

I can't duplicate this on the current supported Captcha with either the official or dev release of Riddler. Can you check which versions you're using and give any steps to duplicate the problem? Thanks.

colemanw’s picture

I tried both comma separated and space separated answers.
I was using:
Drupal 6.20
Captcha 2.4
Riddler 1.1

I tried downgrading to Captcha 2.3, and unfortunately the problem persisted. I continued to test and continued to get the results described above. Only single-answer questions will pass.

awolfey’s picture

What version of PHP?
What are the questions and anwers that are failing?

Thanks

colemanw’s picture

PHP 5.2 fast cgi (standard Dreamhost package)
The questions were all lowercase one-word english words (like tree)
Answers given in the same fashion.

awolfey’s picture

I still can't reproduce. Please configure Captcha to Log wrong responses and the check watchdog and copy the detail message back here. Thanks.

colemanw’s picture

We have been logging. Here's an example from the logs (no pun intended):

user_register post blocked by CAPTCHA module: challenge "Riddler" (by module "riddler"), user answered "wood", but the solution was "wood,logs,firewood,trees".

awolfey’s picture

Status: Active » Fixed

OK, now that helps. I just duplicated the error and commited a fix to 6.x and 7.x branches. The problem was the module was not expecting comma separated values without a space also.

Wait for the new dev package or grab the .module file from git.

Report back if it works and I'll make a new release.

Status: Fixed » Closed (fixed)

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

ljgra’s picture

Issue summary: View changes

I'm having the same issue, Drupal 7, PHP 7.1

I can't see any fix here...