Upload produces 404 error Upload produces 404 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

Upload produces 404 error

Started by akyhne, June 20, 2007, 08:21:44 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

akyhne

When I uploads files over a given size or dimension, upload is succesful to tempfolder. But when I click continue (where i am directed to upload.php to choose album), I get a 404 page in IE, and a question of downloading the file upload.php in firefox 2. The file though, is emty.

file_uploads ON
memory_limit 8M
post_max_size 8M
upload_max_filesize 6M

Hein Traag


akyhne

Now I get a 404 on db_input.php. When I hit F5 (reload), I get this message:

Script called without the required parameter(s).

File: /usr/home/web/web55382/galleri/db_input.php - Line: 58

akyhne

It seems that the error is there, when I exeed the fliesize in:

[Max width or height of an intermediate picture/video]

whitch is set to [800] (pixels)

akyhne

... and after the suggestions from HEIN, the 404 now comes at db_input.php

akyhne

Well, sometimes db_input.php just produces this:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=windows-1252"></HEAD>
<BODY></BODY></HTML>

Nothing else...

Stramm

We can't help you if you do not follow the upload troubleshooting guide. Hein already posted the link.

akyhne

Well, that was the first thing I did.

Hein Traag

Quote from: akyhne on June 20, 2007, 03:26:40 PM
Well, that was the first thing I did.

No you didn't. If you would have read that part of the documentation good enough you would have answered to this part as wel:
QuoteWhen asking for support on the coppermine forum, post a link to your site and a test user account (the test user mustn't be in the admin group!) with upload privileges, with the above mentioned settings in place - this way, supporters can see the error messages as well. Do not post debug_output unless requested.

akyhne

I can't (wont) give you permission to the current site, but I created a similar gallery here:
http://www.racingcar.dk/galleri/

Username: Hein
Password: Hein

Same server - same database - same trouble

akyhne

It seems that the files correctly are put into users folder eg. albums/userpics/10001/ , but nothing is written into the table cpg1410_pictures inMySql

akyhne


Nibbler

Probably exceeded resource limits.

akyhne


Nibbler

Either time or memory limits set in the server configuration have probably been exceeded due to the size of file you are uploading.

akyhne

Those limits are well over what is required. We are talking about 110K filesize. Around 895*670 the error comes.

akyhne

...and as I wrote: the files are correctly uploadet - just not put into the database, due to the error.

Nibbler

The memory limit does not affect the upload - it affects the resizing, 8MB is not going to be enough for most files, especially photographs.

akyhne

Well, there is nothing wrong with the upload. The failed images are available in the folder for the current user. It's the data in MySql that are missing!!! Try uploading an image that is too great. I wil then get it from the folder, resize it, and upload it again.

akyhne

Someone uploaded an image called 4679a36b0b593.jpeg. I have resized and uploadet it again. Worked fine. The original image was uploadet in 1000*750. There was a copy called 4679a36b0b593~0.jpeg, a copy called thumb_4679a36b0b593.jpeg and thumb_4679a36b0b593~0.jpeg, each in 100*75pix.