Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Album wont del - deleted pictures first.  (Read 5903 times)

0 Members and 1 Guest are viewing this topic.

Doctor_WHO

  • Coppermine newbie
  • Offline Offline
  • Posts: 12
    • http://dakrats.net
Album wont del - deleted pictures first.
« on: October 17, 2003, 11:26:32 pm »

I deleted pictures from the server, and then went to delete the album. I get
Quote
Directory '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?
Logged
Would you like a Jelly Baby?

sigi

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 68
    • http://www.allygally.de
Album wont del - deleted pictures first.
« Reply #1 on: October 18, 2003, 05:53:26 pm »

the scxript cannot delete the directory because it can not write to it - so change the directorys rights to 777 ..-.-.-.-.-.
Logged
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

  • Coppermine newbie
  • Offline Offline
  • Posts: 12
    • http://dakrats.net
Album wont del - deleted pictures first.
« Reply #2 on: October 19, 2003, 12:13:49 am »

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.
Logged
Would you like a Jelly Baby?

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Album wont del - deleted pictures first.
« Reply #4 on: October 19, 2003, 12:26:34 am »

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.
Logged
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

  • Coppermine newbie
  • Offline Offline
  • Posts: 12
    • http://dakrats.net
Album wont del - deleted pictures first.
« Reply #5 on: October 19, 2003, 02:50:00 am »

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.
Logged
Would you like a Jelly Baby?

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Album wont del - deleted pictures first.
« Reply #6 on: October 19, 2003, 04:08:50 pm »

Quote
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?

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.
Logged
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

  • Coppermine newbie
  • Offline Offline
  • Posts: 12
    • http://dakrats.net
Album wont del - deleted pictures first.
« Reply #7 on: October 19, 2003, 05:42:41 pm »

Fine by me!!! Thanks a lot guys.

Time to get deep into this cpg now  :idea:
Logged
Would you like a Jelly Baby?
Pages: [1]   Go Up
 

Page created in 0.05 seconds with 14 queries.