Hi.
I have latest drupal 5.2 and latest acidfree and image module. Everything is working well, except when I want to delete album containing photos. Album is deleted and everything looks OK. But when I look admin/content I see, that album disappeared, but all images are still there - as nodes and physicaly on disk. I have to delete them manualy. It is annoying to delete all images from album first and then album.
lakyljuk
Comments
Comment #1
lakyljuk commentedAnd it's not about access rights - it is doing the same, even if I am deleting album as administrator, or common user - everytime just album is deleted and image nodes are left, unassigned to any category, not promoted to front page, but still searchable and consuming space on disk. Any ideas?
Thanks
Comment #2
2create commentedI created a drupal site. Got it working fine and wanted to turn it over to another to manage. I deleted all but the core modules. In "files" I found 4 images in "images/temp" and one in the user avatar directory that I wanted to delete. These were images I used as part of testing the development and want to remove them. I tried everything - to change permissions and delete them, even to the point of trying to delete the entire drupal installation directory, but even that was "denied."
I tried with shell access, ftp, cpanel - nothing worked.
What thing has such power over a web sites files that even a human owner cannot modify in any way or delete the files on the server?
Drupal - 5.2
CCK - deleted
imagefield version - ?
permissions - 0644 on individual files. I was able to change directory permissions on some to 0777
download method - public
imagefield config - ?
expected results - to be able to delete image files in "files" directory
unexpected results - permission denied, files remain on server
to reproduce - possible problems: avatar from deleted (test) user, delete related modules
thanks for any help
Comment #3
ricmadeira commentedlakyljuk, what you're seeing is normal module behavior, I think. Albuns and Images are different contents; you might want to delete the album, but you might want the images might still there because they belong to another album or are illustrating some other node, etc. It will, and should, remain that way... unless someone builds a feature that lets you (optionally) delete all the images in an album when you delete it.
2create, what you're seeing has definately got nothing to do with lakyljuk's issue... and it probably has got nothing to do either with image module or even Drupal. It looks like a limitation of your PHP server. Your PHP scripts are probably creating the images on disk and assigning them to user "nobody". When you log on by FTP/whatever to delete them, the server won't let you delete them because you're not user "nobody". You have to change the ownership of the files to you, with a chown command on shell, or build a script to delete them.
Comment #4
drewish commentedyeah, it sounds like everything's working as designed.