coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Upload => Topic started by: Cherrii on January 13, 2005, 12:28:11 PM

Title: Problems with Batch-Adding and with Uploads in general
Post by: Cherrii on January 13, 2005, 12:28:11 PM
I installed Coppermine through Fantastico, and it works great.  I can create all the categories and albums I want, and I can delete them as well.  I got the theme changed and added a couple new accounts.  The problem is that I can't upload or add any files to the gallery.

My Installation Location:  http://www.spifftacular.us/photos/
My PHPInfo:  http://www.spifftacular.us/phpinfo.php - I did this outside Coppermine so others could see it, as I haven't a clue what to look for, and I'm sure this would come in handy.

Okay, so when I tried to add a file to my first album, it would upload fine and prompt me to press "continue".  I would fill out the details and try to finish that file, but it gives me the following error when I try that:

QuoteCritical error
Failed to create directory /albums//userpics/10001 !


Warning: mkdir(/albums//userpics/10001): No such file or directory in /home/cherrii/public_html/photos/upload.php on line 2192

Then I thought I'd try the batch-add option, since I'd gone in to confirm the permissions were 777 on all album directories.  I created a new directory (/albums/flashfiles/), corrected the permissions on that directory, then uploaded my files into it.  But when I got into the Batch-Add function in my gallery, it didn't have any directories listed the way the documentation showed. 

My question is how do I add files to my gallery?  I can't simply upload them without getting an error, and I can't batch-add them either.  I read that it does support .swf files in addition to regular image/video files, so I'm really confused. 

I hope I've been detailed enough to receive assistance.  Thanks.

Cherrii
cherrii@gmail.com
Title: Re: Problems with Batch-Adding and with Uploads in general
Post by: Casper on January 13, 2005, 01:17:52 PM
You have a double slash in the url;

Quote/albums//userpics/10001)

Go into config, and check the ' The album directory' is set correctly.

If that does not work, try getting the latest version of upload.php from the cvs, here (http://cvs.sourceforge.net/viewcvs.py/*checkout*/coppermine/stable/upload.php?rev=1.13).
Replace your existing one with that.
Title: Re: Problems with Batch-Adding and with Uploads in general
Post by: Cherrii on January 13, 2005, 02:59:26 PM
That seems to have fixed it.  It's funny though ... I hadn't changed those values when I set everything up.  It had set up with /albums/ and /userpics/, so when I removed the front slashes from both of them, it started working.  Thanks for your help.  :D