Uncaught Error: Call to a member function get_data() on bool
-
One of our sites are experiencing an error when changing a Woocommerce Order to Processing
This is the whole error message:
Line 428
Message Uncaught Error: Call to a member function get_data() on bool in /nas/content/staging/shadepro1/wp-content/plugins/refersion-for-woocommerce/class.refersion.php:428 Stack trace: #0 /nas/content/staging/shadepro1/wp-content/plugins/refersion-for-woocommerce/class.refersion.php(593): Refersion::refersion_woocommerce_send_order(51348) #1 /nas/content/staging/shadepro1/wp-includes/class-wp-hook.php(289): Refersion::refersion_woocommerce_order_status_processing(51348) #2 /nas/content/staging/shadepro1/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(”, Array) #3 /nas/content/staging/shadepro1/wp-includes/plugin.php(478): WP_Hook->do_action(Array) #4 /nas/content/staging/shadepro1/wp-content/plugins/woocommerce/includes/class-wc-order.php(363): do_action(‘woocommerce_ord…’, 51348, Object(Automattic\WooCommerce\Admin\Overrides\Order)) #5 /nas/content/staging/shadepro1/wp-content/plugins/woocommerce/includes/class-wc-order.php(221): WC_Order->status_transition() #6 /nas/content/staging/shadepro1/wp-conten
File /nas/content/staging/shadepro1/wp-content/plugins/refersion-for-woocommerce/class.refersion.php
For now I’ve added a temporary fix that checks if the item data is bool:
if(!is_bool($item_data)){ //do stuff here}I hope you could look into this and let us know if you need more info regarding the issue. Thank you!
The topic ‘Uncaught Error: Call to a member function get_data() on bool’ is closed to new replies.