Menu

captcha image not appearing

Help
amaral9696
2009-04-01
2013-06-03
  • amaral9696

    amaral9696 - 2009-04-01

    Hello,

    I have created a form which is coming up fine, but the captcha image is not.

    When I go to http://www.katieamaral.net/form91851/captchasecurityimages.php
    this is the error message that I get:
    Warning: imagettfbbox() [function.imagettfbbox]: Could not find/open font in /nfs/c02/h07/mnt/38735/domains/katieamaral.net/html/form91851/captchasecurityimages.php on line 60
    Error in imagettfbbox function

    I checked my php info file and it looks like GD and freetype are enabled,
    http://localhost/Hannah/phpinfo.php

    I also checked the filenames in the code and all that looks correct.

    Can't seem to figure this out.

    The form is at:  http://www.katieamaral.net/form91851/form.html

    Thanks for any help with this.  I have been struggling with getting a form going that will upload pics for a while now.

     
    • TNTEverett

      TNTEverett - 2009-04-01

      My first suggestion would be to verify this file exists (line 60 from captcha file).

      var $font = 'monofont.ttf';

      This file monofont.ttf must be in the same folder as the CaptchaSecurityImages.php file. 

      My second suggestion would be to speak with your web host and see if they can help explain the failure.  The scripts work when the proper resources are available. 

       
    • amaral9696

      amaral9696 - 2009-04-01

      Thanks for the quick reply!

      I checked and the file is in the same folder and all is spelled correctly.  I put in a request with my hosting, hopefully they can tell me what is wrong.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.