Title: Plugins update PHP warnings
Last modified: August 21, 2016

---

# Plugins update PHP warnings

 *  [patricy](https://wordpress.org/support/users/patricy/)
 * (@patricy)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/plugins-update-php-warnings/)
 * FYI
 * I got a lot of warnings in log:
    PHP Warning: Invalid argument supplied for foreach()
   in *******/wp-includes/update.php on line 295
 * After long debug I realized that it have error response from plugin updates check
   WP API.
    The reason is in line 266: `'plugins' => json_encode( $to_send )`
 * $to_send contain plugins list, but json_encode return just false instead of throwing
   error in log (i think because of this [“not a bug”](https://bugs.php.net/bug.php?id=47494)
   
   One of plugins contain non-UTF symbols in “Author name” field [i.e. this plugin](http://wordpress.org/plugins/tinymce-and-tinymce-advanced-professsional-formats-and-styles)
   have as author “David Stöckl” and that letter ö calls json encode error (but 
   this error does not handled by anybody). I already fix this on my site and report
   to plugin’s author, but I think it’s mostly WP issue.
 * I put this to report, I think it’s not duplicated
    [https://core.trac.wordpress.org/ticket/28807#ticket](https://core.trac.wordpress.org/ticket/28807#ticket)

The topic ‘Plugins update PHP warnings’ is closed to new replies.

## Tags

 * [utf8](https://wordpress.org/support/topic-tag/utf8/)

 * 0 replies
 * 1 participant
 * Last reply from: [patricy](https://wordpress.org/support/users/patricy/)
 * Last activity: [11 years, 11 months ago](https://wordpress.org/support/topic/plugins-update-php-warnings/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
