SMFHacks.com

SMF Gallery Pro => Support => Topic started by: drhamad on January 18, 2009, 12:28:17 pm

Title: Undefined function in Gallery.php
Post by: drhamad on January 18, 2009, 12:28:17 pm
I'm not sure when this started happening, but when I try to add a picture, I get this:


Fatal error: Call to undefined function imagecolorallocate() in /home/ffc/public_html/Sources/Gallery.php on line 4245
Title: Re: Undefined function in Gallery.php
Post by: SMFHacks on January 18, 2009, 02:54:32 pm
That function is part of GD
http://us2.php.net/imagecolorallocate

I would check that GD is installed correctly on the server.
Title: Re: Undefined function in Gallery.php
Post by: drhamad on January 18, 2009, 03:13:00 pm
That function is part of GD
http://us2.php.net/imagecolorallocate

I would check that GD is installed correctly on the server.

Ahhh, I didn't even think of that.  We're on a new server the last couple weeks, so that could be it.  I'll try looking into it.  Thanks.
Title: Re: Undefined function in Gallery.php
Post by: drhamad on January 18, 2009, 03:26:12 pm
Hmm, just tried to install, but: Package gd - 2.0.33-9.4.el5_1.1.x86_64 is already installed.

Still looking into why we'd be having this problem then.
Title: Re: Undefined function in Gallery.php
Post by: SMFHacks on January 18, 2009, 03:44:17 pm
Restart the webserver? And check the php.ini or settings file to see that the module is enabled.