Quantcast
Channel: eForm – WordPress Form Builder – WPQuark Knowledge Base
Viewing all articles
Browse latest Browse all 139

Fixing fatal error for imageftbbox and imagecreatetruecolor

$
0
0

eForm requires PHP GD library installed with Freetype and LibPNG support. For most of the hosts these configurations are common, however in some cases they might be absent.

This will produce some error messages like this.

Fatal error: Uncaught Error: Call to undefined function imagecreatetruecolor()

or

PHP Fatal error: Call to undefined function GDText\imageftbbox()

etc. This will also completely break eForm email function and quick preview function.

To fix it, kindly ask your host to install the missing extensions. The PHP manual page has some insights on how to do it.

In most of debian based Linux OS, the following command solves it.

For PHP 7

sudo apt-get install php7.0-gd

For php 7.1

sudo apt-get install php7.1-gd

For PHP 5

sudo apt-get install php5-gd

Also don’t forget to restart your webserver.

If using apache

sudo service apache2 restart

If using nginx

sudo service nginx restart

The post Fixing fatal error for imageftbbox and imagecreatetruecolor appeared first on WPQuark Knowledge Base.


Viewing all articles
Browse latest Browse all 139

Trending Articles