On several Piwigo installations I've found on the web, I realized that the "Random pictures" feature was bringing me back to the gallery home.
Today I've reproduced this bug. I investigated and I realized that it was because I had reinstalled PHP 5.3, and Suhosin was automatically installed.
The "problem" is that Suhosin has a directive suhosin.request.max_array_index_length set to 64 by default. If /list/5114,3124,4551,1331,4104,4554,1137,3752,5189,5183,4703,5179,3129,4242,1330 is longer than 64, then it is skipped => Piwigo finds nothing in the $_GET and goes back home.
**Reported by plg on 7 May 2010 22:21**
**Version:** 2.0.0
On several Piwigo installations I've found on the web, I realized that the "Random pictures" feature was bringing me back to the gallery home.
Today I've reproduced this bug. I investigated and I realized that it was because I had reinstalled PHP 5.3, and Suhosin was automatically installed.
The "problem" is that Suhosin has a directive suhosin.request.max_array_index_length set to 64 by default. If /list/5114,3124,4551,1331,4104,4554,1137,3752,5189,5183,4703,5179,3129,4242,1330 is longer than 64, then it is skipped => Piwigo finds nothing in the $_GET and goes back home.
[Piwigo Bugtracker #1651](http://piwigo.org/bugs/view.php?id=1651)
<!-- github-sync-id:97226093 -->
An idea : make a unique string in url associate with that list saved in session.
**Comment posted by nikrou on 8 May 2010 17:52**
An idea : make a unique string in url associate with that list saved in session.
<!-- github-comment-id:124892039 -->
Unique string saved in session means we can't forward the link.
Another idea: Lists could be saved in #_search.rules
**Comment posted by VDigital on 11 May 2010 10:43**
Unique string saved in session means we can't forward the link.
Another idea: Lists could be saved in #_search.rules
<!-- github-comment-id:124892072 -->
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Reported by plg on 7 May 2010 22:21
Version: 2.0.0
On several Piwigo installations I've found on the web, I realized that the "Random pictures" feature was bringing me back to the gallery home.
Today I've reproduced this bug. I investigated and I realized that it was because I had reinstalled PHP 5.3, and Suhosin was automatically installed.
The "problem" is that Suhosin has a directive suhosin.request.max_array_index_length set to 64 by default. If /list/5114,3124,4551,1331,4104,4554,1137,3752,5189,5183,4703,5179,3129,4242,1330 is longer than 64, then it is skipped => Piwigo finds nothing in the $_GET and goes back home.
Piwigo Bugtracker #1651
Comment posted by nikrou on 8 May 2010 17:52
An idea : make a unique string in url associate with that list saved in session.
Comment posted by VDigital on 11 May 2010 10:43
Unique string saved in session means we can't forward the link.
Another idea: Lists could be saved in #_search.rules