Support » Plugin: Add Linked Images To Gallery » Warning for mime_content_type causes white screen

  • Ben Lobaugh (blobaugh)


    Jetpack Engineer

    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 ‘×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);
    $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.

  • The topic ‘Warning for mime_content_type causes white screen’ is closed to new replies.