Fatal error: Call to undefined function imagecreatefromjpeg()
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Fatal error: Call to undefined function imagecreatefromjpeg()
Hi guys,
I am having a problem with my slackware version 12 server. I tried installing a new joomla theme from the rockettheme and its giving me the following error while loading the site.
--------------
Fatal error: Call to undefined function imagecreatefromjpeg() in /home/www/verticaltest/modules/mod_rokstories/thumbnail.inc.php on line 167
--------------
Thought it was a problem with gd library modules, but in info.php, its showing that gd is installed in the server. Pasting the result form info.php below..
GD Support enabled
GD Version bundled (2.0.34 compatible)
GIF Read Support enabled
GIF Create Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled
----------------
You might have the wrong version of GD installed from what the Joomla theme expects to be present.
I once had exactly the same problem when I deployed my PHP site on my live server (hosted by Hetzner) vs. my dev server (for which I compiled GD, PHP, Apache and MySQL myself.)
There was a version discrepancy between the GD I had on my dev server, and the GD available on the Hetzner server.
There was no way to get around the problem except to not use the functions that my server did not support while developing on the dev server (which had a newer GD version and supported more functions.)
For some reason, your GD extension to PHP was built without JPEG support. The info.php messages show GIF, PNG, WBMP and XPM but not JPEG. Did you build PHP yourself, or are you using the one that came with Slackware? If you built it yourself, you need to rebuild with JPEG. If you are using the Slackware version, I'm not sure why this would be so... The latest patch for Slackware 12 was php-5.2.17 (which is no longer supported by the PHP group) - is that what you have?
Also normally PHP does not use the system's libgd, as it has its own built in to the GD extension.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.