▶🚶Reproduction steps
📃Error log message
No errors noted.
After much investigation I narrowed it down to the fact that the "sort= " query string values were disappearing from the navigation links
E.g. the navigation link has the query string "?page=2&seek=J7y7Z" rather than the expected "?sort=date_asc&page=2&seek=J7y7Z".
I narrowed it down to this line in snippets/listing.php:
which gives an unexpected $QS = null even though $_SERVER["QUERY_STRING"] is clearly populated.
After much googling, this is due to strange behaviour in filter_input when FASTCGI is used:
https://bugsdb.com/_en/debug/1bcbed448d666fedd8b4a16a9ef97fab
Anyways, the suggested fix is to replace filter_input with filter_input_fix (listed on page). When I used this in listing.php all the links show the correct query string and pagination is correctly restored.
[As an aside, this may also fix the issue where the "seek=" key shows up in the tab urls when endless pagination is used, but I have not tested this]
- In Classic Pagination: Go to image or album list and select one of the sort tabs other than "Most Recent"
- Click on the navigation arrows to go to the next page (assuming there are enough images/albums).
- Expected result: Goes to the next page in the order described
- The next page will re-highlight the "Most Recent" tab and the page navigation will give a wonky "Most Recent" sort order (sometimes giving blank pages)
📃Error log message
No errors noted.
After much investigation I narrowed it down to the fact that the "sort= " query string values were disappearing from the navigation links
E.g. the navigation link has the query string "?page=2&seek=J7y7Z" rather than the expected "?sort=date_asc&page=2&seek=J7y7Z".
I narrowed it down to this line in snippets/listing.php:
PHP:
$QS = filter_input(INPUT_SERVER, 'QUERY_STRING', FILTER_SANITIZE_STRING);
which gives an unexpected $QS = null even though $_SERVER["QUERY_STRING"] is clearly populated.
After much googling, this is due to strange behaviour in filter_input when FASTCGI is used:
https://bugsdb.com/_en/debug/1bcbed448d666fedd8b4a16a9ef97fab
Anyways, the suggested fix is to replace filter_input with filter_input_fix (listed on page). When I used this in listing.php all the links show the correct query string and pagination is correctly restored.
[As an aside, this may also fix the issue where the "seek=" key shows up in the tab urls when endless pagination is used, but I have not tested this]