Closed (fixed)
Project:
CAPTCHA
Version:
6.x-2.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
2 Feb 2009 at 13:49 UTC
Updated:
20 Feb 2009 at 17:50 UTC
Jump to comment: Most recent file
Comments
Comment #1
soxofaan commentedI can't reproduce your problem with 6.x-2.x-dev or (the freshly released) 6.x-2.0-beta2
can you give more info about your setup: browser, platform, webserver, cookies enabled?, javascript enabled?, etc
Comment #2
doomritual commented6.x-2.0-beta2?????
I was referring to beta1 which I downloaded and was testing over the last week. Let me try beta2 and I'll get back to you.
Comment #3
doomritual commentedok I get the same for beta-2.
Here are the steps I took.
Deinstall all trace of captcha, remove from modules directory. Check in mysql for captcha tables - gone.
Add module and activate, use maths and add a captcha to forum. I did this in firefox 3.0.5.
I then start up opera 9.51 and galeon 2.0.6 (don't ask me about IE - I only work in linux). Clear the cache in each browser to be sure I'm not picking up any stale cached info. Then as guest add a new forum topic. Captcha challenge is present and forces me to answer a maths question 10+2. I enter the value ss. That's right - two s's. Forum topic is successfully created.
(when I made my original post I was also observing this with firefox as well as the other two browsers. Not tested firefox today)
I'm using drupal 6.9
I've tested this with my dev env which is linux Ubuntu 8.10 and Xampp version 1.6.5.a - this gives php 5.2.5, mysql 5.0.51, apache 2.2.6.
I've also tested on my live site (I don't get many hits but still got half a dozen spams filling my forum while captcha was on!!!)
Live site software is:
apache 2.2.10
php 5.2.8
mysql 5.0.67
os: linux (not sure what version my host uses)
cookies and javascript enabled
Finally I'm using straight out of the box drupal forum, no other modules bolted onto it.
I'm now using captcha 6.x-1.0-rc2 which works great so this isn't a major issue for me right now, but happy to help resolve this in any way I can if you think it might be a bug.
Comment #4
soxofaan commentedOk, I can reproduce it,
key is that the CAPTCHA is placed on a node form (such as the forum topic form)
I only tried with the comment form, which does not suffer from the problem.
Cause: the validate handler
captcha_validate()is defined in an include file (captcha.pages.inc), which is loaded as necessary bycaptcha_form_alter(), but in case of node forms, the form is cached (as far as I know) andcaptcha_form_alter()does not run on validation, so the validation handler can not be found, which fails silently.attached patch should solve the issue
Comment #5
doomritual commentedHi,
I can confirm that the patch seems to fix the issue.
Thanks for your help
Comment #6
soxofaan commentedfixed by http://drupal.org/cvs?commit=169598