Posted by alexkb on January 31, 2007 at 4:35am
Jump to:
| Project: | Textimage |
| Version: | 5.x-2.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | wundo |
| Status: | closed (fixed) |
Issue Summary
Hi everyone,
For some reason, I cannot get any captcha images showing up in any forms. There's no errors in the logs, or anything to explain why this is the case too, so I am asking here, if anyone has come across the same problem. Below is an explanation of what I have done.
- Installed Captcha (4.7.x-1.2) and TextImage (4.7.x-2.x-dev).
- Enabled both modules
- Gone to admin/settings/captcha and enabled the relative points for each role - mainly anonymous role.
- Set type of captcha to textiamge (also tried captcha).
- Gone to admin/settings/textimage and checked settings, left all default, and at the bottom it says "GD Version: bundled (2.0.28 compatible)".
- Gone to admin/access and made sure all user groups have access to `access textimages`, but there are no permissions listed for the `captcha` module - is there suppose to be ?
- Logged out of site.
Have I missed something obvious here.?
Thanks.
Comments
#1
Hi,
I have the same problem. In my case it has worked before.
#2
New releases will be made available.
#3
See SA-2007-007 - response validation bypass.
#4
Did you set the user permisions?
@Heine, I think your commit don't solve that kind of problem it just solves the broken session validation... ;)
#5
The textimage captcha did not show because it already passed validation.
#6
Hmmm, ok, so let wait from optik confirm if the new version resolved the problem. ;)
#7
I had a similar problem and i noticed it missed the :
captcha_perm function..
so i adopted it from the 5.0 version
function captcha_perm() {
return array('access captchas');
}
hope it helps
#8
Thansk for the prompt replies everyone, you guys are great!
wundo: Yes I did set the permissions, see point #6 of the post.
Heine: Looks like that fixed it - the images are now being displayed, however, whenever a form is loaded, the captchavalidate error is showed - almost as if, the form had already been submitted.
I made a slight adjustment to fix this problem, simply by adding a condition in the textimage_captchavalidate function, before the call to the set_error (line 39):
else {if ($_POST) {
$correct = false;
form_set_error('captcha_response', t('The image verification code you entered is incorrect.'));
}
}
I've tested it, and it seems to work fine, but it's probably not the right way to do things, so if someone could implement a better fix, please post :)
#9
Marking this fixed.
Other issue: http://drupal.org/node/114387 (for both captcha and textimage).
#10