Download & Extend

Image not displaying with Image CAPTCHA

Project:CAPTCHA
Version:6.x-2.3
Component:Image Captcha (image_captcha)
Category:support request
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

I just installed this module today and can't get a image to show in the captcha area of the form. I'm using the built in fonts that cam with the module. I have it enabled for the user registration form. I can't see the example either on the modules example page. Here's my setup:
Drupal 6.19
PHP Version 5.2.14
Linux Apache 2.0

GD enabled
FreeType Support
GD Support enabled
GD Version bundled (2.0.34 compatible)
FreeType Support enabled
FreeType Linkage with freetype
FreeType Version 2.1.9
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled

thanks

Comments

#1

Priority:major» normal

Hi,

What happens when you request the CAPTCHA image directly: look in the markup for the url of the image (it should be something like http://www.example.com/image_captcha/20/1292115581) and copy-paste this in the address bar of your browser. Do you get an error message and if so: what message? Do you get an empty white "page"? Can you do "save page as" and does that result in a non empty file?

Do you have a lot of other modules installed? Do you have custom modules installed?

#2

I have this same issue at memphistrainrevue.com. When I do the actions posted by soxofaan, I get an empty white page. I can savepage as and get a white jpg. When I look at firebug, there is html markup with an image tag below:

<img src="http://memphistrainrevue.com/image_captcha/2522/1292017055" alt="http://memphistrainrevue.com/image_captcha/2522/1292017055">

#3

I have the same issue at www.memphistrainrevue.com. When I enter the url into new window I get white page. When I save as I get a white jpg.

#4

same as me. the image does not appear also.
if you can give any hint, what module would lead to this problem, i can try to disable it and let you know.

cause i have about 80+ module need to check.

#5

I am not getting a white page. I am getting a white page with a 240x80 px box of "snow" with no letters. Here's the html I pulled from the page:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=windows-1252" http-equiv=Content-Type></HEAD>
<BODY><IMG src="http://www.highcaliberpc.biz/image_captcha/43/1296923895"
width=240 height=80></BODY></HTML>

I have tried both .ttf and .fon fonts.

#6

Lol, I'm a goof, had to enable the font under imagecaptcha settings. Sorry for th extra post.

#7

@HighCaliber, that was exactly the same problem I had. Thank you for posting your solution! And I had been going around looking at all my modules for closing tags as suggested by another thread.

#8

I have the same problem. When I open markup for the url of the image in new tab, I get the following message :
The image “http://localhost/site/?q=image_captcha/240/1351835176” cannot be displayed because it contains errors.
Any solution ?

#9

@qami: you're probably having a different problem. I guess another module on your set up is breaking the images. see http://drupal.org/node/271883#comment-889163 for more info

nobody click here