• Curran@CurranOmniMedia.com

SOLVED: How To Fix A WordPress Captcha Text Font Error

SOLVED: How To Fix A WordPress Captcha Text Font Error

Getting a Warning: imagettftext() [function.imagettftext]: Could not read font error message? Let’s fix it!

If you have a form on a your WordPress website and are trying to prevent spammers  from flooding your site with deals on  – well, you know the kinds of deals they promote, get yourself a “Completely Automated Public Turing Test To Tell Computers and Humans Apart” or a CAPTCHA.  You are undoubtedly familiar with CAPTCHA codes. They look like this:

Personally I’m a big fan of MM Forms so I’ll use that plug-in as my example but the theory is the same no matter what you use.

Easy enough to set-up: download it and FTP into your WordPress PLUGINS directory just like you have done for other plugins. I’ll use Filezilla in my examples. Its a great, FREE FTP program.

But do you do if you load your webpage and you get the dreaded “Warning: imagettftext() [function.imagettftext]: Could not read font…error message? Well you could Google it – but the results are uglyyyyyy. Hopefully I can save you some gray hairs. Here we go:

The directions for MM Forms read:

  1. Upload whole mm-forms-community folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Make following directories writable (chmod 777) /exports/ and /captcha/tmp /upload

Ok Wait . . CHMOD???

Its simple: “The chmod command (abbreviated from change mode) is a Unix command that lets a programmer tell the system how much (or little) access it should permit to a file. It changes the file system modes of files and directories.” Basically, you don’t want people visiting your website to just drill into any folder on your server and be able to run commands, upload files etc.

  1. FTP into your website
  2. Go to the folder you need to change (or check) permissions on.
  3. Right Click on it.
  4. In Filezilla the command to select is “FILE PERMISSIONS” – If you are using a different FTP program look for similar message.

And Ta-Da! Changing from the default of 755 to 777 is as easy as checking two boxes!

 

OK Done! Everything works, right? Oh wait a minute . ..  you load the webpage and get Warning: imagettftext() [function.imagettftext]: Could not read font in . . . error?

Usually this is caused by the permissions being wrong, the font files not being uploaded all the way or the font files being corrupted. Not OK. Let’s fix it!

Try this . .

  1. Find the folder inside the the plugin you are setting up what has the actual font files in it. In our case, its in wp-content/plugins/mm-forms/captcha/gentium
  2. Delete the .TTF and .VFB files. You’ll notice they are quite large compared to the other files in that directory:

And now for Trick #1.

99.9% of the time your FTP program is set to automatically decide how to transfer the files from your computer to the the server. 99.9% of the time you never have to change this setting. Welcome to the .1% of the time when you do.

In Filezilla, Select TRANSFER –> TRANSFER TYPE –> BINARY

Don’t worry about why for, or who what – Just select BINARY.

Trick #2 – upload the TTF and VFB files one at a time. Trust me.

Upload one, wait for it to finish (it will take longer than normal) and then check the filesize to make sure the whole file got to the server.

I repeat: check the filesize to make sure the whole file got to the server.

Repeat for your remaining files.

Cross your fingers.

Reload your webpage.

Sigh in relief. The dreaded Warning: imagettftext() [function.imagettftext]: Could not read font in . . . beast is no more!

And don’t forget to change your transfer mode back to AUTOMATIC!

Problem solved? All I ask for is Beer and Books. Beer and Books. (Kindle versions preferred)

Cheers!

