Title: WP_Error on plugin files
Last modified: June 20, 2019

---

# WP_Error on plugin files

 *  Resolved [anjusibi](https://wordpress.org/support/users/anjusibi/)
 * (@anjusibi)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/wp_error-on-plugin-files/)
 * I integrate this module with the woo-commerce, and randomly I got the error after
   update products
    PHP Fatal error: Uncaught Error: Cannot use object of type WP_Error
   as array in /home/../wp-content/plugins/woosquare/_inc/SquareToWooSynchronizer.
   class.php:1310 I added !is_wp_error instead of !empty for ($response[‘response’]))
   but still getting this. The error line changes each time. I couldn’t able to 
   figure out the exact issue because it just happens randomly. Can somebody please
   fix this issue?
    -  This topic was modified 6 years, 11 months ago by [anjusibi](https://wordpress.org/support/users/anjusibi/).

Viewing 1 replies (of 1 total)

 *  Plugin Author [WPExperts.io](https://wordpress.org/support/users/wpexpertsio/)
 * (@wpexpertsio)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/wp_error-on-plugin-files/#post-11992493)
 * Hi [@anjusibi](https://wordpress.org/support/users/anjusibi/),
    You need to add
   products according to the way described in documentation. [https://apiexperts.io/documentation/topics/woosquare/](https://apiexperts.io/documentation/topics/woosquare/)

Viewing 1 replies (of 1 total)

The topic ‘WP_Error on plugin files’ is closed to new replies.

 * ![](https://ps.w.org/woosquare/assets/icon-128x128.gif?rev=3123976)
 * [WC Shop Sync – Square Payment Gateway and Product Synchronization for WooCommerce](https://wordpress.org/plugins/woosquare/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woosquare/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woosquare/)
 * [Active Topics](https://wordpress.org/support/plugin/woosquare/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woosquare/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woosquare/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [WPExperts.io](https://wordpress.org/support/users/wpexpertsio/)
 * Last activity: [6 years, 8 months ago](https://wordpress.org/support/topic/wp_error-on-plugin-files/#post-11992493)
 * Status: resolved