Title: Error
Last modified: August 7, 2019

---

# Error

 *  [Achiles](https://wordpress.org/support/users/carcanha/)
 * (@carcanha)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/error-1232/)
 * Hello, the plugin is giving an error a few times. And in this error the site 
   goes offline for a few seconds / minutes.
    Follows the error report
 * An error of type E_ERROR was caused at line 145 of file /var/www/html/wp-content/
   plugins/referralcandy-for-woocommerce/includes/class-rc-order.php. Error Message:
   Uncaught Error: Cannot use object of type WP_Error as array in /var/www/html/
   wp-content/plugins/referralcandy-for-woocommerce/includes/class-rc-order.php:
   145
    Stack trace: #0 /var/www/html/wp-content/plugins/referralcandy-for-woocommerce/
   includes/class-wc-referralcandy-integration.php(133): RC_Order->submit_purchase()#
   1 /var/www/html/wp-includes/class-wp-hook.php(288): WC_Referralcandy_Integration-
   >rc_submit_purchase(2459) #2 /var/www/html/wp-includes/class-wp-hook.php(310):
   WP_Hook->apply_filters(NULL, Array) #3 /var/www/html/wp-includes/plugin.php(465):
   WP_Hook->do_action(Array) #4 /var/www/html/wp-content/plugins/woocommerce/includes/
   class-wc-order.php(360): do_action(‘woocommerce_ord…’, 2459, Object(WC_Order))#
   5 /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-order.php(230):
   WC_Order->status_transition() #6 /var/www/html/wp-content/plugins/woocommerce/
   includes/admin/meta-boxes/class-wc-meta-box-order-data.php(620): WC_Order->save()#
   7 /var/www/html/wp-includes/class-wp-hook.php(286): WC_
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ferror-1232%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  [CSE Jason](https://wordpress.org/support/users/jasonnrc/)
 * (@jasonnrc)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/error-1232/#post-11811104)
 * hey there [@carcanha](https://wordpress.org/support/users/carcanha/)
 * thank you for contacting us and raising this. we’ve received a support ticket
   as well for this issue. could you try using this unreleased update in the meantime?
   
   [https://github.com/ReferralCandy/woocommerce-referralcandy/tree/jasonn/update-logging-function](https://github.com/ReferralCandy/woocommerce-referralcandy/tree/jasonn/update-logging-function)
 * if this fixes your issue, i’ll publish the update to the store. 🙂

Viewing 1 replies (of 1 total)

The topic ‘Error’ is closed to new replies.

 * ![](https://ps.w.org/referralcandy-for-woocommerce/assets/icon-128x128.png?rev
   =3475696)
 * [ReferralCandy for WooCommerce – Advanced Referral & Affiliate Program](https://wordpress.org/plugins/referralcandy-for-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/referralcandy-for-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/referralcandy-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/referralcandy-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/referralcandy-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/referralcandy-for-woocommerce/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [CSE Jason](https://wordpress.org/support/users/jasonnrc/)
 * Last activity: [6 years, 9 months ago](https://wordpress.org/support/topic/error-1232/#post-11811104)
 * Status: not resolved