Quantcast
Channel: INDIA WEB HOSTING FAQs » phpinfo
Viewing all articles
Browse latest Browse all 2

Captcha image is not working – Fatal error?

$
0
0

Captcha image is not working – Fatal error?

You have the GD image library installed and otherwise working.
Still unable to get captcha with the captcha plugin.

You are not sure what’s the problem as it works on one of your other sites.  When you try to include the captcha on your website or contact form it generates an error message like…
Call to undefined function imagettftext() OR
Fatal error: Call to undefined function imagettftext() in /home/user/public_html/appfolder/plugins/captcha/captcha.php on line 99  OR
Fatal error: Call to undefined function imagefttext() in /home/user/public_html/lib/captcha/captcha.php on line 329 OR
‘–enable-gd-native-ttf’

Problem could be, because the standard PHP “imagefttext()” function does not work on your server.
It can caused by the fact that there is no –enable-gd-native-ttf key installed on your server as the Cart uses GD Library for displaying the verification image.

Please note that PHP must be configured with the following keys:
–with-gd –enable-gd-native-ttf  Contact your host to make the change!

Any idea why or how it can be fixed?

imagettftext() is part of the GD image functions library, which is not always part of PHP (the code CMS/Cart runs on).
You need to contact your host and ask them to install the PHP GD library. It’s really simple for them to do and is fairly common, so if they give you a hard time about it, I would seriously consider switching to better and friendly host – UnicHost :).

Related: Web Server, PHP Hosting, LAMP Server, cPanel Hosting


Viewing all articles
Browse latest Browse all 2

Latest Images

Trending Articles





Latest Images