Not sure, never heard of that error before. As you can see the error is coming from a WP core file. Further, the function wp_read_image_metadata() is not used/called anywhere in User Submitted Posts. So maybe try troubleshooting your other plugins and the theme..?
Thread Starter
hypefx
(@hypefx)
It seems like the error is triggering due to USP using the exif to generate the title on submit.
here is that line in media.php
// Use image exif/iptc data for title and caption defaults if possible.
} elseif ( 0 === strpos( $type, ‘image/’ ) && $image_meta = @wp_read_image_metadata( $file ) ) {
if ( trim( $image_meta[‘title’] ) && ! is_numeric( sanitize_title( $image_meta[‘title’] ) ) ) {
$title = $image_meta[‘title’];
}
on submit, white screen of death… not even admin bar remains.
Ah, yeah thanks for looking further. Basically your server probably does not enable the exif_imagetype() function. It’s somewhat common, and there is an easy fix in most situations you can just add the following code to your theme’s functions.php file:
if (!function_exists('exif_imagetype')) {
function exif_imagetype($filename) {
if ((list($width, $height, $type, $attr) = getimagesize($filename)) !== false) {
return $type;
}
return false;
}
}
Thread Starter
hypefx
(@hypefx)
Totally stumped. Exif is enabled. here is my php info. i want this to work so badly!!! LOL
exif
EXIF Support enabled
EXIF Version 1.4 $Id: f94e075e5a1ebe5108ef2729498d2f198df3c078 $
Supported EXIF Version 0220
Supported filetypes JPEG,TIFF
Directive Local Value Master Value
exif.decode_jis_intel JIS JIS
exif.decode_jis_motorola JIS JIS
exif.decode_unicode_intel UCS-2LE UCS-2LE
exif.decode_unicode_motorola UCS-2BE UCS-2BE
exif.encode_jis no value no value
exif.encode_unicode ISO-8859-15 ISO-8859-15
Thread Starter
hypefx
(@hypefx)
also, added that code to functions. no dice yet! thanks so much for helping me on this.
Not sure what else to try.. it could be that something else is interfering, I recommend troubleshooting your plugins and theme.
It’s been about a month on this, so gonna go ahead and close this thread. Feel free to post again if any questions. Thanks.