Drupal 6 - Captcha module (image captcha) displays the background but not the text!!!

Posted on 2009-12-24
Last Modified: 2012-05-08

I have this problem that is driving me crazy...  I have a fresh installation of Drupal 6 with the latest version of the Captcha module installed.  The problem is that if we try to use image captcha the image gets displayed but only the background without text at all (except when we use the built in font).

Inittially I thought that GD Library for JPG or PNG support was not enabled or probably the Freetype support but according to my PHP info all that is enabled and working.

GD Support       enabled
GD Version       bundled (2.0.34 compatible)
FreeType Support       enabled
FreeType Linkage       with TTF library
FreeType Version       1.4
GIF Read Support       enabled
GIF Create Support       enabled
JPG Support       enabled
PNG Support       enabled
WBMP Support       enabled
XBM Support       enabled

Do any of you experts had similar problems or have an Idea of where should I try to keep debugging this to try to get it fixed?

See the images below for a visual explanation...  the first image is using a font but obviously is not being rendered,  in the second image... when we use the built-in font the text is rendered just fine.

We're using the fonts that come with the module...  and the installation and implementation is straight out of the box.  We have the cache disabled too...

Any Ideas?
Question by:M-Geek
    LVL 20

    Expert Comment

    u need to upload the fonts to the server.
    LVL 9

    Accepted Solution

    Agreed. Additionally (personal experience), I'd recommend using reCaptcha ( in conjunction with Captcha, as it's a much better experience for the end-user.
    LVL 1

    Author Comment

    Gawal: The fonts were in the server...  we were actually trying to use the default fonts that come with the module and they were inside the module fonts folder.  At the end it was a problem with the way the former consultant compiled PHP.

    scifikillr:  Even though the problem wasn't really related to captcha...  I agree with you and in fact I ended up convincing the client to use reCaptcha instead.  

    I don't mean disregarding your answer Gawal at all,  I'm just going to award the points to scifikillr just based on my perception that his answer was a bit more helpful, but nonetheless, thanks to both of you...

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    A Change in PHP Behavior with Session Write Short Circuit ( (Winter 2014)** With the release of PHP 5.6 the session handler changed in a way that many think should be considered a bug.  See the note …
    What is Node.js? Node.js is a server side scripting language much like PHP or ASP but is used to implement the complete package of HTTP webserver and application framework. The difference is that Node.js’s execution engine is asynchronous and event…
    The viewer will learn how to count occurrences of each item in an array.
    The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now