coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 upload => Topic started by: quinnk on October 13, 2006, 10:09:00 AM

Title: Problem uploading single files
Post by: quinnk on October 13, 2006, 10:09:00 AM
Hello, I am running into the following error when I try to upload files individually via HTTP (from disk or URL):

QuoteImpossible to move QuinnTshirt2.jpg to albums/userpics/10004/ !

File: /home/kappasig/public_html/gallery/db_input.php - Line: 355

I've traced the problem down to this (http://coppermine.sourceforge.net/faq.php#ErrorCantMovePic) note in the help files.  However, I'm not clear on what this means.  Should I be asking my host for the basedir location and then changing something in the Coppermine code to use that directory?

My gallery is at http://www.kappasigmalethbridge.com/gallery/ (http://www.kappasigmalethbridge.com/gallery/). 

I've set up a test account and enabled debugging if someone wants to take a look.  The username and password are both "test".
Title: Re: Problem uploading single files
Post by: Joachim Müller on October 13, 2006, 01:56:01 PM
No, the FAQ entry you refered to is slighty different - your error message doesn't complain about a missing temp folder. I rather guess that you haven't applied the needed permissions as suggested in the docs (http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#permissions) to make the albums folder and everything within it writtable for the script.
Title: Re: Problem uploading single files
Post by: quinnk on October 14, 2006, 01:24:12 AM
I can absolutely guarantee that permissions are set to 777 for all subfolders in the Album folder.  My server is Apache on Linux.  Is there anything else it could be?
Title: Re: Problem uploading single files
Post by: kegobeer on October 14, 2006, 01:48:04 AM
Ask your host to check permissions on your /tmp directory.  When uploading a file with a PHP script, a temporary file is created in the /tmp directory, and then moved to the final destination.  If PHP can't move the file from the /tmp directory, you'll get that type of error.
Title: Re: Problem uploading single files
Post by: quinnk on October 15, 2006, 10:00:55 AM
Ok, my host turned off safe mode for my domain, as he indicated that he thought that Coppermine required it.  Now I'm getting a different error:

QuoteThe selected album/file does not exist !

File: /home/kappasig/public_html/gallery/include/functions.inc.php - Line: 1315

Any advice on this now?  I looked around but no one seems to be experiencing the error in the same context.

(Not sure if I should have started a new thread for this or not...)
Title: Re: Problem uploading single files
Post by: quinnk on October 15, 2006, 10:02:47 AM
Err, sorry, despite the error, the image are uploading now... so I guess my problem is essentially solved.  Cheers!