Crash on Upload Photo

Questions related to installing Zuluru 1: Locked now, all new installations should use Zuluru 3
Locked
phancox
Posts: 6
Joined: Mon Aug 24, 2015 7:01 am

Crash on Upload Photo

Post 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
GregS
Site Admin
Posts: 240
Joined: Thu Jan 06, 2011 4:58 pm

Re: Crash on Upload Photo

Post 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.
phancox
Posts: 6
Joined: Mon Aug 24, 2015 7:01 am

Re: Crash on Upload Photo

Post 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.
GregS
Site Admin
Posts: 240
Joined: Thu Jan 06, 2011 4:58 pm

Re: Crash on Upload Photo

Post by GregS »

What output do you get from running "php -i | grep GD" at the command line?
phancox
Posts: 6
Joined: Mon Aug 24, 2015 7:01 am

Re: Crash on Upload Photo

Post 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
GregS
Site Admin
Posts: 240
Joined: Thu Jan 06, 2011 4:58 pm

Re: Crash on Upload Photo

Post 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.
Locked