Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Internal server error when uploading files  (Read 3243 times)

0 Members and 1 Guest are viewing this topic.

calikw

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Internal server error when uploading files
« 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
Logged

Nibbler

  • Guest
Re: Internal server error when uploading files
« Reply #1 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.
Logged

calikw

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: Internal server error when uploading files
« Reply #2 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:

  • max_input_time - 60 seconds is the default time limit for uploading files.
    This time limit includes the time it takes for the files to upload, so if you exceed this limit, the file will not even parse, and the browser will not get a response. You can workaround this by trying to upload smaller or fewer files, or you can try uploading over broadband. The best solution, of course, is to increase the time limit to something more in line with your needs.
  • upload_max_filesize - 2MB is the default limit for individual files.
  • post_max_size - 8MB is the default limit for post requests.
  • memory_limit - 8MB is the default size.
  • PHP's LimitRequestBody - 512KB default limit. (mainly an issue on Redhat/Apache systems.  Found in /etc/http/conf.d)
    In general, upload_max_filesize < post_max_size < memory_limit in order for uploads to function properly. Coppermine may warn you if a file exceeds upload_max_filesize, but it cannot warn you if the total size of all the files exceeds the post limit or the memory limit.
  • file_uploads - This determines whether or not PHP will allow file uploads. It must be set to "On".
  • upload_tmp_dir - This specifies the temporary directory where PHP stores uploaded files.
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Internal server error when uploading files
« Reply #3 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
Logged
‍I don't answer to PM with support question
Please post your issue to related board

calikw

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: Internal server error when uploading files
« Reply #4 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
Logged

Nibbler

  • Guest
Re: Internal server error when uploading files
« Reply #5 on: January 02, 2007, 09:48:36 pm »

It requires 19M on my system, so try increasing it a little more.
Logged
Pages: [1]   Go Up
 

Page created in 0.022 seconds with 20 queries.