Control Web Panel

WebPanel => PHP => Topic started by: Raudpats on August 25, 2014, 09:07:43 PM

Title: Fatal error: Call to undefined function imagecreatefromjpeg
Post by: Raudpats on August 25, 2014, 09:07:43 PM
Hi!

i install opencart but if i go to frontpage then shows this error

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

how i can it solve?
Title: Re: Fatal error: Call to undefined function imagecreatefromjpeg
Post by: Administrator on August 26, 2014, 06:42:21 AM
what is you php version and which modules you have loaded?
Title: Re: Fatal error: Call to undefined function imagecreatefromjpeg
Post by: Raudpats on August 26, 2014, 01:51:10 PM
You are running PHP version: 5.4.27
Title: Re: Fatal error: Call to undefined function imagecreatefromjpeg
Post by: Administrator on August 26, 2014, 11:09:05 PM
and which modules you have loaded? you can check that with "PHP Short Info" from main menu
Title: Re: Fatal error: Call to undefined function imagecreatefromjpeg
Post by: Raudpats on August 27, 2014, 07:26:21 AM
[PHP Modules]
bcmath
bz2
calendar
Core
ctype
curl
date
dom
ereg
exif
fileinfo
filter
ftp
gd
gettext
hash
iconv
json
libxml
mbstring
mcrypt
mysql
mysqli
mysqlnd
openssl
pcre
PDO
pdo_mysql
pdo_sqlite
Phar
posix
Reflection
session
SimpleXML
soap
sockets
SPL
sqlite3
standard
tokenizer
xml
xmlreader
xmlrpc
xmlwriter
xsl
zip
zlib
Title: Re: Fatal error: Call to undefined function imagecreatefromjpeg
Post by: gtaranti on August 27, 2014, 03:41:35 PM
Check out solution in previous post.

It solves your issue also, when you configure gd correctly at php build.

http://forum.centos-webpanel.com/php/freetype-support-in-gd/
Title: Re: Fatal error: Call to undefined function imagecreatefromjpeg
Post by: Raudpats on August 28, 2014, 08:46:55 AM
after this gd not running :(
Title: Re: Fatal error: Call to undefined function imagecreatefromjpeg
Post by: Administrator on August 28, 2014, 08:18:21 PM
what changes have you made on compiler ?
Title: Re: Fatal error: Call to undefined function imagecreatefromjpeg
Post by: Raudpats on September 03, 2014, 08:53:03 AM
a not make any change
Title: Re: Fatal error: Call to undefined function imagecreatefromjpeg
Post by: Administrator on September 03, 2014, 03:29:57 PM
you can contact support
http://centos-webpanel.com/contact
Title: Re: Fatal error: Call to undefined function imagecreatefromjpeg
Post by: botonakis on February 07, 2017, 08:47:09 PM
If this doesn't work add this:

Code: [Select]
--with-jpeg-dir=/usr/local/lib
--enable-gd-native-ttf
--with-ttf
--with-freetype-dir=/usr/local/lib