Shaft! Album is Broken. Duplicated sub-album deletion cause

pushback

Joined: 2002-09-11
Posts: 94
Posted: Sat, 2002-09-14 21:00

Hello! Please help if you can!

I created a sub-album in album "AA" inside album "A".

I then moved sub-album "AA" to album "B"

It did not appear to move (still showed inside album "A"), so I issued the move command again (via dropdown menu).

I then looked inside album "B" and there were now two instances of album "AA".

I issued the delete command for one of them.

both instances of sub-album "AA" deleted. That's ok... I can re-upload, however, now, inside album "B" is a "dead" album. Underneath it is an error message:
---
Album: Untitled

Changed:
Warning: stat failed for /var/www/html/ebzb/albums//album.dat (errno=2 - No such file or directory) in /home/jek/www/ebzb/gallery/platform/fs_unix.php on line 73
Dec 31, 1969.
Contains: no items.

---

Also, it seems to be carrying the non-existed image from this dead album to the next level up so the highlight photo for Album "B" is now a box that says "No highlight". I cannot change the highlight photo for album "B".

url to the album is http://www.ebzb.com/gallery
url to the page with the error messages is: http://www.ebzb.com/gallery/events

Thanks for your help!

 
pushback

Joined: 2002-09-11
Posts: 94
Posted: Sun, 2002-09-15 22:05

Anyone?

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Mon, 2002-09-16 02:35

This sounds like a permissions issue. Is there any chance that you have changed the permissions on any of the files/directories inside your albums dir by hand?

What are the ownership/permissions on the three albums you mention (A, AA, B)?
Try:

cd albums
ls -ld A AA B

that should give us a little insight if it's a permissions issue. You already deleted AA, so you probably can't provide that info :-/. I think that if you create a new album with the same name as the broken one, you may be able to delete the bogus entry from album B. If that doesn't work, tell me which album in your gallery is the broken one and I'll look at the data file.

 
pushback

Joined: 2002-09-11
Posts: 94
Posted: Tue, 2002-09-17 19:31

I ended up restoring the album from a backup. Just lost the work of that day. If it happens again I will check the permissions. Thanks fo rthe reply!