Missing captcha image.

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
johnn
Posts: 50
Joined: Mon 10. Apr 2006, 14:07

Missing captcha image.

Post by johnn »

Haven't used CT with captcha for a while, and now I need to use guesbook CP. But the problem is the captcha image is not showing, there is just X (missing image). I'm not aware of any server changes so what could be the problem?

It was working fine the last time i used it (a while ago).
User avatar
Jensensen
Posts: 3000
Joined: Tue 17. Oct 2006, 21:11
Location: auf der mlauer

Re: Missing captcha image.

Post by Jensensen »

Please check the following files and directories.

Images (and TrueType Fonts) should be in
/template/inc_captcha/

Needed:
/include/inc_ext/SOLMETRA_FormValidator/SPAF_FormValidator.class.php
/img/captcha.php
{so_much} | Knick-Knack. | GitHub
Umlaute im URL sind meistens immer Kacke.
johnn
Posts: 50
Joined: Mon 10. Apr 2006, 14:07

Re: Missing captcha image.

Post by johnn »

All there - 14 png images and 4 fonts.

The other files too.
User avatar
Jensensen
Posts: 3000
Joined: Tue 17. Oct 2006, 21:11
Location: auf der mlauer

Re: Missing captcha image.

Post by Jensensen »

Same web browser used as before?
Wrong settings in "SPAF_FormValidator.class.php": Is this the original file? Or have you changed anything?
Do you have a contact form with a Captcha image? Try to add the captcha image to the form (as an experiment). Working?
Which version of the CMS do you use?
R/W permission of the file should be 644 or 666 or something.
Type to the address bar http your-server.tld/template/inc_captcha/03.png . Can you see the image in the browser window?
I have no more ideas. :?
{so_much} | Knick-Knack. | GitHub
Umlaute im URL sind meistens immer Kacke.
johnn
Posts: 50
Joined: Mon 10. Apr 2006, 14:07

Re: Missing captcha image.

Post by johnn »

Same browser (tried another).
Nothing changed in SPAF_FormValidator.class.php
Missing image in contact form too.
CMS ver 1.3.3
Permissions are 644 (never changed it).
When i type the in the address bar http your-server.tld/template/inc_captcha/03.png i CAN see the image (not in the browser window, but it asks me to save it or open it, so the image is there).

:roll: As i said - it was working some weeks ago. I'm starting to think that maybe my host service provider made any changes...?
User avatar
Jensensen
Posts: 3000
Joined: Tue 17. Oct 2006, 21:11
Location: auf der mlauer

Re: Missing captcha image.

Post by Jensensen »

johnn wrote:... it was working some weeks ago...
so it should today. hmmm, pondering. i personally don't have any experience with the guest book. are there any templates? replacement tag {CPATCHA} missing?
johnn wrote:...03.png i CAN see the image (not in the browser window, but it asks me to save it or open it ...
Usually it should be displayed right in the window!¿
johnn wrote:... maybe my host service provider made any changes...?
yes, sometimes they do. but, i wonder what the reason may be? php4 -> php5... shouldn't affect the 'guestbook'.

anyone else can help?
{so_much} | Knick-Knack. | GitHub
Umlaute im URL sind meistens immer Kacke.
johnn
Posts: 50
Joined: Mon 10. Apr 2006, 14:07

Re: Missing captcha image.

Post by johnn »

OK, this is the error i get when trying to see the image in firefox:

Fatal error: Call to undefined function: imagettftext() in /my_domain/include/inc_ext/SOLMETRA_FormValidator/SPAF_FormValidator.class.php on line 231
User avatar
juergen
Moderator
Posts: 4556
Joined: Mon 10. Jan 2005, 18:10
Location: Weinheim
Contact:

Re: Missing captcha image.

Post by juergen »

Hi

you should perhaps to your php install if gd is present and installed, in Version 2.0 -> phpinfo in admin->

Freetype support should be as well...
User avatar
StudioZ
Posts: 802
Joined: Fri 28. May 2004, 19:57
Location: Québec, Canada
Contact:

Re: Missing captcha image.

Post by StudioZ »

I had the same problem after upgrading.
The problem for me was the permissions on the root folder img/
which holds: img/captcha.php
img/ was set to 775 so I swapped it to 755.
Now all is fine 8)

Hope this may help some of you experiencing the same issue.

Cheers,

Yves
Image
PhpWCMS Evangelist, -- iRoutier.com Running phpWCMS 1.4.2, r354 -> Great Version!!!!
overkill
Posts: 1
Joined: Thu 16. Jul 2009, 14:07

Re: Missing captcha image.

Post by overkill »

I have the same problem, I get the red x appearing where the captcha image should be and I have :

GD Support enabled
GD Version bundled (2.0.34 compatible)
FreeType Support enabled
FreeType Linkage with freetype
FreeType Version 2.1.9
T1Lib Support enabled
GIF Read Support enabled

if i upgrade the gd version and freetype version would that help?
Post Reply