[15.0.0 search] Call to undefined function array_key_first() #1974

Closed
opened 2026-10-05 01:02:52 +02:00 by adam · 1 comment
Owner

See https://fr.piwigo.org/forum/viewtopic.php?id=30590

Fatal error: Uncaught Error: Call to undefined function array_key_first() in include/functions_search.inc.php:717
Stack trace:
0) include/functions_search.inc.php(2016): get_regular_search_results(Array, '')

  1. include/section_init.inc.php(364): get_search_results('psk-20241031-Tz...', NULL)
  2. index.php(12): include('..')
  3. {main} thrown in include/functions_search.inc.php on line 717
See https://fr.piwigo.org/forum/viewtopic.php?id=30590 > Fatal error: Uncaught Error: Call to undefined function array_key_first() in include/functions_search.inc.php:717 > Stack trace: > 0) include/functions_search.inc.php(2016): get_regular_search_results(Array, '') > 1) include/section_init.inc.php(364): get_search_results('psk-20241031-Tz...', NULL) > 2) index.php(12): include('..') > 3) {main} thrown in include/functions_search.inc.php on line 717 <!-- github-sync-id:2640582294 -->
adam closed this issue 2026-10-05 01:02:52 +02:00
Author
Owner

function array_key_first was added in PHP 7.3 but as we officially say that Piwigo is still compatible with PHP 7.1, we need to fix this.

function `array_key_first` was added in PHP 7.3 but as we officially say that Piwigo is still compatible with PHP 7.1, we need to fix this. <!-- github-comment-id:2461882730 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/Piwigo#1974