Community Forums

imagecreatefromjpeg() error? Need Help?

Please post any issues you are having concerning installation or upgrade of OpenCart v1.x

imagecreatefromjpeg() error? Need Help?

Postby Bioblaze » Sat Mar 31, 2012 3:03 am

Fatal error: Call to undefined function imagecreatefromjpeg() in /usr/home/God/public_html/store/system/library/image.php on line 34

Ive been away from Opencart for the Last Few months, so Ive been unable to keep up to date on the system. I just decided today to start a free install, and when i was done installing this was the first problem I found.

It completely stops the from Main Page from loading, no idea why.

This also happens when I press the Edit button in the system Menu for Editing the system Settings.

Anyone got a Fix for this? I would very much be happy to hear it. of Course.
Last edited by Bioblaze on Sat Mar 31, 2012 6:11 pm, edited 1 time in total.
When men become mice then are mice just as good as men?
Bioblaze
 
Posts: 19
Joined: Sat Jan 01, 2011 7:10 pm
Location: Fresno, California

Re: imagecreatefromjpeg() error? Got Help?

Postby rph » Sat Mar 31, 2012 4:40 am

Make sure you have GD installed.
-Ryan
VQMod Manager: FREE extension to manage VQMods in Admin!
Admin Enhancement Suite: Powerful Admin features and enhancements
Dependent Options: Option values displayed based on customer input
Catalog Mode: Disable "Add to Cart" and display your store in view-only
OpenCart Community Edition | Unofficial OpenCart Wiki | Commercial Support and Development
User avatar
rph
 
Posts: 3994
Joined: Thu Jan 07, 2010 4:05 pm
Location: Lincoln, Nebraska

Re: imagecreatefromjpeg() error? Got Help?

Postby Bioblaze » Sat Mar 31, 2012 6:08 pm

It isnt just about having GD install the --all-gd Flag for configuring php doesnt include libjpeg as well as libpng You have to add the Actual Flags --with-jpeg-dir=/usr --with-jpeg-dir=/usr

Which doesnt include itself in the All GD flag when you normally run the configuration of Php

Alot of people who dont know this on OpenCart will end up having this problem. It isnt about GD installed, its wither or not you have the correct flags set in the configuration that will make ti work.
When men become mice then are mice just as good as men?
Bioblaze
 
Posts: 19
Joined: Sat Jan 01, 2011 7:10 pm
Location: Fresno, California

imagecreatefromjpeg() error? Need Help?

Postby Bioblaze » Sat Mar 31, 2012 6:10 pm

GD Support enabled
GD Version bundled (2.0.34 compatible)
GIF Read Support enabled
GIF Create Support enabled
JPEG Support enabled
libJPEG Version 8
PNG Support enabled
libPNG Version 1.4.5
WBMP Support enabled
XBM Support enabled

Once you run it with the correct flags, this is what you`ll get in your phpinfo.

As you notice, libJPEG and libPNG. Very important to have.

If anyone needs help on this topic ive spent 6 hours reading up and doing recompiles correctly. I can give someone a helping hand.
When men become mice then are mice just as good as men?
Bioblaze
 
Posts: 19
Joined: Sat Jan 01, 2011 7:10 pm
Location: Fresno, California

Re: imagecreatefromjpeg() error? Got Help?

Postby rph » Sun Apr 01, 2012 2:34 am

Bioblaze wrote:It isnt just about having GD install the --all-gd Flag for configuring php doesnt include libjpeg as well as libpng You have to add the Actual Flags --with-jpeg-dir=/usr --with-jpeg-dir=/usr

Which doesnt include itself in the All GD flag when you normally run the configuration of Php

Alot of people who dont know this on OpenCart will end up having this problem. It isnt about GD installed, its wither or not you have the correct flags set in the configuration that will make ti work.

Come on, a few hours ago you couldn't even figure out GD was the issue. ::)

Most people who use OpenCart won't be setting up their own hosting environments and those that do really should be expected to follow installation instructions.
-Ryan
VQMod Manager: FREE extension to manage VQMods in Admin!
Admin Enhancement Suite: Powerful Admin features and enhancements
Dependent Options: Option values displayed based on customer input
Catalog Mode: Disable "Add to Cart" and display your store in view-only
OpenCart Community Edition | Unofficial OpenCart Wiki | Commercial Support and Development
User avatar
rph
 
Posts: 3994
Joined: Thu Jan 07, 2010 4:05 pm
Location: Lincoln, Nebraska

Re: imagecreatefromjpeg() error? Need Help?

Postby anitawos » Sun Jun 24, 2012 5:41 am

I just upgraded PHP from 5.2 to 5.3 Then tried to upgrade opencart from 1.5.2.1 to 1.5.3.1

Now I have a useless site, and
Fatal error: Call to undefined function imagecreatefromjpeg() in /home/aorowing/public_html/system/library/image.php on line 34
anitawos
 
Posts: 18
Joined: Fri Jan 28, 2011 6:33 am

Re: imagecreatefromjpeg() error? Need Help?

Postby rph » Sun Jun 24, 2012 4:13 pm

It's the same issue. GD isn't installed or isn't installed correctly. Run phpinfo and check the GD settings.
-Ryan
VQMod Manager: FREE extension to manage VQMods in Admin!
Admin Enhancement Suite: Powerful Admin features and enhancements
Dependent Options: Option values displayed based on customer input
Catalog Mode: Disable "Add to Cart" and display your store in view-only
OpenCart Community Edition | Unofficial OpenCart Wiki | Commercial Support and Development
User avatar
rph
 
Posts: 3994
Joined: Thu Jan 07, 2010 4:05 pm
Location: Lincoln, Nebraska


Return to Installation, Upgrade, & Config Support

Who is online

Users browsing this forum: MarketInSG and 31 guests

Hosted by Arvixe Web Hosting