Warning for mime_content_type causes white screen
-
On clicking the publish button in a post with an external image I receive this error
Warning: mime_content_type() [function.mime-content-type]: File or path not found ‘http://ben.lobaugh.net/blog/wp-content/uploads/2011/11/IMG_0438-358×480.jpg’ in /Applications/XAMPP/xamppfiles/htdocs/vhosts/nordstrom/wp-content/plugins/add-linked-images-to-gallery-v01/attach-linked-images.php on line 76
Warning: Cannot modify header information – headers already sent by (output started at /Applications/XAMPP/xamppfiles/htdocs/vhosts/nordstrom/wp-content/plugins/add-linked-images-to-gallery-v01/attach-linked-images.php:76) in /Applications/XAMPP/xamppfiles/htdocs/vhosts/nordstrom/wp-includes/pluggable.php on line 881
The fix is pretty simple:
Change line 99 from
$desc = externimg_getext($file);
to
$desc = externimg_getext($file_array[‘tmp_name’]);this will cause it to fall in line with line 103 and the system returns to being happy again.
http://wordpress.org/extend/plugins/add-linked-images-to-gallery-v01/
- The topic ‘Warning for mime_content_type causes white screen’ is closed to new replies.