close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Security Code not working

Thread began 9/28/2010 11:56 am by pat356751 | Last modified 10/04/2010 3:47 pm by Jason Byrnes | 1843 views | 17 replies |

pat356751

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?

Sign in to reply to this post

Jason ByrnesWebAssist

I get a server time out error when trying to visit your page.

do you have a working link?

Sign in to reply to this post

pat356751

Originally Said By: Jason Byrnes
  I get a server time out error when trying to visit your page.

do you have a working link?  



Sorry, try contactform/ .

Sign in to reply to this post

Jason ByrnesWebAssist

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:

php:
<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" />
Sign in to reply to this post

pat356751

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?

Sign in to reply to this post

Jason ByrnesWebAssist

No, the True Type library must be enabled for the captcha image to be generated.

Sign in to reply to this post

pat356751

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

Sign in to reply to this post

Jason ByrnesWebAssist

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:

php:
$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; ?>});
Sign in to reply to this post

pat356751

After commenting out the code, should the contact form work? The contact form is not sending the message.

Sign in to reply to this post

Jason ByrnesWebAssist

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?

Sign in to reply to this post
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

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.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...