473,229 Members | 1,760 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,229 software developers and data experts.

Fatal error: Call to undefined function: imagecreatefromjpeg() in...


I am getting a "Fatal error: Call to undefined function:
imagecreatefromjpeg() in..." error in one of my scripts, and after doing
a bit of searching on the 'net I found various messages relating to a
failure to have the GD library installed. However, my phpinfo() reports
(in the Apache GD section):

GD Support enabled
GD Version bundled (2.0 compatible)
GIF Read Support enabled
PNG Support enabled
WBMP Support enabled
I tried running a configure/make/make install with the following
configure command line...

../configure --with-mysql --with-apxs2
--with-zlib-dir=/etc/rpms/php-4.3.1/ext/zlib --with-png
--with-png-dir=/usr/lib --with-jpeg --with-jpeg-dir=/usr/lib --with-gd

....with no change in status.

What puzzles me is that phpinfo() also reports...
Configure Command './configure' '--with-mysql' '--with-apxs2'
.... not reflecting the options I specified.

I suspect I am doing something VERY wrong (i.e. stupid) -- but am not
sure where to look next.

HELP!!!

-dh

------------------------------------------------
Dan Hansen
------------------------------------------------
Jul 16 '05 #1
5 16475
A horsie named Daniel Hansen demonstrated surprising intelligence and its
ability to use morse code on Thu, 11 Sep 2003 22:54:13 -0500 when it
tapped <6i********************************@4ax.com> with its hoof:

[...]
I tried running a configure/make/make install with the following
configure command line... [...]

What puzzles me is that phpinfo() also reports...
Configure Command './configure' '--with-mysql' '--with-apxs2'
... not reflecting the options I specified.


Perhaps your httpd.conf is still loading the old version
of the library. When you did "make install," the module
might have been installed in a different place than
the original library was.

If that's so, you would have to change httpd.conf to
reflect the location of your new php library; then
stop and start apache.

HTH

Jul 16 '05 #2
On Fri, 12 Sep 2003 08:27:27 GMT, Gary Petersen
<ga*******@remove.meearthlink.invalid>, wrote:
Perhaps your httpd.conf is still loading the old version
of the library. When you did "make install," the module
might have been installed in a different place than
the original library was.

If that's so, you would have to change httpd.conf to
reflect the location of your new php library; then
stop and start apache.


'fraid not -- there are no references to gd or anything seemingly
relevant in my httpd.conf.

Thanks, though!
dh
------------------------------------------------
Dan Hansen
------------------------------------------------
Jul 16 '05 #3

"Daniel Hansen" <dr********@mindspring.com> wrote in message
news:6i********************************@4ax.com...

I am getting a "Fatal error: Call to undefined function:
imagecreatefromjpeg() in..." error in one of my scripts, and after doing
a bit of searching on the 'net I found various messages relating to a
failure to have the GD library installed. However, my phpinfo() reports
(in the Apache GD section):

GD Support enabled
GD Version bundled (2.0 compatible)
GIF Read Support enabled
PNG Support enabled
WBMP Support enabled
I tried running a configure/make/make install with the following
configure command line...

./configure --with-mysql --with-apxs2
--with-zlib-dir=/etc/rpms/php-4.3.1/ext/zlib --with-png
--with-png-dir=/usr/lib --with-jpeg --with-jpeg-dir=/usr/lib --with-gd

...with no change in status.

What puzzles me is that phpinfo() also reports...
Configure Command './configure' '--with-mysql' '--with-apxs2'
... not reflecting the options I specified.

I suspect I am doing something VERY wrong (i.e. stupid) -- but am not
sure where to look next.

HELP!!!

-dh

------------------------------------------------
Dan Hansen
------------------------------------------------


I'm using PHP 4.3.3 with Apache 1.3.28 and have the same problem - My news
posts were a bit behind but I notice you raised the same question before
me - I thought I'd throw in my two pence worth and say that I found
imagecreatefromgif() worked for me, whereas imagecreatefromjpeg() failed
with the same fatal error as yours. I'm wondering if there is a dependancy
on an external jpeg library which you/I might not have installed.
Jul 16 '05 #4

