Download & Extend

No images showing, no errors, nothing

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.

  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

#1

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

#2

Project:CAPTCHA» Textimage
Version:4.7.x-1.2» 5.x-2.x-dev
Component:Miscellaneous» Code
Category:support request» bug report
Status:active» fixed

New releases will be made available.

#3

#4

Assigned to:Anonymous» 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... ;)

#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

Status:postponed (maintainer needs more info)» fixed

Marking this fixed.

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

#10

Status:fixed» closed (fixed)