PDA

View Full Version : Captcha image not displaying on form


keith389310
11-23-2009, 06:40 PM
Created a new form in a php document, uploaded the file and all supporting WA Validation Toolkit folders and files to server but the captcha image doesn't display on my form. I get a red X and a box that says "Security Code".

Read all other relevant support posts here but didn't find solution. The GD library is enabled on the server according to PHPINFO. Any ideas?

Jason Byrnes
11-24-2009, 09:30 AM
The captcha image is generated by the WA_ValidationToolkit/WAVT_CaptchaSecurityImages.php file. What happens if you preview that page in the browser?

keith389310
11-25-2009, 10:08 AM
It displays a blank page, like there's a problem with the PHP code. The Security question works properly when viewed by itself in a browser so I don't think it's an issue with PHP on the server.

Ray Borduin
11-25-2009, 10:21 AM
It must be a problem with the GD installation. When you look at your phpinfo what version of GD does it say you have installed? Do you have a link where we can view the phpinfo for that site?

keith389310
11-27-2009, 09:12 AM
GD Support enabled
GD Version bundled (2.0.28 compatible)
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled


Complete info link:
http://www.dvwd.com/sals/phpinfo.php

Ray Borduin
11-30-2009, 07:38 AM
I believe your PHP interpreter needs to be compiled with support for the FreeType library.

Check whether phpinfo lists the following entries under GD:
FreeType Support enabled
FreeType Linkage with freetype

These can be enabled in the php.ini file:

'--with-freetype-dir=/usr/local/lib'
'--with-gd'
'--enable-gd-native-tt'

keith389310
12-12-2009, 11:24 AM
Thanks. The issue is now resolved. Even though GD was enabled on my PHP version 4.4 server the freetype parameters were not. My webhosting company had to move my account to a PHP version 5 server to add the freetype parameters. Perhaps others are having this issue as well because the freetype parameters can only be added to a PHP version 5 server?