Title: Image Errors Wp-includes/media.php
Last modified: August 20, 2016

---

# Image Errors Wp-includes/media.php

 *  [AltTab](https://wordpress.org/support/users/alttab/)
 * (@alttab)
 * [14 years ago](https://wordpress.org/support/topic/image-errors-wp-includesmediaphp/)
 * We are getting this error on one of our MU subdir sites with a particular template.
 * **Warning: imagecreatefromstring() [function.imagecreatefromstring]: Empty string
   or invalid image in /home/……/public_html/wp-includes/media.php on line 258**
   
   Here is line 258 $image = imagecreatefromstring( file_get_contents( $file ) );
 * The template provider says its a wordpress file creating the issue. They indicated
   that the GD libaray was not functioning properly but the host TDM, indicated 
   it was with a simple php file.
 * We removed all 6-8 jpg images from the media folder on that subdirectory with
   no change.
 * Any ideas or help would be greatly appreciated…

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [14 years ago](https://wordpress.org/support/topic/image-errors-wp-includesmediaphp/#post-2727247)
 * Can you upload images in other sites?
 * If so, what’s different between THAT site and the others?
 *  Thread Starter [AltTab](https://wordpress.org/support/users/alttab/)
 * (@alttab)
 * [14 years ago](https://wordpress.org/support/topic/image-errors-wp-includesmediaphp/#post-2727250)
 * We have checked the subdir sites that are using this particular theme and no 
   matter if they have images or not, they produce this error.
 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [14 years ago](https://wordpress.org/support/topic/image-errors-wp-includesmediaphp/#post-2727281)
 * Using that theme. Well, the real answer there is ‘That theme isn’t working right,
   talk to the theme devs.’
 * Does the theme use TimThumb?
 *  Thread Starter [AltTab](https://wordpress.org/support/users/alttab/)
 * (@alttab)
 * [14 years ago](https://wordpress.org/support/topic/image-errors-wp-includesmediaphp/#post-2727300)
 * Yes on timthumb …Here is what the host said:
 * sounds like a permission issue..they also recently had a DDoS on the server….
 * > The module for the wordpress application you are mentioning in your latest 
   > reply is not familiar to us. Thus if the module has some requirements you should
   > provide us with them so we can check if the module is compatible with the shared
   > hosting environment on which your account is located.
   > However since this is a module for the wordpress application we can assume 
   > that it is using the application requirements which are compatible with the
   > environment.
   > Regarding your inquiry for the mod_security this apache was enabled for the
   > environment on which your account relies but we have disabled it.
 * Thanks for your reply Ipstenu….
 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [14 years ago](https://wordpress.org/support/topic/image-errors-wp-includesmediaphp/#post-2727305)
 * It’s not DDoS, most likely. It’s the simple fact that TimThumb doesn’t work WELL
   on Multisite, if at all.
 * [http://www.binarymoon.co.uk/2009/10/timthumb-wordpress-mu/](http://www.binarymoon.co.uk/2009/10/timthumb-wordpress-mu/)

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Image Errors Wp-includes/media.php’ is closed to new replies.

## Tags

 * [media.php](https://wordpress.org/support/topic-tag/media-php/)
 * [wp-includes](https://wordpress.org/support/topic-tag/wp-includes/)

 * In: [Networking WordPress](https://wordpress.org/support/forum/multisite/)
 * 5 replies
 * 2 participants
 * Last reply from: [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * Last activity: [14 years ago](https://wordpress.org/support/topic/image-errors-wp-includesmediaphp/#post-2727305)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
