Page 1 of 2 1 2 LastLast
Results 1 to 10 of 15

Thread: What's wrong in it? Please help!

  1. #1
    Join Date
    Dec 2002
    Posts
    1,883

    Default

    Hi:

    I was trying to upload the image of the RealEstate Agent. But I got the following error.


    Fatal error: Call to undefined function: imagecreatefromjpeg() in /home/eastwes/public_html/realty/include/thumbnail_gd.php on line 33


    But for sure, I know that PHP GD library is being installed in my shared Linux Server.

    Pl. help me.

    Thanks.
    Pranesh

  2. #2
    Join Date
    Jun 2004
    Posts
    1,067

  3. #3
    Join Date
    Apr 2003
    Posts
    3

    Default

    Im getting the same error.
    Fatal error: Call to undefined function: imagecreatefromjpeg() in
    /(myrootdirectory)/include/thumbnail_gd.php on line 33

    the img im trying to upload is abb.thumb.jpg
    Im using php 4.3.1 and Open-Realty 1.0.7
    GD Support enabled
    GD Version bundled (2.0 compatible)
    GIF Read Support enabled
    PNG Support enabled
    WBMP Support enabled

    Let me know if you have any questions

  4. #4
    Join Date
    Mar 2003
    Location
    Northern Ontario, Canada
    Posts
    34

    Default

    I don't know the exact fix, but I know there are differences in GD 2.x and previous versions that this script was written for. I'd look in that area.

  5. #5
    Join Date
    Jun 2004
    Posts
    1,067

    Default

    Hi,

    i jsut got the open-realty server updated to php 4.3.1 which means i now have GD 2.0+. I will look into this and fix it tonight if i confirm the bug.

  6. #6
    Join Date
    Mar 2003
    Location
    Northern Ontario, Canada
    Posts
    34

    Default

    This may not directly relate, but the following snippet is from an email that someone sent me who was using my distro of OR in an environment with GD 2.x As far as I know, this is the only problem this person encountered with GD 2. I post it for your reference...

    > I found a problem with gdlib 2.0 using the function "imagecreate()"
    > causing sepia or wash tones on images, instead of using the
    > "imagecreate()" they suggested using the "imagecreatetruecolor()"
    > function instead, so I changed the thumbnail_gd and resize_gd's files to
    > use the later function instead by simply renaming the imagecreate to
    > imagecreatetruecolor
    > Now it works!
    >
    > Thanks again for you help!

  7. #7
    Join Date
    Mar 2003
    Location
    Northern Ontario, Canada
    Posts
    34

    Default

    Actually, if you look at davaga's report from his server, there is no mention of jpeg support. If I do a phpinfo from my host I get...

    GD Support enabled
    GD Version 1.6.2 or higher
    JPG Support enabled
    PNG Support enabled
    WBMP Support enabled

    ...maybe this is the problem. I've also quoted from Jon's original ReadMe file.


    OpenRealty now contains a thumbnailing engine that works with the GD library -- this is usually included with most linux-based hosting plans, you never know. Windows users will probably have to change $config[make_thumbnail] to "no". If you get a "undefined function: imagecreatefromjpeg()" error, then you know that you have to turn this option off.
    [/quote]

  8. #8
    Join Date
    Apr 2003
    Posts
    3

    Default

    Whew thanks verdon 8)
    After making a few changes to php
    './configure' '--with-mysql' '--with-apxs=/usr/sbin/apxs' '--with-gd' '--with-zlib-dir' '--with-jpeg-dir' '--with-ttf' '--with-freetype-dir' '--enable-gd-native-ttf'

    I now have.
    GD Support enabled
    GD Version bundled (2.0 compatible)
    FreeType Support enabled
    FreeType Linkage with freetype
    GIF Read Support enabled
    JPG Support enabled
    PNG Support enabled
    WBMP Support enabled

    Now it will at least upload the picture, but I get the following error instead even though it appeared to work fine.

    Warning: Wrong parameter count for imagecreatefromjpeg() in /(my root directory)/include/thumbnail_gd.php on line 33

    Any Ideas.

  9. #9
    Join Date
    Jun 2004
    Posts
    1,067

    Default

    Verdon,

    I don't know the exact fix, but I know there are differences in GD 2.x and previous versions that this script was written for. I'd look in that area.
    Actually the thumbnail_gd.php file was rewritten to support both GD 1.X and 2.X.. You might watn to grab it for your version of OR, i dont know if you are building against my stable versions or Jon's at this point..

  10. #10
    Join Date
    Jun 2004
    Posts
    1,067

    Default

    Quote Originally Posted by davaga
    Warning: Wrong parameter count for imagecreatefromjpeg() in /(my root directory)/include/thumbnail_gd.php on line 33

    Any Ideas.
    This is wierd. I will try and duplicate it here.. i am only passing one parameter to imagecreatefromjpeg on that line, which is what it expects.. I think i have 95% of my server issues worked out here now, so i might be able to focus on OR again starting either tonight or tomorrow.. i will get to this ASAP

Similar Threads

  1. Ok..What I am doing wrong? Favorites View
    By Dunover in forum HELP (CLOSED)
    Replies: 16
    Last Post: 06-10-2004, 01:35 AM
  2. Autoresponder (something wrong!)
    By Anonymous in forum HELP (CLOSED)
    Replies: 1
    Last Post: 02-06-2004, 03:34 PM
  3. What am I doing wrong
    By Anonymous in forum HELP (CLOSED)
    Replies: 16
    Last Post: 06-23-2003, 06:22 PM
  4. can i only upload gifs? Am I doing something wrong?
    By Anonymous in forum HELP (CLOSED)
    Replies: 5
    Last Post: 03-10-2003, 05:14 PM
  5. What's wrong with demo search page??
    By Anonymous in forum HELP (CLOSED)
    Replies: 1
    Last Post: 12-28-2002, 08:25 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts