Php Fatal Error Call To Undefined Function Imagecreatefromjpeg Centos
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring call to undefined function imagecreatefromjpeg() ubuntu developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question
Call To Undefined Function Imagecreatefromjpeg() Opencart
x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; imagecreatefromjpeg not working it only takes a minute: Sign up PHP Fatal error: Call to undefined function imagecreatefrompng() up vote 2 down vote favorite That is the error message that I get on my php error log. So far, I know that imagecreatefromjpeg not working on server the GD library is the problem, it's not installed ( I think is not installed but it was working before in my server and now is not so I don't know what happened but I want to assume that is not installed). I checked if the module was installed by running php -m and gd doesn't show up, also phpinfo() doesn't show anything related to gd. I installed php on a CentOS server 5.9 with remi repo. Now, the problem
Install Gd Php
is that I can't just run yum install php-gd because it won't have any effect since it was installed manually. Any ideas on how can I install just that module to my php installation? php module gd share|improve this question edited Jun 16 '15 at 0:12 asked Jun 16 '15 at 0:01 Victor 691426 What version of PHP? –Phil Jun 16 '15 at 0:21 PHP 5.5.17 (cli) (built: Sep 20 2014 16:59:16) Copyright (c) 1997-2014 The PHP Group –Victor Jun 16 '15 at 0:22 1 The doco says GD is bundled with PHP since 4.3.6. Sounds like you'd have to go out of your way to not install it. Is there a gd.so file in your PHP extensions dir? Maybe you just need extension=gd.so in your php.ini file –Phil Jun 16 '15 at 0:24 add a comment| 1 Answer 1 active oldest votes up vote 3 down vote accepted I just have to install the php-gd library with the remi repo enabled So if anybody has the same problem here it is: yum install php-gd --enablerepo=remi,remi-php55 share|improve this answer answered Jun 17 '15 at 17:48 Victor 691426 For openSuSE (which uses the php version number in their package names), this is zypper install php5-gd –Jeroen Wiert Pluimers Apr 15 at 15:54 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site gd-jpeg: jpeg library reports unrecoverable error About Us Learn more about Stack Overflow the company Business Learn more about gd jpeg support hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss
Phpbrew Gd
Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Issue with enabling http://stackoverflow.com/questions/30856865/php-fatal-error-call-to-undefined-function-imagecreatefrompng GD in PHP up vote 0 down vote favorite Okay, I know a similar question has been asked before, but my problem seems to have gotten a little confusing. I have a cloud service set up on centOS with PHP. MY service provider had initially disabled the GD package that comes with PHP. I managed to edit yum.conf and installed php-gd. It said somewhere on http://stackoverflow.com/questions/20952682/issue-with-enabling-gd-in-php Stackoverflow that if I run yum install php-gd it should work. It did. It said installed. I did the usual restarting of Apache to ensure the changes were implemented, but nothing happened. I've looked everywhere but according to wherever I've seen, it says the above command should do the trick. I even went ahead restarted the whole cloud server to see if it made a difference. It didn't. When I run phpinfo(), GD isn't listed. I ran a sample GD program and it says Fatal error: Call to undefined function imagecreatefromjpeg() in .... I have absolutely no idea. I've tried contacting the support team but they've been unresponsive. Also, I'm a beginner in Unix/Linux commands. So, I'm pretty sure I may have missed something. Thanks in advance! php centos gd share|improve this question asked Jan 6 '14 at 14:56 Anoop Santhanam 437 add a comment| 1 Answer 1 active oldest votes up vote 1 down vote accepted You have to enable extension in php.ini; Add following line to configuration. extension=gd.so Btw. Meybe php-gd packet created a file that has this line commented. In Debian it can be found at /etc/php5/apache2/conf.d Also look at
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site http://stackoverflow.com/questions/23988500/gd-installed-but-call-to-undefined-function-imagecreatefromjpeg About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Gd installed, but “Call to call to undefined function imagecreatefromjpeg()” up vote 4 down vote favorite 1 Looks like my hosting has gd support, but i still get an error ( PHP Version 5.3.28 ) Fatal error: Call to undefined function imagecreatefromjpeg() Here is my phpinfo: gd GD Support enabled GD Version bundled (2.1.0 compatible) GIF Read Support enabled GIF Create Support enabled PNG Support enabled libPNG Version 1.2.44 WBMP Support enabled call to undefined XBM Support enabled Directive Local Value Master Value gd.jpeg_ignore_warning 0 0 php gd share|improve this question asked Jun 2 '14 at 6:32 Yegor Razumovsky 318222 If it's enabled, may be you should contact your host provider. Or you can post a snippet where you are using this function. –Vikas Arora Jun 2 '14 at 6:35 gif enabled, png enabled, wmbp and xmb enabled. nothing about jpg, try imagecreatefromgif. Also, talking to the hosting provider will most likely give you "correct" answers –hank Jun 2 '14 at 6:37 doesn't gd.jpeg_ignore_warning line means that i have jpeg support ? –Yegor Razumovsky Jun 2 '14 at 8:27 No, it does not mean that you have jpeg support. –Travis Pessetto Jul 15 '14 at 16:34 add a comment| 1 Answer 1 active oldest votes up vote 8 down vote accepted It appears that while GD is indeed supported that it was not compiled with libjpeg. The gd.jpeg_ignore_warning does not mean that you have jpeg support. If this is your own server make sure to run configure with --with-jpeg-dir. You may have to search for it. I used the command find