bobbingwide / oik-media

oik-fields extension for Media - attached images and other files
GNU General Public License v2.0
0 stars 0 forks source link

Warning message uploading .PNG file to WPMS #4

Closed bobbingwide closed 2 years ago

bobbingwide commented 7 years ago

Warning: exif_read_data(phpLCESOE): File not supported in /home/rcorguk/public_html/wp-content/plugins/oik-media/includes/oik-media-date.php on line 10

PHP 5.4.45

bobbingwide commented 2 years ago

I get a similar message in s.b/bigram. This time I was uploading a .webp file. But I think it's the .tmp that the function's complaining about.

Warning: exif_read_data(phpBDA5.tmp): File not supported in C:\apache\htdocs\wordpress\wp-content\plugins\oik-media\includes\oik-media-date.php on line 10

PHP 8.0, Windows 10

bobbingwide commented 2 years ago

The easiest way of avoiding the Warning is to use

$data = @exif_read_data( $file );
bobbingwide commented 2 years ago

Delivered in v0.1.0