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!
]]>Hello,
I’d like to report a small bug that’s causing PHP warnings when Refersion is set to “No, turn off Refersion reporting”.
On the front-end of my site, I’m getting the warning: “Undefined index: refersion_status” on lines 125 and 150 of /refersion-for-woocommerce/class.refersion.php
https://plugins.trac.www.ads-software.com/browser/refersion-for-woocommerce/trunk/class.refersion.php#L125
https://plugins.trac.www.ads-software.com/browser/refersion-for-woocommerce/trunk/class.refersion.php#L150
This problem only happens when I select “No, turn off Refersion reporting” in the admin panel.
I suspect that it is happening because of the use of !empty()
in the sanitize function on line 241 of class.refersion-admin.php
The select option for “No, turn off Refersion reporting” is zero and the integer zero counts as empty.
I locally changed this !empty()
to isset()
and the zero was correctly saved to the database, so $options['refersion_status']
becomes a defined index.
Thanks!
]]>Will you be updating this plugin seeing it hasn’t been updated in 7 months and WordPress gives me this warning.
Warning: This plugin has not been tested with your current version of WordPress.
]]>How to integrate Woocimmerce refersion plugin and how to work.
]]>It conflicts with WooCommerce 3.0, and especially when there are downloadable products.
If a downloadable product is purchased and Refersion plugin is activated, then the
downloadable file is not attached to the order.
An update that fixes that would be good.
This plugin does not work with latest woocommerce version.
https://www.ads-software.com/plugins/refersion-for-woocommerce/
]]>