Help with an error

Discussion in 'Programming' started by dblock120, May 15, 2010.

  1. #1
    Hello, all i just installed a image hosting script a while back and when i came to upload images form test i got this error

    Warning: imagecreatefromjpeg(/images/8XD94119.jpg) [function.imagecreatefromjpeg]: failed to open stream: No such file or directory in /home/iximage/public_html/ihs/uploader.php  on line 94
    
    Warning: imagesx(): supplied argument is not a valid Image resource in /home/iximage/public_html/ihs/uploader.php on line 101
    
    Warning: imagesy(): supplied argument is not a valid Image resource in /home/iximage/public_html/ihs/uploader.php on line 102
    
    Warning: copy(/images/8XD94119.jpg) [function.copy]: failed to open stream: No such file or directory in /home/iximage/public_html/ihs/uploader.php on line 127
    Code (markup):
    People said it was because GD was not supported but my php info shows the following,

    GD Support enabled
    GD Version bundled (2.0.34 compatible)
    FreeType Support enabled
    FreeType Linkage with freetype
    FreeType Version 2.2.1
    GIF Read Support enabled
    GIF Create Support enabled
    JPG Support enabled
    PNG Support enabled
    WBMP Support enabled
    XPM Support enabled
    XBM Support enabled

    Anyone can help please?
     
    dblock120, May 15, 2010 IP
  2. iama_gamer

    iama_gamer Active Member

    Messages:
    404
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    60
    #2
    check if permissions have been set to create the folders required. It is probably because a folder wasnt created.
     
    iama_gamer, May 18, 2010 IP
  3. lmtiger47

    lmtiger47 Peon

    Messages:
    31
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Your script doesn't have a permission to write in /images/ directory, or your path in php script configuration file is invalid.
     
    lmtiger47, May 31, 2010 IP
  4. flexdex

    flexdex Peon

    Messages:
    104
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #4
    
    /images/8XD94119.jpg
    
    Code (markup):
    ^^^ seems that the path to the www root folder is not configured. I guess it should be "/home/iximage/public_html/ihs/images" and not "/images"
     
    flexdex, May 31, 2010 IP