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.

  1. Installed Captcha (4.7.x-1.2) and TextImage (4.7.x-2.x-dev).
  2. Enabled both modules
  3. Gone to admin/settings/captcha and enabled the relative points for each role - mainly anonymous role.
  4. Set type of captcha to textiamge (also tried captcha).
  5. Gone to admin/settings/textimage and checked settings, left all default, and at the bottom it says "GD Version: bundled (2.0.28 compatible)".
  6. 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 ?
  7. Logged out of site.

Have I missed something obvious here.?

Thanks.

Comments

sl27257’s picture

Hi,

I have the same problem. In my case it has worked before.

  • I have removed the cookies
  • I have cleaned the cache
  • It is confirmed on IE6 and FF
  • There is nothing in the log
  • Mathproblem works
heine’s picture

Project: CAPTCHA » Textimage
Version: 4.7.x-1.2 » 5.x-2.x-dev
Component: Miscellaneous » Code
Category: support » bug
Status: Active » Fixed

New releases will be made available.

heine’s picture

wundo’s picture

Assigned: Unassigned » wundo
Status: Fixed » Postponed (maintainer needs more info)

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... ;)

heine’s picture

The textimage captcha did not show because it already passed validation.

wundo’s picture

Hmmm, ok, so let wait from optik confirm if the new version resolved the problem. ;)

Maistra’s picture

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

alexkb’s picture

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 :)

heine’s picture

Status: Postponed (maintainer needs more info) » Fixed

Marking this fixed.

Other issue: http://drupal.org/node/114387 (for both captcha and textimage).

Anonymous’s picture

Status: Fixed » Closed (fixed)