Title: WP Error issue
Last modified: August 30, 2016

---

# WP Error issue

 *  [Jack Reichert](https://wordpress.org/support/users/jackreichert/)
 * (@jackreichert)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/wp-error-issue/)
 * Awesome plugin.
 * got an error: PHP message: PHP Fatal error: Cannot use object of type WP_Error
   as array in /wp-content/plugins/ozh-tweet-archiver/inc/utils.php on line 33
 * Can you please replace it with:
 *     ```
       if ( is_wp_error($response)) {
               ozh_ta_debug( "Response error: " . $response->get_error_message());
           } else {
               $keys = json_decode( $response['body'] );
           }
       ```
   
 * or something like that?
 * Thanks!
 * [https://wordpress.org/plugins/ozh-tweet-archiver/](https://wordpress.org/plugins/ozh-tweet-archiver/)

The topic ‘WP Error issue’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/ozh-tweet-archiver_b0cbc5.svg)
 * [Ozh' Tweet Archiver](https://wordpress.org/plugins/ozh-tweet-archiver/)
 * [Support Threads](https://wordpress.org/support/plugin/ozh-tweet-archiver/)
 * [Active Topics](https://wordpress.org/support/plugin/ozh-tweet-archiver/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ozh-tweet-archiver/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ozh-tweet-archiver/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Jack Reichert](https://wordpress.org/support/users/jackreichert/)
 * Last activity: [10 years, 8 months ago](https://wordpress.org/support/topic/wp-error-issue/)
 * Status: not resolved