PHP Classes

Error in some instance

Recommend this page to a friend!

      PHP Multi CAPTCHA  >  All threads  >  Error in some instance  >  (Un) Subscribe thread alerts  
Subject:Error in some instance
Summary:Error message when using gif, acsii and image
Messages:3
Author:Wilkie Kevin
Date:2015-08-28 16:43:14
 

  1. Error in some instance   Reply   Report abuse  
Picture of Wilkie Kevin Wilkie Kevin - 2015-08-28 16:43:14
When I try to use some of the type (basic.php and gif-captcha.php) I get this error:

Warning: imagettftext(): Invalid font filename in C:\xampp\htdocs\projects\JavaTest\multi-captcha-2015-08-03\src\types\image\image.php on line 253

Warning: imagettftext(): Invalid font filename in C:\xampp\htdocs\projects\JavaTest\multi-captcha-2015-08-03\src\types\image\image.php on line 265

How do I correct this?

  2. Re: Error in some instance   Reply   Report abuse  
Picture of sameer shelavale sameer shelavale - 2015-08-28 16:54:55 - In reply to message 1 from Wilkie Kevin
hi,
do you have comic.ttf in src/fonts/ directory?
if not,
please download latest code from
github.com/sameer-shelavale/multi-c ...
phpclasses was not able to import the font files(.ttf) and its directory which is required for it to work properly.
also make sure there is a directory /src/cache/ and its writable.

let me know if it still throws up errors.

  3. Re: Error in some instance   Reply   Report abuse  
Picture of Wilkie Kevin Wilkie Kevin - 2015-08-29 14:35:27 - In reply to message 2 from sameer shelavale
Oh nice. It works now.
Thanks for the creation. Hope to use part of it in a creation soon.
Thanks again