Gallery v1.5 randomizes albums order

Truestyle

Joined: 2008-05-07
Posts: 3
Posted: Wed, 2008-05-07 07:59

The following information is required to get an answer:
Get this information from the PHP diagnostic (in the configuration wizard).
Gallery URL (optional but very useful):
Gallery version: Gallery version 1.5
Apache version: Apache/1.3.41 Ben-SSL/1.57 (Unix)
PHP version (don't just say PHP 4, please): PHP v4.4.8
Graphics Toolkit: NetPBM ImageMagick
Operating system: Linux 2008 i686
Web browser/version (if applicable):

I have 58 albums in the gallery v1.5 at the moment.
Sometimes probably 3 or 4 times a month he mixes up the entire order of the albums.
This means an album added on Nov 2007 will be on top and after it comes an album that has been added on feb 2008.
It mixes all the albums up and the order doesn't make any sense.
So i have to manually sort out all the albums which is a pretty annoying job to do 4 times a month.
It also only recently started about 2 months ago.
At first I thought it was just a random thing.
But it is starting to happen more frequently.
I have no special modifications to Gallery other then a style that I made for the site.

Any thoughts on why this is happening ? And more importantly .. Does anyone have a solution for this problem ?

Login or register to post comments
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6158
Posted: Wed, 2008-05-07 11:36

Hello,

this is a known issue in the 1.5.x series with Gallery that have a high load.
The order is saved for caching in a file, but this gets sometimes overwritten and the order is lost.
New Versions can handle this a little better, but the problem is still there.

If someone has a solution, i would be happy to implement it.

Jens
--
Last Gallery v1 Developer.
Tryout the TEST-Version of Gallery 1.6

Login or register to post comments
Truestyle

Joined: 2008-05-07
Posts: 3
Posted: Wed, 2008-05-07 13:36

Would nesting the albums in special folders solve the problem ? Or at least fix the problem in some sort ?
For example :

2008 - January - map 1
2008 - January - map 2
2008 - January - map 3
2008 - February - map 1
2008 - February - map 2
2008 - February - map 3
etc ?

make a general year album.
then month.
then the event.

Would this make it much easier on the load process of Gallery 1.5 ?
Or would the load still be the same ?

Login or register to post comments
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6158
Posted: Wed, 2008-05-07 14:01

Are you talking about album folder names?
If yes, I think that should do it.
As the order is same as you would do a directory listing.

The load itself is still the same :-|

Jens
--
Last Gallery v1 Developer.
Tryout the TEST-Version of Gallery 1.6

Login or register to post comments
Truestyle

Joined: 2008-05-07
Posts: 3
Posted: Wed, 2008-05-07 14:14

What I mean is that I nest albums to make the initial load smaller.
All the albums made in 2008 will go in 1 main album called : 2008
All the albums made in 2007 will go in 1 main album called : 2007
etc.

Would this lower the initial load ?
Is there a way to lower the load on the gallery application ?
Is there a way to maybe make gallery sort the albums by way of directory listing on the server ?
Or is there a way to make gallery automatically sort the albums on last date added ?
That would make the albums display correctly I think...

Login or register to post comments
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6158
Posted: Wed, 2008-05-07 14:35

Hi,

nesting albums does not decrease the load.
Gallery 1 saves its data in serialized files. So it has to scan all albums to find out which is a root album and which not.

1.) No
2.) No
3.) If no albumdb.dat is there, then that the initial sort order, but this file is created after its lost.
4.) Gallery 1.5.7 has a functionality to sort rootalbums.

Jens
--
Last Gallery v1 Developer.
Tryout the TEST-Version of Gallery 1.6

Login or register to post comments