forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 upload => Topic started by: akyhne on June 20, 2007, 08:21:44 am

Title: Upload produces 404 error
Post by: akyhne on June 20, 2007, 08:21:44 am
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
Title: Re: Upload produces 404 error
Post by: Hein Traag on June 20, 2007, 08:25:51 am
Please follow the steps as written here : http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#upload_trouble (http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#upload_trouble)
Title: Re: Upload produces 404 error
Post by: akyhne on June 20, 2007, 08:45:33 am
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
Title: Re: Upload produces 404 error
Post by: akyhne on June 20, 2007, 08:55:25 am
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)
Title: Re: Upload produces 404 error
Post by: akyhne on June 20, 2007, 08:58:19 am
... and after the suggestions from HEIN, the 404 now comes at db_input.php
Title: Re: Upload produces 404 error
Post by: akyhne on June 20, 2007, 09:12:18 am
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...
Title: Re: Upload produces 404 error
Post by: Stramm on June 20, 2007, 11:13:53 am
We can't help you if you do not follow the upload troubleshooting guide. Hein already posted the link.
Title: Re: Upload produces 404 error
Post by: akyhne on June 20, 2007, 03:26:40 pm
Well, that was the first thing I did.
Title: Re: Upload produces 404 error
Post by: Hein Traag on June 20, 2007, 03:48:57 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:
Quote
When 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.
Title: Re: Upload produces 404 error
Post by: akyhne on June 20, 2007, 05:07:40 pm
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
Title: Re: Upload produces 404 error
Post by: akyhne on June 20, 2007, 06:36:34 pm
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
Title: Re: Upload produces 404 error
Post by: akyhne on June 21, 2007, 08:16:01 pm
So... any help?
Title: Re: Upload produces 404 error
Post by: Nibbler on June 21, 2007, 08:26:30 pm
Probably exceeded resource limits.
Title: Re: Upload produces 404 error
Post by: akyhne on June 21, 2007, 08:33:49 pm
Pleace explain.
Title: Re: Upload produces 404 error
Post by: Nibbler on June 21, 2007, 08:39:22 pm
Either time or memory limits set in the server configuration have probably been exceeded due to the size of file you are uploading.
Title: Re: Upload produces 404 error
Post by: akyhne on June 21, 2007, 08:47:35 pm
Those limits are well over what is required. We are talking about 110K filesize. Around 895*670 the error comes.
Title: Re: Upload produces 404 error
Post by: akyhne on June 21, 2007, 10:01:46 pm
...and as I wrote: the files are correctly uploadet - just not put into the database, due to the error.
Title: Re: Upload produces 404 error
Post by: Nibbler on June 21, 2007, 11:46:11 pm
The memory limit does not affect the upload - it affects the resizing, 8MB is not going to be enough for most files, especially photographs.
Title: Re: Upload produces 404 error
Post by: akyhne on June 22, 2007, 05:38:52 am
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.
Title: Re: Upload produces 404 error
Post by: akyhne on June 23, 2007, 02:38:25 pm
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.
Title: Re: Upload produces 404 error
Post by: akyhne on June 23, 2007, 02:54:46 pm
Look at http://www.racingcar.dk/galleri/albums/userpics/10002/ after you upload an image. I deleted the index.hml file and granted permission to watch the files in the folder.
Title: Re: Upload produces 404 error
Post by: Joachim Müller on June 24, 2007, 11:27:21 am
Everything works as expected for me, see http://www.racingcar.dk/galleri/displayimage.php?pos=-18
If it doesn't work for larger files, increase the limitations imposed in php.ini as suggested above. Not related to coppermine nor to issues with db records not being taken into account.
Title: Re: Upload produces 404 error
Post by: akyhne on June 25, 2007, 01:09:58 am
The image you uploadet is far smaller than the size of the images I have trouble with. Please tell me why the images I upload aparently first are uploadet to /albums/edit, and then afterwards are moved to the current userfolder - in this case /albums/userpics/10002, but never are written into the database. That - along with the blank screen - is what I am dealing with. It's even possible for me to upload an 2592*1944px image 1,72Mb in filesize and 15Mb in memorysize, without trouble. The data for the image though, is not written to the database.

Now I have once in another situation, made my own script for uploading and resizing images on the same server. In that situation, I had no trouble with an 1024 by 768 Image.

If i had the possability to increase memorysize on the current server, I would have done it long time ago. But that is into my serviceprovidors hands - and my wallet. They offer an increased Memory_limit from 8Mb to 16Mb, but I am not willing to pay for this as long as Coppermine is not working O.K. And in my world, it is not working, if it can't tell me that the memorylimit is too small, or why it can't move/resize the files. I consider it a bug when it presents a blank html-formated page to me.

I have two troubles:
Title: Re: Upload produces 404 error
Post by: Joachim Müller on June 25, 2007, 06:48:45 am
Getting a blank screen means that the server runs into a timeout while resizing the pic (to intermediate image size and thumbnail). Subsequently, the script halts and no database record is being written. There nothing within Coppermine that you can do to circumvent this. You have two options: either allow smaller files uploads and resize the pics on your client before uploading them or increase the server-sided restrictions (editing php.ini if you're allowed to do so). To find out what server-sided settings are being taken into account, read the sticky thread on this sub-board.
Title: Re: Upload produces 404 error
Post by: akyhne on June 25, 2007, 11:46:20 pm
Aparently, I'm not explaining myself good enough. The files are uploadet, moved to userfolder, and saved correctly. I'm getting a blank page, and nothing is written to the database.

And we are talking about a 115 kilobytes file. How can this be a problem!!!
Title: Re: Upload produces 404 error
Post by: Joachim Müller on June 26, 2007, 09:02:59 am
And we are talking about a 115 kilobytes file. How can this be a problem!!!
If the web server is set up like that! Once again: this is a matter of webserver setup. You can re-post here again and again, asking for your question to be answered. Yet the answer remains the same: we can't help you with this. Ask your webhost for support.