can't hide *all* albums

eco

Joined: 2008-01-31
Posts: 32
Posted: Tue, 2009-06-23 18:58


Gallery URL = http://www.mysite.com/main.php
Gallery version = 2.3 core 1.3.0
API = Core 7.54, Module 3.9, Theme 2.6, Embed 1.5
PHP version = 5.2.6-3 apache2handler
Webserver = Apache
Database = mysqli 5.0.32-Debian_7etch6-log, lock.system=flock
Toolkits = Exif, Getid3, LinkItemToolkit, Thumbnail, ArchiveUpload, ImageMagick, NetPBM, Ffmpeg, SquareThumb
Acceleration = full/21600, full/21600
Operating system = Linux www.mysite.com 2.6.18-6-xen-vserver-686 #1 SMP Tue May 5 05:22:28 UTC 2009 i686
Default theme = ebony
gettext = enabled
Locale = en_GB
Browser = Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.11) Gecko/2009060308 Ubuntu/9.04 (jaunty) Firefox/3.0.11
Rows in GalleryAccessMap table = 52
Rows in GalleryAccessSubscriberMap table = 1738
Rows in GalleryUser table = 3
Rows in GalleryItem table = 1735
Rows in GalleryAlbumItem table = 38
Rows in GalleryCacheMap table = 5

Hi guys,

I'm trying to hide all my albums (without a password) but one of them, however much I try, will not hide, even though it says it is.

Can all albums be hidden or does at least one have to stay visible?

Is there a way to reset all hidden states on all albums so that I can start again with a 'clean' state?

Any pointers to missed documentation is welcome of course ;)

Thanks
-eco

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Tue, 2009-06-23 19:08

Try deleting your browser cookies and cache, then take a look.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
eco

Joined: 2008-01-31
Posts: 32
Posted: Tue, 2009-06-23 19:17

did that, I should have mentioned it.

Opened another browser, cleared cache and all cookies but no luck.

I gather I can hide all my albums.

For info:
I increased the php mem to 128M to make sure it wasn't a problem.

I also note that when I launche the hide 'command' it stops mid way and the page stops loading and just says 'done'. I thought it might be a simple cosmetic error and the 100% bar never gets shown but maybe it simply never worked.

Thanks
-eco

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Tue, 2009-06-23 19:22

Have you tried hiding just that album by itself?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
eco

Joined: 2008-01-31
Posts: 32
Posted: Tue, 2009-06-23 19:28

What do you mean? Show all albums except that one?

No I have not tried that. Is there a way to reset all albums in one go and start from scratch in terms of permissions, etc?

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Tue, 2009-06-23 19:44

That one album that isn't hiding, have you tried clicking Edit Album and hiding just that album?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
eco

Joined: 2008-01-31
Posts: 32
Posted: Tue, 2009-06-23 19:52

That's the only way I ever did it... How would you have done it?

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Tue, 2009-06-23 20:00

How many items are in that album? Is there sub-albums in that album?

____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
eco

Joined: 2008-01-31
Posts: 32
Posted: Tue, 2009-06-23 20:15

The way I have it setup is for example:

Holidays (hidden)
|
+-- Skii (open)
+-- Sea (open)

I hide holiday and leave the others unhidden. That way, if you know about holidays, you can see all the sub-albums.

For all 'root albums' (Holidays) I set them as hidden but only one root album ignores my settings. I just can't figure it out.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Tue, 2009-06-23 20:27

I would try creating a new album, hiding it, while it's empty. Then moving the stuff inside Holidays into that new album. Then delete Holidays and rename the new album to Holidays
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
eco

Joined: 2008-01-31
Posts: 32
Posted: Tue, 2009-06-23 21:30

Hi again,

Here is what happened. I renamed the original album 'travel' to 'temp' and created a new album 'travel'. It seems however that using the same name was a problem. I guess the name remains somewhere in the database.

Here is the error I get when trying to move the sub-album 'year_01' into the new 'travel' album:

Quote:
An error has occurred.

Back to the Gallery
Error Detail -
Error (ERROR_BAD_PATH) : rename /var/lib/gallery2/g2data/albums/temp/year_01/ to /var/lib/gallery2/g2data/albums/travel/year_01

* in modules/core/classes/GalleryFileSystemEntity.class at line 234 (GalleryCoreApi::error)
* in modules/core/classes/GalleryItem.class at line 364 (GalleryFileSystemEntity::move)
* in modules/core/classes/GalleryAlbumItem.class at line 423 (GalleryItem::move)
* in modules/core/ItemMove.inc at line 162 (GalleryAlbumItem::move)
* in main.php at line 250 (ItemMoveController::handleRequest)
* in main.php at line 104
* in main.php at line 88

Hmmm... any thoughts now? I tried to create a new album that had nothing to do with any other name but get the same name when moving the albums.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Tue, 2009-06-23 23:41
Quote:
I tried to create a new album that had nothing to do with any other name but get the same name when moving the albums.

Huh? I have no idea what that is suppose to mean.

As far as I can tell you didn't try following my instructions of creating a temp album first, hiding that, then moving stuff into that temp album. I don't know if that would have worked or not, but it seems to be a more logical way of doing things. Leave the original stuff alone, create a temp "playground" and use that, if working then delete the original stuff and replace with the temp stuff. Not the other way around, which is what you did.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
eco

Joined: 2008-01-31
Posts: 32
Posted: Wed, 2009-06-24 05:54

I agree 100% with you. I'll give it another go this evening. I simply restored the db and files to get back to where I was.

I'll let you know how it goes.

Thanks for your help.
-eco

 
eco

Joined: 2008-01-31
Posts: 32
Posted: Wed, 2009-06-24 14:36

I ended up restoring data and db, creating a new album and copying one sub album at a time.

This did the trick. I think the amount of pics or data was the problem.

All well now. Many thanks!