• 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”
    One of plugins contain non-UTF symbols in “Author name” field
    i.e. this plugin 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.ww.wp.xz.cn/ticket/28807#ticket

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