close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues


Contact form captcha error php5.2

Thread began 9/17/2009 7:03 am by swrmick260574 | Last modified 9/19/2009 5:59 am by swrmick260574 | 2385 views | 2 replies |


Contact form captcha error php5.2

I have been using the contact form pack with php 4.3 for some time now with no problems.
I experimented with using php-cgi 5.2 and the captcha image did not generate (all other php scripts worked fine)
Now I have moved servers to one with php 5.2 with gd2 enabled and again the captcha image has stopped being generated.
If I access the captcha image directly, ie.


no image is generated, instead this error is generated.

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

Line 125 is -
$textbox = imagettfbbox($font_size, 0, $font, $captcha_string);

Help would be appreciated.
Contact Form Version is 102

Sign in to reply to this post

Jason ByrnesWebAssist

The function imagettfbbox() requires GD library and the FreeType library. That error means that the FreeType or GD library is either not enabled or there is a problem with it.

For more information:


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

Sign in to reply to this post


FreeType for GD was missing

I used the php function <?php phpinfo() ?> to view the details of the enabled php extensions.
GD was enabled but FreeType was not mentioned in the php info output (It should have an entry immediately below the GD entry).
I contacted my hosting admin and they enabled it.
The capcha images are now working as expected.

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





Ease of use


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