PDA

View Full Version : DigitalFilePro2 Upload Error


Badger
06-25-2009, 12:47 PM
Using CS4 DW on an Intel Mac. When trying to upload jpgs getting this error message:

Fatal error: Call to undefined function: imagecreatefromjpeg() in /www/visp/hollywo1/blidworthequestrian.com/WA_DigitalFilePro/HelperPHP.php on line 823

Line 823 is:

case IMAGETYPE_JPEG:
$src = imagecreatefromjpeg($imageFilePath);
break;

I've tried changing the settings to allow no or different file types, get the same message. Any ideas?

Ray Borduin
06-26-2009, 05:42 AM
You need to enable the GD library GD2 in your php.ini file.

That function is included with the php GD image manipulation library:
http://www.php.net/manual/en/book.image.php

Badger
06-26-2009, 06:43 AM
Is there an idiot guide to enabling GD2 on a Mac? For example, where do I find the php.ini file? Also, will anyone using the applications I build be able to manipulate pictures thanks to DigitalFilePro2 or do they have to have GD2 installed?

Ray Borduin
06-26-2009, 06:48 AM
GD2 is installed on the server. There is lots and lots of documentation about how to configure a PHP server... but none available from webassist.

Do a google search on something like: "update php.ini on mac"

The update should be as simple as removing the line of code that comments out the gd library. This is part of your web server so end users won't need to install anything.

Badger
06-26-2009, 07:01 AM
Understood. Thanks Ray :-)