GetDotted Domains

Viewing Thread:
"Does Freeola support Freetype and GD2 library?"

The "Freeola Customer Forum" forum, which includes Retro Game Reviews, has been archived and is now read-only. You cannot post here or create a new thread or review on this forum.

Mon 09/10/06 at 23:42
Regular
Posts: 6
If there is a FAQ page to answer these questions then I apologise as I could not find it?

Having recently had spam problems on forms, I found a php routine by Ralph on h**p://www.stadtaus.com/ which does a Turing test with a Captcha image as a means of improving protection from spambots.

Does Freeola support Freetype and GD2 library? These two functions being required for the script to run.

When I run the script I get the error message "Captcha image could not be generated" I have tried changing the chmod of all relevant directories to 777 and ensuring ttf's get uploaded in binary, but to no avail.
Tue 10/10/06 at 22:58
Regular
"Devil in disguise"
Posts: 3,151
You're welcome.

If any Freeola staff read this, maybe its worthwhile noting in PHP Essentials in the support section that DOCUMENT_ROOT isnt set to what people might expect.
Tue 10/10/06 at 22:13
Regular
Posts: 6
Thanks Garin, you're a genius!!!

Putting a direct font path worked a treat.

folkie
Tue 10/10/06 at 21:49
Regular
"Devil in disguise"
Posts: 3,151
My best guess is the font path.
Open up inc/formmail.inc.php and scroll down to the configuration bit. Make sure $configuration['captcha_image']=true; (rather than false). and the line below it
reads
$configuration['captcha_font_path'] = getenv('DOCUMENT_ROOT') . dirname($_SERVER['PHP_SELF']) . '/inc/font/';

try changing it to

$configuration['captcha_font_path']= '/inc/font/';

Its possible that getenv('DOCUMENT_ROOT') isnt reporting the correct path hence it cant find the font.

EDIT: Now that the problem has been resolved, I've removed the absolute path to Folkie's webspace.
Tue 10/10/06 at 20:48
Regular
Posts: 6
Thanks Garin,

I tried what you suggested. Seems to enable diagnostics that probably means a lot to some people viz:-

object(pear_error)(8) { ["error_message_prefix"]=> string(0) "" ["mode"]=> int(1) ["level"]=> int(1024) ["code"]=> NULL ["message"]=> string(46) "Error initializing Image_Text (font missing?!)" ["userinfo"]=> NULL ["backtrace"]=> array(5) { [0]=> array(6) { ["file"]=> string(58) ......

you'll get the full output if you click my link below. I suspect there is nothing much wrong with the script, the problem is in my implementation of same. I will study the documentation files a bit more, then if I still don't see the light I'll mail Ralf Stadtaus who wrote it.

Thanks again for looking anyway,

folkie.
Tue 10/10/06 at 20:11
Regular
"Devil in disguise"
Posts: 3,151
Hmm...their support forum isnt a great deal of help. :)

One thing you might try is open inc/captcha.inc.php and search for var_dump($retval); its been commented out (remove the //) and see what it produces.
Tue 10/10/06 at 18:45
Regular
Posts: 6
Garin wrote:
> Well, if I can provide a direct link to what you've used I can
> take a look if you'd like.

Thank's for that,

To test the script I have left error checking enabled.

folkie
Tue 10/10/06 at 17:50
Regular
"Devil in disguise"
Posts: 3,151
Well, if I can provide a direct link to what you've used I can take a look if you'd like.
Tue 10/10/06 at 17:41
Regular
Posts: 6
Garin wrote:
>
> One other possibility is that its referring to library in
> some other context, it might want the pear gd libraries for
> instance. Difficult to assert without seeing it.

Thanks for your help.

I did not wish to consult the script's author, before ensuring that the problem wasn't that the Freeola server did not support these functions.

folkie
Tue 10/10/06 at 14:45
Regular
"Devil in disguise"
Posts: 3,151
folkie wrote:
> However, I can see no reference to Library under the GD header,
> so I am still unsure if the "GD2 library" is
> supported?

The fact that GD is listed means that the library is present. Its version 2 (ie GD2) as well. So it appears to have some other problem, not alot you can do other than look at the code and try to see where its failing.

EDIT: One other possibility is that its referring to library in some other context, it might want the pear gd libraries for instance. Difficult to assert without seeing it.
Tue 10/10/06 at 10:50
Regular
Posts: 6
Thank you Garin for your quick response.

Quote:
"So if you look for GD you can see what version it is and whether it has FreeType support enabled."


I have done as you asked and it indicated FreeType support

GD Version bundled (2.0.23 compatible)
FreeType Support enabled


However, I can see no reference to Library under the GD header, so I am still unsure if the "GD2 library" is supported?

Regards, folkie

Freeola & GetDotted are rated 5 Stars

Check out some of our customer reviews below:

Thank you very much for your help!
Top service for free - excellent - thank you very much for your help.
Simple, yet effective...
This is perfect, so simple yet effective, couldnt believe that I could build a web site, have alrealdy recommended you to friends. Brilliant.
Con

View More Reviews

Need some help? Give us a call on 01376 55 60 60

Go to Support Centre

It appears you are using an old browser, as such, some parts of the Freeola and Getdotted site will not work as intended. Using the latest version of your browser, or another browser such as Google Chrome, Mozilla Firefox, or Opera will provide a better, safer browsing experience for you.