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

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Daniel Hansen

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


    I am getting a "Fatal error: Call to undefined function:
    imagecreatefrom jpeg() 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
    ------------------------------------------------
  • Gary Petersen

    #2
    Re: Fatal error: Call to undefined function: imagecreatefrom jpeg() in...

    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 <6if2mvga5b18if vh0bgilkh93ppvt 9776o@4ax.com> with its hoof:

    [color=blue]
    > [...]
    > 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.
    >[/color]

    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

    Comment

    • Daniel Hansen

      #3
      Re: Fatal error: Call to undefined function: imagecreatefrom jpeg() in...

      On Fri, 12 Sep 2003 08:27:27 GMT, Gary Petersen
      <garyp1492@remo ve.meearthlink. invalid>, wrote:
      [color=blue][color=green]
      >>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.[/color][/color]

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

      Thanks, though!
      dh
      ------------------------------------------------
      Dan Hansen
      ------------------------------------------------

      Comment

      • Randell D.

        #4
        Re: Fatal error: Call to undefined function: imagecreatefrom jpeg() in...


        "Daniel Hansen" <drhansenjr@min dspring.com> wrote in message
        news:6if2mvga5b 18ifvh0bgilkh93 ppvt9776o@4ax.c om...[color=blue]
        >
        > I am getting a "Fatal error: Call to undefined function:
        > imagecreatefrom jpeg() 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
        > ------------------------------------------------[/color]

        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
        imagecreatefrom gif() worked for me, whereas imagecreatefrom jpeg() 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.


        Comment

        • Randell D.

          #5
          Re: Fatal error: Call to undefined function: imagecreatefrom jpeg() in...


          "Daniel Hansen" <drhansenjr@min dspring.com> wrote in message
          news:6if2mvga5b 18ifvh0bgilkh93 ppvt9776o@4ax.c om...[color=blue]
          >
          > I am getting a "Fatal error: Call to undefined function:
          > imagecreatefrom jpeg() 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.
          >[/color]

          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, imagecreatefrom jpeg() was undefined).


          Comment

          • Daniel Hansen

            #6
            Re: Fatal error: Call to undefined function: imagecreatefrom jpeg() in...


            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[color=blue]
            > configure.2003. 09.12.dh5.log[/color]
            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."
            <you.can.email. me.at.randelld@ yahoo.com>, wrote:
            [color=blue][color=green]
            >> ....
            >> ....
            >> ....[/color][/color]
            [color=blue][color=green]
            >>
            >>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, imagecreatefrom jpeg() was undefined).
            >>[/color][/color]

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

            Comment

            Working...