No Truetypefont available for the CaptchaClass???

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
jmansa
Forum Members
Forum Members
Posts: 126
Joined: Thu Oct 19, 2006 2:46 pm

No Truetypefont available for the CaptchaClass???

Post 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???
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: No Truetypefont available for the CaptchaClass???

Post by Dr.CSS »

May have to change the Captcha and 5 folders in Captcha permissions, try 755...
curana
Forum Members
Forum Members
Posts: 44
Joined: Sun Jan 21, 2007 5:53 pm

Re: No Truetypefont available for the CaptchaClass???

Post 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.
allwayson

Re: No Truetypefont available for the CaptchaClass???

Post 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)
User avatar
Elijah Lofgren
Power Poster
Power Poster
Posts: 811
Joined: Mon Apr 24, 2006 1:01 am
Location: Deatsville, AL

Re: No Truetypefont available for the CaptchaClass???

Post 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. ;)
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. :)
User avatar
aln_cms
Forum Members
Forum Members
Posts: 88
Joined: Mon Jan 08, 2007 7:09 pm
Location: Ireland

Re: No Truetypefont available for the CaptchaClass???

Post 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
--
Alan Ryan
Lead Developer
CodeCrunchers Internet Software Development - Ireland
http://www.codecrunchers.ie
halison

Re: No Truetypefont available for the CaptchaClass???

Post 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
Post Reply

Return to “Modules/Add-Ons”