Questions related to installing Zuluru 1: Locked now, all new installations should use Zuluru 3
phancox
Posts: 6 Joined: Mon Aug 24, 2015 7:01 am
Post
by phancox » Tue Aug 25, 2015 9:47 am
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
Post
by GregS » Tue Aug 25, 2015 1:00 pm
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
Post
by phancox » Tue Aug 25, 2015 7:34 pm
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
Post
by GregS » Wed Aug 26, 2015 1:37 pm
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
Post
by phancox » Wed Aug 26, 2015 9:35 pm
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
Post
by GregS » Wed Aug 26, 2015 9:47 pm
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.