Keep getting 500 server error Keep getting 500 server error
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Keep getting 500 server error

Started by bigone5500, February 24, 2009, 03:03:34 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

bigone5500

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???

persianprince

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

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

bigone5500

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.

Joachim Müller

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.

bigone5500

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

Thanks!

bigone5500

Joachim, your suggestion was the solution. Thanks.