Title: media.php error?
Last modified: August 31, 2016

---

# media.php error?

 *  [scidstuff](https://wordpress.org/support/users/scidstuff/)
 * (@scidstuff)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/mediaphp-error/)
 * Warning: Illegal string offset ‘file’ in /home/…/wp-includes/media.php on line
   1088
 * I’m getting this warning multiple times on several of my pages on my site: [http://scidangelsforlife.com](http://scidangelsforlife.com).
   I first tried to disable all plug-ins. That didn’t help. I then changed the theme
   to the new default twenty sixteen. That didn’t help. I then tried a soft reinstall
   of WordPress from the dashboard: version 4.4.1. That didn’t help either. I attempted
   to ftp to the file media.php and replace it with the old version from the backup
   and the entire site would no longer load, so I had to replace it with the one
   that is causing this error.
 * I’ve searched here and not seen anything more than the suggestions for doing 
   what I’ve already done. Same when I google the error, except that I see that 
   many other wordpress sites are experiencing the same error.
 * Does anyone know what to do to repair the file?
 * Barb

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

 *  Thread Starter [scidstuff](https://wordpress.org/support/users/scidstuff/)
 * (@scidstuff)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/mediaphp-error/#post-6931796)
 * I’ve figured out that only pages with pictures in the main section are affected,
   if this helps anyone come up with a solution.
 *  [wp-newbee](https://wordpress.org/support/users/wp-newbee/)
 * (@wp-newbee)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/mediaphp-error/#post-6932033)
 * Hi,
    Try this code, see if helps you. [http://wptavern.com/how-to-fix-images-not-loading-in-wordpress-4-4-while-using-ssl](http://wptavern.com/how-to-fix-images-not-loading-in-wordpress-4-4-while-using-ssl)
 *  Thread Starter [scidstuff](https://wordpress.org/support/users/scidstuff/)
 * (@scidstuff)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/mediaphp-error/#post-6932050)
 * The site is not using SSL, so I don’t think this is the same issue, but thanks
   for replying.
 *  Thread Starter [scidstuff](https://wordpress.org/support/users/scidstuff/)
 * (@scidstuff)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/mediaphp-error/#post-6932108)
 * I found in the media section that there were errors showing around related to
   some of the picture files. Many of these files have been on the site for several
   years, so they are not new. If I deleted those files and re-uploaded new copies
   of them the error messages went away. I think it had something to do with the
   resizing of the images by wordpress? Does this make sense to anyone?
 *  [Toshi Yoshida](https://wordpress.org/support/users/mikeg9999/)
 * (@mikeg9999)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/mediaphp-error/#post-6932224)
 * Removing the syntax ‘wp-image-nnn’ from the img src= statement seems to clear
   the error and not impact anything as far as I can tell.
 *  [Toshi Yoshida](https://wordpress.org/support/users/mikeg9999/)
 * (@mikeg9999)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/mediaphp-error/#post-6932225)
 * Update: On my site it seems that the error only appears for some images – they
   must have ‘wp-image-nnn’ and be full size.

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

The topic ‘media.php error?’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 6 replies
 * 3 participants
 * Last reply from: [Toshi Yoshida](https://wordpress.org/support/users/mikeg9999/)
 * Last activity: [10 years, 4 months ago](https://wordpress.org/support/topic/mediaphp-error/#post-6932225)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
