close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Captcha Image missing

Thread began 3/13/2010 5:36 pm by westmorelandgraphics311771 | Last modified 4/01/2010 9:44 am by Jason Byrnes | 1537 views | 8 replies |

westmorelandgraphics311771

Captcha Image missing

I'm in the contactus.php file. The captcha image is missing and I cannot get it to work. I've checked the img src re: instructions from another post. Here is the code associated with the image:

<div class="text"><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" /></div>

I've also tried changing the font in the WA_Globals.php file. What can I try next to get this to work? Thanks.

Denise

Sign in to reply to this post

Jason ByrnesWebAssist

please post a link where I can see the problem.

Sign in to reply to this post

westmorelandgraphics311771

Here's the link to the contact page:

contactus.php

Thanks.

Sign in to reply to this post

Jason ByrnesWebAssist

when i view source of the page, the image source code is:
<img src="WA_ValidationToolkit/WAVT_CaptchaSecurityImages.php?noisecolor=F0F0F0&bgcolor=F0F0F0&textcolor=000000&transparent=0&characters=5&width=255&height=40&font=/ContactForm102/ContactForm_GMC/WA_ValidationToolkit/Fonts/MACTYPE.TTF" alt="security code" />


trying to browse directly to the captcha image at:
MACTYPE.TTF

gives the following error:

Warning: imagettfbbox() [function.imagettfbbox]: Could not find/open font in /home/denwest/public_html/store/WA_ValidationToolkit/WAVT_CaptchaSecurityImages.php on line 125


seams there is a problem with the font path:
font=/ContactForm102/ContactForm_GMC/WA_ValidationToolkit/Fonts/MACTYPE.TTF


If I change that to:
font=Fonts/MACTYPE.TTF

and browse to:
MACTYPE.TTF



the captcha image displays correctly.

Sign in to reply to this post

drewgss371883

Similar problem

I am having a similar problem.
I changed "font=Fonts/MOM_T___.TTF" but still get the Fatal error: listed below.
In the form I get a broken image link symbol in the captcha (contactus.php).


MOM_T___.TTF

Fatal error: Call to undefined function imagettfbbox() in /home/gssdesi/public_html/ContactForm_GMC/WA_ValidationToolkit/WAVT_CaptchaSecurityImages.php on line 125

Sign in to reply to this post

Jason ByrnesWebAssist

you need to enable the GD library on your PHP server

Sign in to reply to this post

drewgss371883

Captcha image broken link

Still the same broken image links at:

contactus.php

contact_styled.php




Still the same error messages at all 3 links:

WA_ValidationToolkit/WAVT_CaptchaSecurityImages.php

WA_ValidationToolkit/WAVT_CaptchaSecurityImages.php?noisecolor=000000&bgcolor=ffffff&textcolor=000000&transparent=0&characters=5&width=200&height=40&font=WA_ValidationToolkit/Fonts/MOM_T___.TTF

WA_ValidationToolkit/WAVT_CaptchaSecurityImages.php?noisecolor=000000&bgcolor=ffffff&textcolor=000000&transparent=0&characters=5&width=200&height=40&font=Fonts/MOM_T___.TTF



Fatal error: Call to undefined function imagettfbbox() in /home/gssdesi/public_html/ContactForm_GMC/WA_ValidationToolkit/WAVT_CaptchaSecurityImages.php on line 125



and GD Library is active see link below
gd-test.php

Sign in to reply to this post

drewgss371883

Captcha image broken link

line 125 from "WAVT_CaptchaSecurityImages.php"

$textbox = imagettfbbox($font_size, 0, $font, $captcha_string);

Sign in to reply to this post

Jason ByrnesWebAssist

FreeType needs to be enabled as well.

See the php.net manual page for the imagettfbbox function

  Notes

Note: This function requires both the GD library and the ยป FreeType library.  




In most cases, FreeType is automatically enabled with the GD library

Sign in to reply to this post

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...