Page 1 of 1

No Truetypefont available for the CaptchaClass???

Posted: Thu Aug 09, 2007 8:12 am
by jmansa
I have just installed the frontendusers module and want to insert the login form, but I get this error?
No Truetypefont available for the CaptchaClass.
Any idea why it does this???

Re: No Truetypefont available for the CaptchaClass???

Posted: Thu Aug 09, 2007 4:31 pm
by Dr.CSS
May have to change the Captcha and 5 folders in Captcha permissions, try 755...

Re: No Truetypefont available for the CaptchaClass???

Posted: Sun Oct 14, 2007 8:31 am
by curana
Maybe its a bug. I faced the same problem. The following worked:

Edit the file 'class.captchalib_hncaptcha.php' in '/modules/Captcha/lib/classes/captchalibs'. (I assume u use hncaptcha)

Find the line 84 where it says

Code: Select all

'TTF_folder'     => $this->getFontPath() . '/',
I changed this to the absolute path of the fonts directory, for example it looks like this now:

Code: Select all

'TTF_folder'     => '/usr/local/www/htdocs/modules/Captcha/fonts',
After saving it works for me.

Re: No Truetypefont available for the CaptchaClass???

Posted: Tue Dec 18, 2007 2:36 am
by allwayson
actually this is related to a path issue. However it is most likely due to moving something after captcha was installed. If you uninstall and reinstall captcha it works fine since it dynamically finds the new directory it belongs to.

Mark  8)

Re: No Truetypefont available for the CaptchaClass???

Posted: Fri Dec 28, 2007 5:30 am
by Elijah Lofgren
jmansa wrote: I have just installed the frontendusers module and want to insert the login form, but I get this error?
No Truetypefont available for the CaptchaClass.
Any idea why it does this???
If you are unable to get image Captchas working, you could try the new Math Captcha library I added to the Captcha module:
http://dev.cmsmadesimple.org/tracker/in ... 1&atid=819

It's based of code from here: http://www.httpseo.com/php/111-php-capt ... -text.html

Add it to the modules/Captcha/lib/classes/captchalibs folder and it should automatically show up as a "Captcha Library" option at: /admin/moduleinterface.php?module=Captcha

I had to switch to this since my web host doesn't have FreeType support enabled in PHP's GD functions.

Just wanted to post this here in it helps someone. ;)

Re: No Truetypefont available for the CaptchaClass???

Posted: Mon Oct 27, 2008 2:11 pm
by aln_cms
I ran into this problem as well, it turns out that becuase I had installed and configured my site on my development box, the site_prefs entry for the Captcha module were incorrect.  I edited this and all was good.

Alan

Re: No Truetypefont available for the CaptchaClass???

Posted: Wed Jul 28, 2010 3:09 am
by halison
corifeanu wrote: table: siteprefs
field: Captcha_mapi_pref_font_path
Write the new absolute path to Captcah fonts.
Save and all wil be just fine.
I'v fixed this issue just correcting the path on database.

I used this code to find the correct path

Code: Select all

print_r($_SERVER['DOCUMENT_ROOT']);
Thank you so much guys.
Halison.net