News:

CPG Release 1.6.28
added submissions from {406man}
cleaned up a few PHP (8.4) deprecations
fixed PHP deprecation in calendar
removed security vulnerability
(please upgrade when possible)

Main Menu

Album wont del - deleted pictures first.

Started by Doctor_WHO, October 17, 2003, 11:26:32 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Doctor_WHO

I deleted pictures from the server, and then went to delete the album. I get
QuoteDirectory 'modules/coppermine/albums/LANs/990907/' is not writable, pictures can't be deleted

How can I delete the album "placeholder" without uploading the exact pictures again?

Also, I am pretty new to Coppermine (was using Gallery in the past.)- But it seems to me that where ever I upload the pictures, and then do the batch file upload, thats where the pictures stay. Is this correct? (noob question right?)

Update: I re-created the orignal folders and added the same pictures - still can not delete the Album. Me thinks it's a SQL thing??? Any ideas?
Would you like a Jelly Baby?

sigi

the scxript cannot delete the directory because it can not write to it - so change the directorys rights to 777 ..-.-.-.-.-.
Siegfried Schlosser

Berlin, Germany

had a big Coppermine gallery with more than 250.000 pics  at
www.allygally.de, but due to juristical problems that is closed now ....
Now trying Coppermine 1.4.x at http://walexis.pytalhost.de/

Doctor_WHO

I have... even put the pictures back there also, and changed 'them' to 777. Still says the same thing. As if replacing the pictures in their origonal position was not good enough - like it got the date stamp from them too or something. Basically I can't seem to fool it to removing the album, and I don't know how to do it in sql - if that is even how I do it.

Update: Got It. Had to go to the editpictures link and delete each picture (even though none were there) and then I was able to delete the album.
Would you like a Jelly Baby?


kegobeer

The directories pose no threat, but I'm guessing you just want to clean up your directory listing.  CPG owns the directories in /albums/users; you won't be able to delete the directory it creates unless you have root access.  Using your FTP program won't cut it.  The only way to delete them is to use your website's control panel or ask your host to remove them.

If you are the admin I recommend creating a folder in /albums and ftp your pictures there. (I use uploadpics for my personal use)  Don't use the cpg single file option, that's for your users.  Never create directories in the /users directory, let cpg control what your users do.

Hope that sheds some light on your dilemma.
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

Doctor_WHO

So you created a folder called /uploadpics , and upload all the pictures you want via FTP to that folder. Then use the batch upload and place the files in the albums you want them in. But the pictures you uploaded to /uploadpics HAVE to stay there right... that is there permanent home and cpg will always look for them there... right?

My confusion lies from the way Gallery did it, I'd upload to pictures to an /upload folder, then make them part of the gallery, and delete them from the /upload folder when i was done. I guess it made copies of the files and thumbs and whatnot.
Would you like a Jelly Baby?

kegobeer

QuoteBut the pictures you uploaded to /uploadpics HAVE to stay there right... that is there permanent home and cpg will always look for them there... right?
You are correct.  CPG doesn't move files around, it keeps track of images via mysql.  All of the thumbs, normal, and intermediate pics are stored in the original directory.  Pretty it ain't, but efficient it is.
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

Doctor_WHO

Fine by me!!! Thanks a lot guys.

Time to get deep into this cpg now  :idea:
Would you like a Jelly Baby?