• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France CMS Made Simple Spain CMS Made Simple Hungary CMS Made Simple Russia CMS Made Simple Netherlands

All times are UTC




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: No Truetypefont available for the CaptchaClass???
PostPosted: Thu Aug 09, 2007 8:12 am 
Offline
Forum Members
Forum Members

Joined: Thu Oct 19, 2006 2:46 pm
Posts: 126
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???


Top
 Profile  
 
 Post subject: Re: No Truetypefont available for the CaptchaClass???
PostPosted: Thu Aug 09, 2007 4:31 pm 
Offline
Administrator
Administrator
User avatar

Joined: Thu Mar 09, 2006 5:32 am
Posts: 10223
Location: Arizona
May have to change the Captcha and 5 folders in Captcha permissions, try 755...

_________________
Extensions » Modules/Tags click the name of the module/tag or 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
Check ver. CMSMS, PHP, server OS, in System Information page
Default content, read it here, http://multiintech.com/defaultcontent/
People are Wonderful Business is Great Life is Terrific
Image


Top
 Profile  
 
 Post subject: Re: No Truetypefont available for the CaptchaClass???
PostPosted: Sun Oct 14, 2007 8:31 am 
Offline
Forum Members
Forum Members

Joined: Sun Jan 21, 2007 5:53 pm
Posts: 44
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.


Top
 Profile  
 
 Post subject: Re: No Truetypefont available for the CaptchaClass???
PostPosted: Tue Dec 18, 2007 2:36 am 
Offline
New Member
User avatar

Joined: Sat Nov 10, 2007 11:18 pm
Posts: 2
Location: Grand Haven, MI
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)


Top
 Profile  
 
 Post subject: Re: No Truetypefont available for the CaptchaClass???
PostPosted: Fri Dec 28, 2007 5:30 am 
Offline
Power Poster
Power Poster
User avatar

Joined: Mon Apr 24, 2006 1:01 am
Posts: 811
Location: Deatsville, AL
jmansa wrote:
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/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. :)


Top
 Profile  
 
 Post subject: Re: No Truetypefont available for the CaptchaClass???
PostPosted: Mon Oct 27, 2008 2:11 pm 
Offline
Forum Members
Forum Members
User avatar

Joined: Mon Jan 08, 2007 7:09 pm
Posts: 88
Location: Ireland
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


Top
 Profile  
 
 Post subject: Re: No Truetypefont available for the CaptchaClass???
PostPosted: Wed Jul 28, 2010 3:09 am 
Offline
New Member
User avatar

Joined: Tue Mar 02, 2010 5:06 am
Posts: 6
Location: Sydney Australia
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:
print_r($_SERVER['DOCUMENT_ROOT']);


Thank you so much guys.
Halison.net

_________________
PSD to Template
Php Expert
CMSMS, Joomla, Plone, Drupal


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Arvixe - A CMSMS Partner