Title: PHP Fatal error: Uncaught Error
Last modified: May 2, 2018

---

# PHP Fatal error: Uncaught Error

 *  Resolved [HDcms](https://wordpress.org/support/users/hdcms/)
 * (@hdcms)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/php-fatal-error-uncaught-error-5/)
 * Hello
    You have resolved a problem reported several weeks ago. Unfortunately 
   after the update I always have a message:
 *     ```
       [01-May-2018 21:26:32 UTC] PHP Fatal error:  Uncaught Error: Cannot use object of type WP_Error as array in /home/./wp-content/plugins/backwpup/inc/class-cron.php:142
       Stack trace:
       #0 /home/./wp-includes/class-wp-hook.php(286): BackWPup_Cron::update_message()
       #1 /home/./wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters('', Array)
       #2 /home/./wp-includes/plugin.php(515): WP_Hook->do_action(Array)
       #3 /home/./wp-cron.php(126): do_action_ref_array('backwpup_update...', Array)
       #4 {main}
         thrown in /home/./wp-content/plugins/backwpup/inc/class-cron.php on line 142
       ```
   
 * is there a link to the php environment?
    I am in PHP-FPM with php 7.0 Regards
    -  This topic was modified 8 years, 1 month ago by [HDcms](https://wordpress.org/support/users/hdcms/).

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

 *  [happyAnt](https://wordpress.org/support/users/duongcuong96/)
 * (@duongcuong96)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/php-fatal-error-uncaught-error-5/#post-10239611)
 * [@hdcms](https://wordpress.org/support/users/hdcms/)
    Sorry that was our mistake,
   this problem will be fixed in the next 3.5 release 🙂 For now, could you please
   modify **backwpup/inc/class-cron.php**, line 142 from:
 * `if ( isset( $api_response ) && $api_response['response']['code'] === 200 ) {`
 * to
 * `if (isset( $api_response ) && is_array($api_response) && $api_response['response']['
   code'] === 200 ) {`
 * After that, is the problem got resolved ?
    Thanks!
 *  [happyAnt](https://wordpress.org/support/users/duongcuong96/)
 * (@duongcuong96)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/php-fatal-error-uncaught-error-5/#post-10255244)
 * [@hdcms](https://wordpress.org/support/users/hdcms/)
    since we haven’t heard 
   back from you, I’m going to mark it as resolved. If you’re still having problems,
   feel free to let us know ;),
 * Btw, If you find BackWPUp is useful for you, we would really appreciate if you
   leave a positive review and rating.
    This would encourage us to develop new free
   features and provide free support 😀 [https://wordpress.org/support/plugin/backwpup/reviews/](https://wordpress.org/support/plugin/backwpup/reviews/)

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

The topic ‘PHP Fatal error: Uncaught Error’ is closed to new replies.

 * ![](https://ps.w.org/backwpup/assets/icon-256x256.png?rev=3236141)
 * [BackWPup – WordPress Backup & Restore Plugin](https://wordpress.org/plugins/backwpup/)
 * [Support Threads](https://wordpress.org/support/plugin/backwpup/)
 * [Active Topics](https://wordpress.org/support/plugin/backwpup/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/backwpup/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/backwpup/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [happyAnt](https://wordpress.org/support/users/duongcuong96/)
 * Last activity: [8 years, 1 month ago](https://wordpress.org/support/topic/php-fatal-error-uncaught-error-5/#post-10255244)
 * Status: resolved