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

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Captcha not displaying on live server - GD library is enabled

Thread began 8/03/2010 12:40 pm by YellowCircleWeb | Last modified 8/21/2010 4:26 pm by gbolda339593 | 5421 views | 7 replies |

YellowCircleWeb

Captcha not displaying on live server - GD library is enabled

Hi,

I'm having a problem with Captcha not displaying when I upload my page to our web server. I've double checked that the GD image library is enabled and it is. We're running PHP version 5.

The page works fine on my local testing server without changing anything at all.

You can view the page here: form.php

Sign in to reply to this post

Jason ByrnesWebAssist

This url is asking for a user name and password to access it, can you please supply these so I can examine the issue.

Sign in to reply to this post

YellowCircleWeb

Sorry, it shouldn't have been asking for that.

Username: dcman007
Password: deacon007

Sign in to reply to this post

YellowCircleWeb

I've just found something else out, when you right-click on the image and select open image in a new tab (this is in Google Chrome) you get these error messages:

PHP Warning: imagettfbbox() [<a href='plugins/function.imagettfbbox'>function.imagettfbbox</a>]: Could not find/open font in \\10.0.3.22\home\yellowcircle.co.uk\public_html\yc-site-2010\WA_ValidationToolkit\WAVT_CaptchaSecurityImages.php on line 125
PHP Warning: imagettfbbox() [<a href='plugins/function.imagettfbbox'>function.imagettfbbox</a>]: Could not find/open font in \\10.0.3.22\home\yellowcircle.co.uk\public_html\yc-site-2010\WA_ValidationToolkit\WAVT_CaptchaSecurityImages.php on line 136
PHP Warning: imagettfbbox() [<a href='plugins/function.imagettfbbox'>function.imagettfbbox</a>]: Could not find/open font in \\10.0.3.22\home\yellowcircle.co.uk\public_html\yc-site-2010\WA_ValidationToolkit\WAVT_CaptchaSecurityImages.php on line 136
PHP Warning: imagettfbbox() [<a href='plugins/function.imagettfbbox'>function.imagettfbbox</a>]: Could not find/open font in \\10.0.3.22\home\yellowcircle.co.uk\public_html\yc-site-2010\WA_ValidationToolkit\WAVT_CaptchaSecurityImages.php on line 136
PHP Warning: imagettfbbox() [<a href='plugins/function.imagettfbbox'>function.imagettfbbox</a>]: Could not find/open font in \\10.0.3.22\home\yellowcircle.co.uk\public_html\yc-site-2010\WA_ValidationToolkit\WAVT_CaptchaSecurityImages.php on line 136
PHP Warning: imagettfbbox() [<a href='plugins/function.imagettfbbox'>function.imagettfbbox</a>]: Could not find/open font in \\10.0.3.22\home\yellowcircle.co.uk\public_html\yc-site-2010\WA_ValidationToolkit\WAVT_CaptchaSecurityImages.php on line 136
PHP Warning: imagettftext() [<a href='plugins/function.imagettftext'>function.imagettftext</a>]: Could not find/open font in \\10.0.3.22\home\yellowcircle.co.uk\public_html\yc-site-2010\WA_ValidationToolkit\WAVT_CaptchaSecurityImages.php on line 145
PHP Warning: imagettftext() [<a href='plugins/function.imagettftext'>function.imagettftext</a>]: Could not find/open font in \\10.0.3.22\home\yellowcircle.co.uk\public_html\yc-site-2010\WA_ValidationToolkit\WAVT_CaptchaSecurityImages.php on line 145
PHP Warning: imagettftext() [<a href='plugins/function.imagettftext'>function.imagettftext</a>]: Could not find/open font in \\10.0.3.22\home\yellowcircle.co.uk\public_html\yc-site-2010\WA_ValidationToolkit\WAVT_CaptchaSecurityImages.php on line 145
PHP Warning: imagettftext() [<a href='plugins/function.imagettftext'>function.imagettftext</a>]: Could not find/open font in \\10.0.3.22\home\yellowcircle.co.uk\public_html\yc-site-2010\WA_ValidationToolkit\WAVT_CaptchaSecurityImages.php on line 145
PHP Warning: imagettftext() [<a href='plugins/function.imagettftext'>function.imagettftext</a>]: Could not find/open font in \\10.0.3.22\home\yellowcircle.co.uk\public_html\yc-site-2010\WA_ValidationToolkit\WAVT_CaptchaSecurityImages.php on line 145

I don't think the TTF file is being uploaded correctly by Dreamweaver. It wouldn't allow me to upload the file at first stating that there was a permissions problem. This was not true as I was able to change the filename within Dreamweaver, upload the file and then change it back on the remote server without any permission restrictions. Each time I uploaded the files to test my form it was always the TTF file that wouldn't upload.

I then tried to FTP the file with Filezilla instead of Dreamweaver and had no problems doing so, I didn't have to change the file name either. I noticed that the file transfer mode it was using was binary (which I understand is correct for this file type). However, even after using Filezilla I cannot get the Captcha image to display.

I don't know if any of that helps, but I thought I would mention it being as the errors I just found are related to the TTF file.

Sign in to reply to this post

Jason ByrnesWebAssist

it looks like there is a permissions problem on the fonts directory:
fonts/


using filezilla try changing the permissions on the font directory to allow read and write permissions for all users.

Sign in to reply to this post

YellowCircleWeb

Hi,

I changed the permissions using chmod to 777 for all users and the captcha image still didn't display.

Is it possible that I haven't uploaded the font file in the correct way and it's not being recognised as a font on the server? When checking the font file in my hosting control panel file manager the file type is listed as other? I've double checked the font file name is correct and as I said before it works fine on my local development machine.

I've left the Font directory permissions as 777 for the time being and I recycled the application pool on the server too to clear the cache. Still no luck though. I'm really stumped with this.

Sign in to reply to this post

Jason ByrnesWebAssist

it could be an issue with FreeType support.


create a new php file and add the following code:

php:
<?php phpinfo(); ?>




this will let me see the details about the GD library and free type support on the server.

Sign in to reply to this post

gbolda339593

I have had similar situations with one of my hosting companys and Dreamweaver not uploading TTF fonts. I went to the hosting company's control pannel and uploaded via their control pannel...

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