CAPTCHA image not loading
Hi,
Our registration page (users_registration.php) is not showing the security image.
What am I doing wrong?
Cheers,
Kevin,
Hi,
Our registration page (users_registration.php) is not showing the security image.
What am I doing wrong?
Cheers,
Kevin,
Most likely your host has not enabled the GD or TrueType libraries in the PHP installation.
going dirextly to the page that should generate the capthcha image:
WAVT_CaptchaSecurityImages.php
gives an internal erver error.
add the following code at line 1 of that file:
<?php
error_reporting(E_ALL);
ini_set('display_errors','on');
?>
That should display the actual error. My guess is that the actual error is going to say that a function is undefined. this happens when the GD Library is not enabled on the server, the host will need to correct the problem.
I have enabled the GD Libraries and added the following to the top of the suggested page:
<?php
error_reporting(E_ALL);
ini_set9('display_errors','on');
?>
but it has not made any difference.
Cheers,
Kevin.
Sorry, I had a syntax error in my error reporting code, it should be:
<?php
error_reporting(E_ALL);
ini_set('display_errors','on');
?>
if that does not show an error on the page, than you will need to contact the host to have them look into the error log to find out what the error is. once we know the error, we can troubleshoot the cause.
I am having the same error., when I added the php script as you suggested, I received the following error:
Fatal error: Call to undefined function imagettfbbox() in /home/zbiz/public_html/webassist/captcha/wavt_captchasecurityimages.php on line 138
this means that your host has not enabled the GD or TrueType libraries in the PHP installation.
you will need to contact the host to have them enable those libraries.
I've rebuilt my PHP making sure to add the GD library and Freetype...now I get this error:
Warning: Cannot modify header information - headers already sent by (output started at /home/zbiz/public_html/webassist/captcha/wavt_captchasecurityimages.php:7) in /home/zbiz/public_html/webassist/captcha/wavt_captchasecurityimages.php on line 169
I'll need to troubleshoot directly, see the private message section.
info requested has been added to private message section.
in the webassist/captcha/wavt_captchasecurityimages.php file, you had left blank lines between the error reporting code and the next opening php tag:
<?php
error_reporting(E_ALL);
ini_set('display_errors','on');
?>
<?php
@session_start();
....
the blank lines caused the error.
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.