Hello,
I have checked all my parameters in the admin pages but i have not found anything wrong.
- Options -> Search -> No options found for sorting.
- Options -> Pictures -> Sort by date.
- Album (maitres_du_vent) -> Sort sub-albums by title.
- Album (maitres_du_vent) -> Sort pictures by date.
- Any sub-albums (all are dynamic) of maitres_du_vent -> Sort sub-albums (don't have any) and sort pictures like parent album.
Sort don't work or i miss an option somewhere. You can check for test at:
http://www.ventetvagues.com/maitres-du-vent/Thierry_Le_Floch.albPhoto order is 2010-03-20, 2012-04-09, 2012-06-10, 2012-06-16, 2011-06-18, 2010-07-14, 2012-08-04, 2012-08-05, 2011-08-07, 2011-09-10
Sort function don't use year ? It's really strange a sort function with only month and day...
You can check the problem in any sub-albums of 'Maitres du vent'. Date and time are written under photo.
Also test to force date sort in a sub-album but that don't change anything.
I made a test with the standard theme. Always the same problem.
Does someone have a solution ?
Thanks in advance.
Bernard.
Comments
My only thought is that maybe there is a search caching involved. Set the cache expiry to 0 on the search options tab and see if that makes any difference.
I set the search cache expiry to 0.
I have purge browser cache, history and other temporary items.
With Ftp i have delete the entire sub-folders ./cache/maitres_du_vent.
To complete the clean process in the ZenPhoto admin i have launch the process for updating and cleaning the database.
In the admin section of a dynamic album i have purge the cache image of the album.
The problem is always here. :-(
I made the test with the last version of Firefox and Safari.
I really don't understand. I always update to the last version of ZenPhoto.
Can the problem come from the database type (utf-8, latin) ?
I made an export of my db. You can download it here if you want:
http://www.ventetvagues.com/ventetvagues.sql.zip
Thank you again for your help.
When you tried a standard theme, did you use `default`? That is the simplest theme and would be the best test.
Yes, i made test with the default theme.
My theme is also build from default.
I don't use any 3rd party extensions.
If that can help, database table are MyISAM - utf8_unicode_ci
The last line of PhpMyAdmin give me 16 tables MyISAM - latin1_swedish_ci
I confirm that is only a problem with the search option.
I made a copy of some photos from different years to a same folder. Take a look at the link below to see them in the right order:
http://www.ventetvagues.com/sessions/2005-05-05/
Now make a search with the word zen. You should have the same pictures but in the wrong order.
If that can help, here my search.php:
`
<?php include ('header.php'); ?>
<div id="contenu">
<?php
$total = getNumImages() + getNumAlbums();
if (!$total) { $_zp_current_search->clearSearchWords(); }
?>
<h2><?php echo "<h2>".gettext("Search")."</h2>"; ?></h2>
<?php
if (($total = getNumImages() + getNumAlbums()) > 0)
{
if (isset($_REQUEST['date'])){ $searchwords = getSearchDate(); } else { $searchwords = getSearchWords(); }
echo '<h3><p>'.sprintf(gettext('Total matches for %1$s: %2$u'), $searchwords, $total).'</p></h3>';
}
$c = 0;
?>
<?php while (next_album()): $c++;?>
<div class="album">
<div class="albumthumb">
" title="<?php echo gettext('View album:'); ?> <?php echo getAnnotatedAlbumTitle();?>"><?php printCustomAlbumThumbImage(getAnnotatedAlbumTitle(),NULL,270,130,270,130); ?>
</div>
<div class="albumdesc">
<h3>" title="<?php echo gettext('View album:'); ?> <?php echo getAnnotatedAlbumTitle();?>"><?php printAlbumTitle(); ?></h3>
</div>
</div>
<?php endwhile; ?>
<br style="clear: both" />
<?php while (next_image()): $c++;?>
<div class="imagealbum">
<div class="imagealbumthumb">
"><?php printImageThumb(getAnnotatedImageTitle()); ?>
</div>
</div>
<?php endwhile; ?>
<?php if ($c == 0) { echo "<h3><p>".gettext("Sorry, no image matches found. Try refining your search.")."</p></h3>"; } ?>
<br style="clear: both" />
<?php if (function_exists('printSlideShowLink')) printSlideShowLink(gettext('View Slideshow')); ?>
<?php printPageListWithNav("« ".gettext("prev"), gettext("next")." »"); ?>
</div><!-- contenu -->
<?php include ('footer.php'); ?>
`
Remove any use of `getNumAlbums()` from the search page and see if the problem is still there.
$total = getNumImages() + getNumAlbums();
if (($total = getNumImages() + getNumAlbums()) > 0)
With this one:
$total = getNumImages();
if (($total = getNumImages()) > 0)
After that for better test i made a purge of the browser cache.
But that don't change anything. Always bad sort with search... :-(
what release of zenphoto arête yougoslave using ?
Do you cave the problem with standard albums too?
As far I remember there was a sort issue on solder release if you choose a specific représentant thumbnail
Of course sbillard, i accept to make all the necessary test to solve that bug.
I have open a ticket for this bug: Ticket #2224
Thank you for all.
but there was a similar issue in the past on standard albums :
see here :
- http://www.zenphoto.org/support/topic.php?id=11016
- http://www.zenphoto.org/support/topic.php?id=10962
- http://www.zenphoto.org/trac/changeset/10137
of course, I don't know if it's a linked issue, but maybe you should tell us what is your thumbnail configuration on your dynamic album.