Page 1 of 1

Crash on Upload Photo

Posted: Tue Aug 25, 2015 9:47 am
by phancox
I'm getting the following error when attempting to upload photos.

Code: Select all

Fatal error: Call to undefined function imagecreatetruecolor() in /var/www/cakephp/zuluru/controllers/components/image_crop.php on line 47
Am I supposed to install any imaging software?

THANKS
Peter

Re: Crash on Upload Photo

Posted: Tue Aug 25, 2015 1:00 pm
by GregS
What version of PHP are you running on? That function is in the GD library, which I thought Zuluru checked for before allowing photo uploads to be enabled, but the manual for that function indicates that support might vary even if GD is installed.

Re: Crash on Upload Photo

Posted: Tue Aug 25, 2015 7:34 pm
by phancox
Running PHP 5.4.44 on Linux in Amazon EC2 instance.

Not real strong on PHP sorry. Mostly just patching other peoples code so not that familiar with the PHP eco system.

Re: Crash on Upload Photo

Posted: Wed Aug 26, 2015 1:37 pm
by GregS
What output do you get from running "php -i | grep GD" at the command line?

Re: Crash on Upload Photo

Posted: Wed Aug 26, 2015 9:35 pm
by phancox
Didn't get anything running that command. Searched the repository and found that Amazon Linux distribution packages GD separately.

"yum install php54-gd" fixed the problem.

THANKS

Re: Crash on Upload Photo

Posted: Wed Aug 26, 2015 9:47 pm
by GregS
Excellent! I'll have to look into why the photo upload feature was enabled without GD support being present, but that's a low priority thing.