coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: aZnSpOiLeR on January 30, 2004, 06:34:01 AM

Title: Critical error: HELP!
Post by: aZnSpOiLeR on January 30, 2004, 06:34:01 AM
Hey everyone, first off I'd like to say that I really like Coppermine. It looks to me like its the best PHP gallery program. Ok, so after deciding which gallery script i wanted to use, I went ahead and installed Coppermine.

After installation, everything went smoothly except for the fact that I can't upload any images at all. Whether I try to upload or batch upload, I get the same error.


The picture 'albums/userpics/10001/DSC00293.JPG' can't be inserted in the album

The image you have uploaded is corrupted or can't be handled by the GD library

File: /homepages/45/d92974834/htdocs/syndicube/gallery/db_input.php - Line: 289


Warning: imagecreatefromjpeg: 'albums/userpics/10001/DSC00293.JPG' is not a valid JPEG file in/homepages/45/d92974834/htdocs/syndicube/gallery/include/picmgmt.inc.php on line 154


My Server is running Linux, the latest PHP and mysql version, and running GD 1.1


Here's the DEBUG info:
USER:
Array
(
    [ID] => 178a88c106695e93c0f49712fd4a12b5
    [am] => 1
)


GET :
Array
(
)


POST :
Array
(
    [event] => picture
    [album] => 1
    [MAX_FILE_SIZE] => 1048576
    [title] => View from the Hotel
    [caption] =>
    [keywords] =>
    [user1] =>
    [user2] =>
    [user3] =>
    [user4] =>
)



Any help would be greatly appreciated.

Thanks,
Frank
Title: Critical error: HELP!
Post by: hyperion on January 30, 2004, 06:48:52 AM
Not a Coppermine problem.  This is a GD library problem.

Either your JPEG library is corrupt ot out of a date, or you are trying to upload a rarified type of JPEG it cannot handle. (CMKY JPEGs fall into that group.)

Another possible source could be a nonstandard image editing pack. Since it is GD 1.1 (the last 1.X version was something like 1.8), though, I would think the library is the source of the problem.  

That's quite a fossil you've got there, and it will cause you untold amounts of misery (memory leaks, etc.).  Since you are running the latest PHP, why not install GD2?  Alternatively, you can always go for ImageMagick.