The ModeArray is an array, obviously, and it breaks PHP code because strip_tags breaks on an array with PHP 8:
Fatal error: Uncaught TypeError: strip_tags(): Argument #1 ($string) must be of type string, array given in include/functions_metadata.inc.php:190
Stack trace: #0 include/functions_metadata.inc.php(190): strip_tags() #1 include/picture_metadata.inc.php(24): get_exif_data() #2 picture.php(1014): include('...') #3 {main}
thrown in include/functions_metadata.inc.php on line 190
When you have `ModeArray` in your list of EXIF fields to extract from the photo:
```
$conf['show_exif_fields'] = array(
'exif_field_Make' => 'Make',
'exif_field_Model' => 'Model',
'exif_field_ExposureTime' => 'ExposureTime',
'exif_field_FocalLength' => 'FocalLength',
'exif_field_FNumber' => 'FNumber',
'exif_field_ModeArray' => 'ModeArray',
);
```
The `ModeArray` is an array, obviously, and it breaks PHP code because `strip_tags` breaks on an array with PHP 8:
> Fatal error: Uncaught TypeError: strip_tags(): Argument #1 ($string) must be of type string, array given in include/functions_metadata.inc.php:190
>
> Stack trace:
> #0 include/functions_metadata.inc.php(190): strip_tags()
> #1 include/picture_metadata.inc.php(24): get_exif_data()
> #2 picture.php(1014): include('...')
> #3 {main}
> thrown in include/functions_metadata.inc.php on line 190
<!-- github-sync-id:2235247961 -->
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.
When you have
ModeArrayin your list of EXIF fields to extract from the photo:The
ModeArrayis an array, obviously, and it breaks PHP code becausestrip_tagsbreaks on an array with PHP 8: