Support » Fixing WordPress » Bug in function wp_read_image_metadata() in image.php
4 years, 11 months ago
During image upload, I get the following warning :
Warning: trim() expects parameter 1 to be string, array given in /wp-admin/includes/image.php on line 300
The line 300 is:
$meta[‘iso’] = utf8_encode( trim( $exif[‘ISOSpeedRatings’] ) );
The error is that $exif[‘ISOSpeedRatings’] can be an array, for example Array (  => 200  => 200 ). So the trim() function returns the warning.
4 years, 9 months ago
so how to fix this
Hope that the WordPress team will fix it in the next release.