I got the following error when I installed the captcha module. I copied the module into the www/modules directory. Then I went into the website configuration and activated the module. I did this in Mozilla Firefox, so then I opened Internet Explorer and went to the site and clicked the "Create New Account" link. This error was posted to the browser window.

Fatal error: Call to undefined function imagecreatetruecolor() in /path/to/site/www/modules/captcha.module on line 72 (I changed the path here for security reasons.)

What is this imagecreatefunction(), and how do I install/configure it. The README file did not include any install instructions at all. Is there something I missed, or am I special. ;)

my email - kenATkenwendlandDOTcom

Thank you for your time. I look forward to hearing from you.

--
Thanks,
Ken Wendland
www.kenwendland.com

Comments

media girl’s picture

There are people here more knowledgeable than I, but for a quick response, a couple of guesses:

The captcha image path is not properly defined in its settings

and/or the the directory does not have the right permissions.

danyell’s picture

The missing imagecreatetruecolor() function is part of GD, a captcha module prerequisite. Your PHP support for GD is either absent or disabled.

Make sure your PHP has GD support. Try running this script:

<?php
 phpinfo();
?>

and see if the info listing shows that GD support is present + enabled. If it's not there:

If it's your own PHP you should rebuild + reinstall it with GD support.

If it's your Web hosting provider's PHP, you should ask that this feature be enabled.

arnabdotorg’s picture