• Howdy! Welcome to our community of more than 130.000 members devoted to web hosting. This is a great place to get special offers from web hosts and post your own requests or ads. To start posting sign up here. Cheers! /Peo, FreeWebSpace.net
managed wordpress hosting

Call to undefined function: imagecreatefrompng()

bighole

New Member
i receive this error:
PHP:
PHP Fatal error:  Call to undefined function:  imagecreatefrompng() in /home/mac/public_html/umi/mind.php on line 29

i'm not very familiar with php, but i think the configured is ok.... :

PHP Version 4.4.4

GD Support enabled
GD Version 2.0 or higher
FreeType Support enabled
FreeType Linkage with freetype
T1Lib Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled

System is Linux/CentOS 4.x , Apache/1.3.37 (Unix)

i'm sure the problem is on my machine....but maybe you've some hint for me....

thanks,
Mac
 
Could you mention from which script you are getting that?

Also, most of the time, its because your not referring to a class.

eg:
$classname->function();
 
You can use phpinfo() to see if php is compiled with gd support. Or from command line:
Code:
php -i|grep -i gd

If this error happens (mostly in the pixel selection) your GD library is not up-to-date or not installed fully. To create and read PNG images, the GD library supports normally the function imagecreatefrompng(). If not, your GD library is not complete.

Please ask your provider regarding this issue and ask him to add the PNG support to the GD library of PHP. He will do this. Afterwards, the error will not shown again.
 
Back
Top