32 Comments

  • facebook app

    July 13, 2011 at 1:27 am

    Useful information for every Developers.. like iam.. Thanks for this update..

  • Moncler

    July 18, 2011 at 1:37 am

    Most of girls love Moncler clothing, they always hope to own one, even dream it at night. This brand clothing is so expensive that they can not afford to buy it. If they can find the cheap Moncler Jackets For Women with high quality at the same time, they are surely very happy. Every girl must dream of Womens Moncler Jackets clothes. If a girl found a place where sell cheap Moncler jackets, Moncler Jackets, she will be very happy.

    ISO 9000

    August 5, 2011 at 3:13 am

    I read your post . it was amazing.Your thought process is wonderful.The way you tell about things is awesome. They are inspiring and helpful.Thanks for sharing your information and stories.
    iso 9000

    dissertation help

    December 9, 2011 at 10:34 pm

    he font files not being uploaded all the way or the font files being corrupted.

    Jacalyn Prieto

    April 15, 2012 at 11:02 pm

    Usually this is caused by the permissions being wrong, the font files not being uploaded all the way or the font files being corrupted. Not OK. Let’s fix it!

    CusomizeFacebookApps

    April 15, 2012 at 11:34 pm

    They are inspiring and helpful.Thanks for sharing your information and stories.

    Otilia Harlan

    April 16, 2012 at 10:53 pm

    If you have a form on a your WordPress website and are trying to prevent spammers from flooding your site with deals on – well, you know the kinds of deals they promote, get yourself a “Completely Automated Public Turing Test To Tell Computers and Humans Apart” or a CAPTCHA. You are undoubtedly familiar with CAPTCHA codes.

    SherronSw

    April 17, 2012 at 12:32 am

    If you have a form on a your WordPress website and are trying to prevent spammers from flooding

    Sabra Burge

    April 17, 2012 at 2:40 am

    If you have a form on a your WordPress website and are trying to prevent spammers from flooding your site with deals on – well, you know the kinds of deals they promote,

    Suzie Danner

    April 17, 2012 at 2:53 am

    Its simple: “The chmod command (abbreviated from change mode) is a Unix command that lets a programmer tell the system how much (or little) access it should permit to a file. It changes the file system modes of files and directories.” Basically, you don’t want people visiting your website to just drill into any folder on your server and be able to run commands, upload files etc.

    Martine Almeida

    April 17, 2012 at 9:03 pm

    If you have a form on a your WordPress website and are trying to prevent spammers from flooding your site with deals on – well, you know the kinds of deals they promote, get yourself a “Completely Automated Public Turing Test To Tell Computers and Humans Apart” or a CAPTCHA.

    Elvera Noonan

    April 17, 2012 at 11:20 pm

    Your website to just drill into any folder on your server and be able to run commands, upload files etc.

    Hui Mcclung

    April 18, 2012 at 2:00 am

    Usually this is caused by the permissions being wrong, the font files not being uploaded all the way or the font files being corrupted. Not OK. Let’s fix it!

    Marylee Cato

    April 18, 2012 at 2:15 am

    ” Basically, you don’t want people visiting your website to just drill into any folder on your server and be able to run commands, upload files etc.

    ShandraLemay

    April 18, 2012 at 2:51 am

    If you have a form on a your WordPress website and are trying to prevent spammers from flooding your site with deals on – well, you know the kinds of deals they promote, get yourself

    Rosaria Cousins

    April 18, 2012 at 3:36 am

    ost of girls love Moncler clothing, they always hope to own one, even dream it at night. This brand clothing is so expensive that they can not afford to buy it. If they can find the chea

    Laci Burnside

    April 18, 2012 at 10:05 pm

    Its simple: “The chmod command (abbreviated from change mode) is a Unix command that lets a programmer tell the system how much (or little) access it should permit to a file. It changes the file system modes of files and directories

    Janene Ashworth

    April 18, 2012 at 10:22 pm

    Usually this is caused by the permissions being wrong, the font files not being uploaded all the way or the font files being corrupted.

    Shanita Lorenzo

    April 18, 2012 at 10:35 pm

    Personally I’m a big fan of MM Forms so I’ll use that plug-in as my example but the theory is the same no matter what you use.

    Asha Ferrer

    April 18, 2012 at 11:07 pm

    Folder on your server and be able to run commands, upload files etc.

    Thersa Sage

    April 19, 2012 at 12:13 am

    Personally I’m a big fan of MM Forms so I’ll use that plug-in as my example but the theory is the same no matter what you use.

    Dorotha Albertson

    April 19, 2012 at 1:30 am

    Personally I’m a big fan of MM Forms so I’ll use that plug-in as my example but the theory is the same no matter what you use.

    KasandraDa

    April 19, 2012 at 1:58 am

    I’ll use that plug-in as my example but the theory is the same no matter what you use.

    Daniele Wertz

    April 19, 2012 at 11:17 pm

    It changes the file system modes of files and directories.” Basically,

    DebbraStinnett

    April 19, 2012 at 11:58 pm

    you have a form on a your WordPress website and are trying to prevent spammers from fl

    Dusty

    April 26, 2012 at 2:38 am

    If you have a form on a your WordPress website and are trying to prevent spammers from flooding your site with deals

    Juliann Searcy

    April 27, 2012 at 12:50 am

    Moncler Jackets For Women with high quality at the same time, they are surely very happy.

    Tess Flanders

    April 27, 2012 at 10:30 pm

    time you never have to change this setting. Welcome to the .1% of the time when you do.

    Annabel New

    April 27, 2012 at 11:18 pm

    the font files not being uploaded all the way or the font files being corrupted. Not OK. Let’s fix it!

    Iraqi Dinar

    June 11, 2012 at 1:38 am

    Go to the folder you need to change (or check) permissions on.

    Boiler Replacement

    February 28, 2013 at 9:33 pm

    This will solve your Word Press Error and help you to fix that.

    Boiler Replacement

    jeff

    January 8, 2015 at 7:02 am

    jackpot. thanks

Leave a Reply

%d bloggers like this: