Support » Plugin: Embed GitHub Gist » Error with WP_Error

  • I’m seeing the following in my error_log every few days:

    PHP Fatal error: Cannot use object of type WP_Error as array in plugins/embed-github-gist/embed-github-gist.php on line 86

    I took a look through the code and that line is: $json = json_decode($result['body'], true);. Looks like if the $result var is an array, it should do this line, and if not it should do something else.

    Cheers,
    Joshua

    https://wordpress.org/plugins/embed-github-gist/

  • The topic ‘Error with WP_Error’ is closed to new replies.