forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 upload => Topic started by: calikw on December 31, 2006, 01:50:43 am

Title: Internal server error when uploading files
Post by: calikw on December 31, 2006, 01:50:43 am
Greetings-

Request help with the following situation: I receive the below error message after clicking "upload file" with larger images.

INTERNAL SERVER ERROR
An internal server error has occured!
Please try again later.

No other debug/error info is provided on the page.  I can upload smaller files just fine.  GD appears to be resizing images fine, as the smaller ones still have thumbnails created.

Test site: http://ron.russak.org/photos
Test user/pass: test/Passw0rd (that's a zero)

Sample image giving error: http://ron.russak.org/photos/albums/userpics/10002/test.jpg

As might be evident by the sample image link above, the image actually uploads fine...just doesn't appear to add to the database or resize for thumbnails, etc...

Any help would be appreciated!
-rusty
Title: Re: Internal server error when uploading files
Post by: Nibbler on December 31, 2006, 02:01:50 am
The file is too large for the server to handle. Either resize the image yourself prior to upload or get more memory allocated for the task if you have control over the server.
Title: Re: Internal server error when uploading files
Post by: calikw on December 31, 2006, 02:36:50 am
What setting on the server would I need to modify/check?

I don't quite understand why the problem files are around 150kb, but I'm able to upload 120kb files fine...is it a limitation within a GD setting somewhere?  A limit between 120-150kb sounds like a funny setting to me.  All the "defaults" described in the coppermine documentation seem like they're well above what I'm attempting to upload:

Title: Re: Internal server error when uploading files
Post by: Sami on December 31, 2006, 07:11:37 am
You need 12MB memory limit to upload that file
take a look at sticky:
http://forum.coppermine-gallery.net/index.php?topic=24088.msg110690#msg110690
Title: Re: Internal server error when uploading files
Post by: calikw on January 02, 2007, 09:13:34 pm
Greetings-

I've checked my server settings and the below are what is configured.  It looks like the memory limit is over the 12MB that I've been told I need in this post.  So...what would be the next item to check?

max_input_time - "-1" (default)
upload_max_filesize - 20MB
post_max_size - 8MB
memory_limit - 20MB

-m
Title: Re: Internal server error when uploading files
Post by: Nibbler on January 02, 2007, 09:48:36 pm
It requires 19M on my system, so try increasing it a little more.