Welcome, Guest. Please login or register.
Did you miss your activation email?
13 Mar 2010, 11:13

Login with username, password and session length
Home Chat Help Search Calendar Login Register
Pages: [1]
Print
Author Topic: No Truetypefont available for the CaptchaClass???  (Read 3321 times)
0 Members and 1 Guest are viewing this topic.
jmansa
Forum Members
**

Karma: 0
Offline Offline

Posts: 118


« on: 09 Aug 2007, 04:12 »

I have just installed the frontendusers module and want to insert the login form, but I get this error?
Quote
No Truetypefont available for the CaptchaClass.
Any idea why it does this???
Logged
Dr.CSS
Administrator
Power Poster
*****

Karma: 135
Offline Offline

Posts: 7708

Location: Arizona


formerly known as mark


WWW
« Reply #1 on: 09 Aug 2007, 12:31 »

May have to change the Captcha and 5 folders in Captcha permissions, try 755...
Logged

Go to Extensions Modules/Tags click the name of the module/tag or the word Help to the right to get the parameters it takes...
Right click and view source is a great way to see what you have to work with...
Not sure what ver. CMSMS, PHP, server OS, etc. look at the System Information page...
OK if you removed the default content read it here... http://multiintech.com/defaultcontent/
People are Wonderful... Business is Great... Life is Terrific
curana
Forum Members
**

Karma: 0
Offline Offline

Posts: 44


« Reply #2 on: 14 Oct 2007, 04:31 »

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:
'TTF_folder'     => $this->getFontPath() . '/',

I changed this to the absolute path of the fonts directory, for example it looks like this now:
Code:
'TTF_folder'     => '/usr/local/www/htdocs/modules/Captcha/fonts',

After saving it works for me.
Logged
allwayson
Peanut Gallery


Karma: 0
Offline Offline

Posts: 2

Location: Grand Haven, MI



WWW
« Reply #3 on: 17 Dec 2007, 21:36 »

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  Cool
Logged
Elijah Lofgren
I follow Jesus Christ, enjoy reading, writing, helping people, and making websites.
Power Poster
***

Karma: 81
Offline Offline

Posts: 833

Location: Deatsville, AL



WWW
« Reply #4 on: 28 Dec 2007, 00:30 »

I have just installed the frontendusers module and want to insert the login form, but I get this error?
Quote
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/index.php?func=detail&aid=1988&group_id=191&atid=819

It's based of code from here: http://www.httpseo.com/php/111-php-captcha-script-without-gd-using-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. Wink
Logged

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. Smiley
My CMSMS site: http://www.elijahlofgren.com/
corifeanu
Peanut Gallery


Karma: 0
Offline Offline

Posts: 1

Location: Sydney



WWW
« Reply #5 on: 18 May 2008, 08:34 »

It works very simple:
1. An image is generated using:
-image background
-text (true tipe)

2. Place where is generate is: /tmp/cache/
It means this folder should have 777 permission rights

3) True tip fonts should be in a specific path
Usual in /modules/Captcha/fonts

If you install from "module manager" Captcha module it will work perfect.
If you upload the module with ftp and install from "module" section, consider of folder permissions.
 
If you move your website you may have problems.
The simple way to solve is access database and change as following:

table: siteprefs
field: Captcha_mapi_pref_font_path
Write the new absolute path to Captcah fonts.
Save and all wil be just fine.

« Last Edit: 24 Feb 2009, 18:16 by corifeanu » Logged
aln_cms
Forum Members
**

Karma: 1
Offline Offline

Posts: 89

Location: Ireland



WWW
« Reply #6 on: 27 Oct 2008, 10:11 »

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
Logged

--
Alan Ryan
Lead Developer
CodeCrunchers Internet Software Development - Ireland
http://www.codecrunchers.ie
Pages: [1]
Print
Jump to: