forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 miscellaneous => Topic started by: bachokiko on November 30, 2010, 09:43:56 am

Title: Captcha not working on fresh install
Post by: bachokiko on November 30, 2010, 09:43:56 am
Hi guys,

First to say that you have developed a great product. I was looking for a gallery application and was thinking about 4images but once I saw CPG it did not take much to decide that this is The Gallery.

Now the problem I faced:
First I made a test installation on Ubuntu 10.04 and all was working fine. Then I made a fresh install on my hosting account and everything looks fine except captcha is not showinf any text. The image behind the text is visible but not the letters. I already checked and there is GD2 with FreeType support. You can have a look at: http://parkiram.com/captcha.php

Any ideas what is causing this?

Thanks in advance!
Title: Re: Captcha not working on fresh install
Post by: Αndré on November 30, 2010, 03:41:01 pm
That's odd. Check if the fonts (images/fonts/) haven't been corrupted during the upload.
Title: Re: Captcha not working on fresh install
Post by: bachokiko on December 01, 2010, 04:37:35 pm
I have found the problem and it's the fonts path defined in captcha.php.
Once I changed the paths like that: $aFonts = array('/home/username/cpg/images/fonts/acidic.ttf', '/home/username/cpg/images/fonts/hurryup.ttf'); rather than just images/fonts/font.ttf captcha started working fine.

The OS is 6.4-RELEASE-p5 and I guess this is an environment setting which is causing the problem. On Ubuntu 10.04 everything works without any change.
Title: Re: Captcha not working on fresh install
Post by: bachokiko on December 01, 2010, 04:39:35 pm
FreeBSD 6.4-RELEASE-p5 :)