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: Keep getting 500 server error  (Read 2942 times)

0 Members and 1 Guest are viewing this topic.

bigone5500

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Keep getting 500 server error
« on: February 24, 2009, 03:03:34 am »

I am getting a 500 server error when trying to either upload a single file or batch add. I have read your docs and all and have done the search thing but I can't find an answer to my question.

I have edited my php.ini file which reads:
max_input_time = 120
upload_max_filesize = 20M
post_max_size = 20M
memory_limit = 20M
file_uploads = ON

I have tried many different config panel settings. I have the directory set to CHMOD 777. When I do a batch add, it finds the files. I click on continue, then when I select an album and continue, I get to the page where it is supposed to say OK or DP PB NA. I get a red X in the place of that. It is as if the board script is not right in that it is not finding the right image or something to go in its place. When I click on the image to get more information, I get the 500 server error.

This also happens when I try to upload files via the browse... function. I select my files and click continue, then it says the files were added successfully. I click continue and get a 500 server error.

The photos I am working with are taken with a Nikon D60 10.2 MP camera. If coppermine is not able to handle this resolution please let me know and I'll resize al my photos. But it's supposed to do that for me right???
Logged

persianprince

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
    • Free Coppermine Gallery Hosting
Re: Keep getting 500 server error
« Reply #1 on: February 25, 2009, 09:11:07 am »

How big are the files you are uploading (resolution wise?)

Try setting the memory limit higher..perhaps 64M.
Logged

bigone5500

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Re: Keep getting 500 server error
« Reply #2 on: February 26, 2009, 12:43:47 am »

The files are 10.2 MP from a Nikon D60. They are 3872x3592. I did a little digging and found this in my web host's information:

The php.ini file contains the following default values:
upload_max_filesize:20 M
max_execution_time:300
memory_limit:40 M
post_max_size:8 M
SMTP:localhost

The PHP installation includes the following modules:
Module  Version
Expat 1.95.6
Sablotron 1.0
PCRE 4.5
OpenSSL 0.9.6
Libcurl 7.10.3
MySQL Client API 4
IMAP c-Client 4.1
GD 2.0 or higher (FreeType, TTF library, GIF Read/Create, JPG, PNG, WBMP)
GDBM 1.8.0
Zlib 1.2.1

Hope this information helps.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Keep getting 500 server error
« Reply #3 on: February 26, 2009, 07:19:20 am »

Resize your pics on your client before uploading or get your webhost to increase the limits in php.ini (probably won't do).
Calculation is quite easy: 3872 x 3592 x 3 / 1048576 = 39.79 MB (without taking into account the overhead caused by the script in itself.
It only makes sense in very rare cases to store such huge pics on a webserver. Usually, it's a bright idea to resize them before uploading to a resolution that makes them fit on the screens of your visitors.
Logged

bigone5500

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Re: Keep getting 500 server error
« Reply #4 on: February 27, 2009, 12:09:09 am »

I suppose you're right Joachim. I really do like the galery so I'll resize the pics and see what happens then.

Thanks!
Logged

bigone5500

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Re: Keep getting 500 server error
« Reply #5 on: February 27, 2009, 01:20:38 am »

Joachim, your suggestion was the solution. Thanks.
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 16 queries.