plg wroteFor your information, for Piwigo 15, the minimum technical version of PHP is 7.1 (and we just discovered a bug with PHP 7.2, that we're going to fix) but the minimum version we ask users to have is 7.4. We will certainly increase it to 8 for Piwigo 16.
Thank you for the heads up. In fact using 7.1 right now.
Is this a new feature in P15 that opening any gallery I get some new button "Search in this set" which ends up with error message:
Fatal error: Uncaught Error: Call to undefined function array_key_first() in /var/www/html/galerii/include/functions_search.inc.php:717 Stack trace: #0 /var/www/html/galerii/include/functions_search.inc.php(2016): get_regular_search_results(Array, '') #1 /var/www/html/galerii/include/section_init.inc.php(364): get_search_results('psk-20241108-rq...', NULL) #2 /var/www/html/galerii/index.php(12): include('/var/www/html/g...') #3 {main} thrown in /var/www/html/galerii/include/functions_search.inc.php on line 717
Luckily I can disable it in Configuration > Options > Display > Main Page > [ ] Activate button "Search in this set";
[ ] Activate icon "Search in this set".
Seems to be function added to PHP 7.3+, which I don't have. If I wanted to add given function at
https://www.php.net/manual/en/function.array-key-first.php "Notes" part as temporary workaround, where would be the best place to put it? ( I don't think just before line 717 in functions_search.inc.php would be best place, as this function might be used elsewhere in the code also ) Or better yet could you please add it to Piwigo 15.1 or something? :-)