In fact this is not an error but a notice. exif_read_data() will not trigger any error above level E_NOTICE or E_WARNING. A notice or warning is just that – to notify about something, nothing else.
Also see: https://www.php.net/manual/en/function.exif-read-data.php
Also this will also not cause any slow down either as the result will be cached anyway.
Furthermore the plugin checks if the function exists at all (which may not always be the case) and the function is used with the @
prefix to suppress any error in logs if anything goes wrong and the result of the function is also checked to determine if there is EXIF information available at all. See https://github.com/arnowelzel/lightbox-photoswipe/blob/main/lightbox-photoswipe.php#L652:
if ($this->show_exif && function_exists('exif_read_data')) {
$exif = @exif_read_data( $file, 'EXIF', true );
if (false !== $exif) {
So normally you should not see any message at all.
But I’ll see what I can do – however there is no guarantee that no warning/notice will ever occur. Even with JPEG and TIFF files this function may cause a warning or notice since not all JPEGs or TIFF files have EXIF data.
-
This reply was modified 3 years, 3 months ago by
Arno Welzel.