Security Code not working
The Captcha feature doesn't seem to be working. The images are not showing on the contact form, contactform/ . phpinfo seems to indicate there shouldn't be any Captcha issues. Could someone help with this issue?
The Captcha feature doesn't seem to be working. The images are not showing on the contact form, contactform/ . phpinfo seems to indicate there shouldn't be any Captcha issues. Could someone help with this issue?
I get a server time out error when trying to visit your page.
do you have a working link?
Sorry, try contactform/ .
when i view source of your page, the image source is not correct
<img src="?noisecolor=000000&bgcolor=ffffff&textcolor=000000&transparent=0&characters=5&width=200&height=40&font=../WA_ValidationToolkit/Fonts/monofont.ttf" alt="security code" />
the image souce for the contact form solution pack should be:
<img src="WA_ValidationToolkit/WAVT_CaptchaSecurityImages.php?noisecolor=<?php echo $WAGLOBAL_Captcha_Noise; ?>&bgcolor=<?php echo $WAGLOBAL_Captcha_BG; ?>&textcolor=<?php echo $WAGLOBAL_Captcha_Text; ?>&transparent=<?php echo $WAGLOBAL_Captcha_BG_transparent; ?>&characters=<?php echo $WAGLOBAL_Captcha_Characters; ?>&width=<?php echo $WAGLOBAL_Captcha_Width; ?>&height=<?php echo $WAGLOBAL_Captcha_Height; ?>&font=<?php echo $WAGLOBAL_Captcha_Font; ?>" alt="security code" />
Thanks, the code fixed the link but there seems to be another problem. GD is enabled for PHP but without TTF support. Is there a fix for this problem other than reinstalling PHP?
No, the True Type library must be enabled for the captcha image to be generated.
The server is running PHP Version 5.3.2 which includes the listed gd library. Does PHP need to be updated or can the gd library be updated? Can the contact form security code Captcha feature be turned off to test the form?
gd
GD Support => enabled
GD Version => bundled (2.0.34 compatible)
GIF Read Support => enabled
GIF Create Support => enabled
JPEG Support => enabled
libJPEG Version => 8b
PNG Support => enabled
libPNG Version => 1.4.3
WBMP Support => enabled
XBM Support => enabled
Directive => Local Value => Master Value
gd.jpeg_ignore_warning => 0 => 0
your GD version states 2.0.34 compatible but does not report the actual version.
the error occurring is:
Call to undefined function imagecreatetruecolor()
the imagecreatetruecolor function is defined by the GD library, it should be fine in GD version 2.01 and above. You should contact your host to determine why that function is not included in your PHP version.
you can disable the security code by commenting the following two lines:
$WAFV_Errors .= WAValidateLE(((isset($_POST["Security_question"]))?strtolower($_POST["Security_question"]):"") . "",((isset($_SESSION["random_answer"]))?strtolower($_SESSION["random_answer"]):"") . "",true,5);
var sprytextfield3 = new Spry.Widget.ValidationTextField("sprytextfield3", "none", {validateOn:["blur"], minChars:<?php echo $WAGLOBAL_Captcha_Characters; ?>, maxChars:<?php echo $WAGLOBAL_Captcha_Characters; ?>});
After commenting out the code, should the contact form work? The contact form is not sending the message.
is it going to the thank you page?
Or just staying on the contactus page?
if it is going to the thank you page, then the mail settings you entered in the globals file are not correct.
who is you hosting company?
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.