Any idea why it does this???No Truetypefont available for the CaptchaClass.
No Truetypefont available for the CaptchaClass???
No Truetypefont available for the CaptchaClass???
I have just installed the frontendusers module and want to insert the login form, but I get this error?
Re: No Truetypefont available for the CaptchaClass???
May have to change the Captcha and 5 folders in Captcha permissions, try 755...
Re: No Truetypefont available for the CaptchaClass???
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
I changed this to the absolute path of the fonts directory, for example it looks like this now:
After saving it works for me.
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() . '/',
Code: Select all
'TTF_folder' => '/usr/local/www/htdocs/modules/Captcha/fonts',
Re: No Truetypefont available for the CaptchaClass???
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
Mark

- Elijah Lofgren
- Power Poster
- Posts: 811
- Joined: Mon Apr 24, 2006 1:01 am
- Location: Deatsville, AL
Re: No Truetypefont available for the CaptchaClass???
If you are unable to get image Captchas working, you could try the new Math Captcha library I added to the Captcha module:jmansa wrote: I have just installed the frontendusers module and want to insert the login form, but I get this error?Any idea why it does this???No Truetypefont available for the CaptchaClass.
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.

Note: I don't have time to take on any more projects. I'm quite busy. I may be too busy to reply to emails or messages. Thanks for your understanding. 

Re: No Truetypefont available for the CaptchaClass???
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
Alan
--
Alan Ryan
Lead Developer
CodeCrunchers Internet Software Development - Ireland
http://www.codecrunchers.ie
Alan Ryan
Lead Developer
CodeCrunchers Internet Software Development - Ireland
http://www.codecrunchers.ie
Re: No Truetypefont available for the CaptchaClass???
I'v fixed this issue just correcting the path on database.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 used this code to find the correct path
Code: Select all
print_r($_SERVER['DOCUMENT_ROOT']);
Halison.net