upgrade task 153 won't work with specific local config settings #855

Open
opened 2026-10-05 00:20:59 +02:00 by adam · 0 comments
Owner

After merging PR #973 I've run migration task https://github.com/Piwigo/Piwigo/blob/master/install/db/153-database.php and I got some warnings:

1 upgrades to apply

=== upgrade 153
Notice:  Undefined index: picture_ext in local/config/config.inc.php on line 32
Warning:  array_merge(): Argument #1 is not an array in local/config/config.inc.php on line 34

Show date period of an album

Indeed, in my local configuration I have:

$conf['file_ext'] = array_merge(
  $conf['picture_ext'],
  array('pdf', 'tiff', 'tif', 'xls', 'xlsx', 'mp4')
  );

I rely on $conf['picture_ext'] which is not available at this time, if default config was not loaded.

After merging PR #973 I've run migration task https://github.com/Piwigo/Piwigo/blob/master/install/db/153-database.php and I got some warnings: ``` 1 upgrades to apply === upgrade 153 Notice: Undefined index: picture_ext in local/config/config.inc.php on line 32 Warning: array_merge(): Argument #1 is not an array in local/config/config.inc.php on line 34 Show date period of an album ``` Indeed, in my local configuration I have: ``` $conf['file_ext'] = array_merge( $conf['picture_ext'], array('pdf', 'tiff', 'tif', 'xls', 'xlsx', 'mp4') ); ``` I rely on `$conf['picture_ext']` which is not available at this time, if default config was not loaded. <!-- github-sync-id:408821217 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/Piwigo#855