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
-
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
-
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)
-
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
-
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)
-
... and after the suggestions from HEIN, the 404 now comes at db_input.php
-
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...
-
We can't help you if you do not follow the upload troubleshooting guide. Hein already posted the link.
-
Well, that was the first thing I did.
-
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:
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.
-
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
-
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
-
So... any help?
-
Probably exceeded resource limits.
-
Pleace explain.
-
Either time or memory limits set in the server configuration have probably been exceeded due to the size of file you are uploading.
-
Those limits are well over what is required. We are talking about 110K filesize. Around 895*670 the error comes.
-
...and as I wrote: the files are correctly uploadet - just not put into the database, due to the error.
-
The memory limit does not affect the upload - it affects the resizing, 8MB is not going to be enough for most files, especially photographs.
-
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.
-
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.
-
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.
-
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.
-
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:
- A blank page for images over 890*XXX, 115Kb filesize (1,7Mb memorysize)
- Upload is O.K., but nothing is written to the MySql database
-
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.
-
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!!!
-
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.