WordPress.org

Ready to get started?Download WordPress

Forums

Add Linked Images To Gallery
Warning for mime_content_type causes white screen (1 post)

  1. 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-358x480.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/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

  • RSS feed for this topic
  • Started 1 year ago by Ben Lobaugh (blobaugh)
  • This topic is not resolved
  • WordPress version: 3.4.2

Tags

No tags yet.