While on a screen having "previous" and "next" links, I am getting "infinite loop?" message.
I do not have this issue on a Windows server, PHP.4.9 and MySQL 5.7.28.
My environment is as follows:
Piwigo 11.0.0 Check for upgrade
Operating system: Linux
PHP: 7.4.14 (Show info) [2021-01-19 09:04:42]
MySQL: 5.5.62-log [2021-01-19 09:04:42]
Graphics Library: External ImageMagick 6.9.10-23
I am running MySQL with InnoDB engine.
Piwigo URL: http://piwigo.odkrywcy.com/
Offline
OK, I reproduce on my install. You can't reach page 2 if you have several pages of albums. No problem if you have several pages of photos. Having several pages of albums is not so common, but still that's a real issue. Piwigo 11.1.0 will come fast...
Offline
Same here, having this very issue on all pages. Disabled all plugins, changed themes, Tried purging user caches. Purge sessions, Purge unused notification feeds, Purge compiled templates...all to no joy.
Piwigo 11.0.0
Operating system: Linux
PHP: 7.4.14 (Show info) [2021-01-19 21:28:35]
MySQL: 5.5.5-10.2.36-MariaDB-1:10.2.36+maria~bionic [2021-01-19 21:28:35]
Graphics Library: ImageMagick 6.9.7-4
Offline
I get the message "infinite loop?" whenever I click on "display all photos in all sub-albums"
Piwigo 11.0.0 Check for upgrade
Operating system: Linux
PHP: 7.3.19-1~deb10u1 (Show info) [2021-01-19 18:11:08]
MySQL: 5.5.5-10.3.27-MariaDB-0+deb10u1 [2021-01-19 18:11:08]
Graphics Library: External ImageMagick 6.9.10-23
Offline
The good news is:
1) easy to avoid, by displaying more albums per page (setting on [Admin>Configuration>Options>Display]
2) easy to fix (like, very easy, 2 minutes of search in the code I modified...)
[2021-01-20 12:00:18] ~/git/Piwigo (11.x) $ git diff diff --git a/include/functions_url.inc.php b/include/functions_url.inc.php index 676651b..68306c3 100644 --- a/include/functions_url.inc.php +++ b/include/functions_url.inc.php @@ -453,6 +453,8 @@ function parse_section_url( $tokens, &$next_token) strpos($tokens[$next_token], 'created-')===0 or strpos($tokens[$next_token], 'posted-')===0 or strpos($tokens[$next_token], 'start-')===0 + or strpos($tokens[$next_token], 'startcat-')===0 + or 'flat' == $tokens[$next_token] ) { break;
The bad news is:
* should we release 11.1.0 right now or wait for a few more bugs to be discovered
Offline
I think you should give it some time. It's better than having to do two or three updates in a row
Offline
Proposal: add other fixes and release on Friday as on the weekend more upgrades are likely to happen..
Offline
OK, I'm focusing on urgent fixes for the rest of the week and I will push a new release before the week-end, good idea !
Offline
Thanks, that fix works for now - I await the update!
Offline
plg wrote:
I will push a new release before the week-end
Thank you for your quick efforts
Offline
I did plg's "2) easy-to-fix" edit, and it works fine. Thanks.
Offline
Wow thank you greatly! I just upgraded my gallery, noticed this bug and here is a solution. Edited the php file, added the 2 lines and works beautifully.
I joined just to say this. Thank You! :)
plg wrote:
The good news is:
1) easy to avoid, by displaying more albums per page (setting on [Admin>Configuration>Options>Display]
2) easy to fix (like, very easy, 2 minutes of search in the code I modified...)Code:
[2021-01-20 12:00:18] ~/git/Piwigo (11.x) $ git diff diff --git a/include/functions_url.inc.php b/include/functions_url.inc.php index 676651b..68306c3 100644 --- a/include/functions_url.inc.php +++ b/include/functions_url.inc.php @@ -453,6 +453,8 @@ function parse_section_url( $tokens, &$next_token) strpos($tokens[$next_token], 'created-')===0 or strpos($tokens[$next_token], 'posted-')===0 or strpos($tokens[$next_token], 'start-')===0 + or strpos($tokens[$next_token], 'startcat-')===0 + or 'flat' == $tokens[$next_token] ) { break;The bad news is:
* should we release 11.1.0 right now or wait for a few more bugs to be discovered
Offline
Yes, just released new version 11.1.0 fixes infinite loop bug and at first glance all else looks good.
Offline