Payment_method was called incorrectly
-
I noticed a couple of errors in my apache error-log. Is it WooCommerce that does something wrong or is it the Klarna payment plugin?
The problem seams to be when you mark an order as complete with the quick “complete button” on the order on the orders listing page “edit.php?post_type=shop_order”.[Mon Jul 17 15:48:21.786182 2017] [:error] [pid 14305] [client xxx.xxx.xxx.xxx:41636] payment_method was called incorrectly. Order properties should not be accessed directly. Backtrace: do_action(‘wp_ajax_woocommerce_mark_order_status’), WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::mark_order_status, WC_Order->update_status, WC_Order->save, WC_Order->status_transition, do_action(‘woocommerce_order_status_completed’), WP_Hook->do_action, WP_Hook->apply_filters, WC_Gateway_Klarna_Order->activate_klarna_order, WC_Gateway_Klarna_Order->get_order_payment_method, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong. This message was added in version 3.0., referer: http://www.xxxxxxxx.xxx/wp-admin/edit.php?post_type=shop_order
Woocommerce 3.0.9
The topic ‘Payment_method was called incorrectly’ is closed to new replies.