"Daniel Hansen" <dr********@mindspring.com> wrote in message
news:6i********************************@4ax.com...

I am getting a "Fatal error: Call to undefined function:
imagecreatefromjpeg() in..." error in one of my scripts, and after doing
a bit of searching on the 'net I found various messages relating to a
failure to have the GD library installed. However, my phpinfo() reports
(in the Apache GD section):

GD Support enabled
GD Version bundled (2.0 compatible)
GIF Read Support enabled
PNG Support enabled
WBMP Support enabled
I tried running a configure/make/make install with the following
configure command line...

./configure --with-mysql --with-apxs2
--with-zlib-dir=/etc/rpms/php-4.3.1/ext/zlib --with-png
--with-png-dir=/usr/lib --with-jpeg --with-jpeg-dir=/usr/lib --with-gd

...with no change in status.

What puzzles me is that phpinfo() also reports...
Configure Command './configure' '--with-mysql' '--with-apxs2'
... not reflecting the options I specified.

I suspect I am doing something VERY wrong (i.e. stupid) -- but am not
sure where to look next.


I have a post with a similar subject - I've included my compile options that
might help since I *had* the same problem (though phpinfo() did not report
the same as yours, imagecreatefromjpeg() was undefined).
Jul 16 '05 #5

This is what finally worked for me. Not sure whether it was the "make
clean" or adding exif support -- but it worked!

make clean
../configure --with-mysql --with-apxs2 --with-xpm-dir --with-png
--with-png-dir --with-jpeg-dir --enable-exif --with-zlib-dir --with-gd
configure.2003.09.12.dh5.log

make
make install
libtool --finish /etc/rpms/php-4.3.1/libs
apachectl -k stop
service httpd start


On Fri, 12 Sep 2003 22:25:05 GMT, "Randell D."
<yo**************************@yahoo.com>, wrote:
....
....
....
I have a post with a similar subject - I've included my compile options that
might help since I *had* the same problem (though phpinfo() did not report
the same as yours, imagecreatefromjpeg() was undefined).


------------------------------------------------
Dan Hansen
------------------------------------------------
Jul 16 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Randell D. | last post by:
Folks, I feel like pulling my hair out - I tried unsuccessfully over the past few days to install ImagMagick but because of version conflicts and missing libraries I had to give up. I originally...
4
by: gc | last post by:
I'm a PHP and MySQL newbie. I have a feeling a lot of you may have seen this before. I'm teaching myself PHP/MySQL and trying to setup a guestbook. I'm running latest versions of Apache, PHP and...
8
by: Tim Tyler | last post by:
I'm getting fatal errors when executing code - and my error handler is failing to trap them - so I get no stack backtrace :-( The error I am getting is: "Fatal error: Call to a member function...
1
by: drewmania001 | last post by:
i've read various info on the web including the following http://php.mirrors.ilisys.com.au/manual/en/ref.mysqli.php mySQL Version 4.1.16 PHP Version 5.1.2 with Zend Engine v2.1.0 OS Windows...
2
by: salvadorvp | last post by:
Hi, I have the following code that gives me this odd error message at a line of code inside the PEAR libraries: "Fatal error: Call to undefined function: MDB2_Driver_mssql::getMessage(). in...
9
by: java | last post by:
Hey there, I just removed an elderly PHP4-Installation from my Windows-Box and installed PHP 5.2.1. I used the PHP4-Module as local batchfile- interpreter by E:\ersDHCP>php ./extractLog.php ...
3
by: Ming | last post by:
I am new to php5 programming :) I redirect users to another server to login. After they login successfully, they will be redirected to test.php. The server provides xml_rpc interface so I can...
4
by: nickyspace | last post by:
HI all I have a little issue with this php code. Below is the code CODE: PHP 1.<?
1
by: RYKLOU | last post by:
I am kinda new to php, but i do know what i am doing kinda, but i came across this error when i am trying to upload a file to my website. Fatal error: Allowed memory size of 8388608 bytes...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.