• Resolved jpegtobbe

    (@jpegtobbe)


    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

Viewing 2 replies - 1 through 2 (of 2 total)
  • kursora

    (@kursora)

    Some plugin is not updated to work porperly with WooCommerce 3.x. (WC_Gateway_Klarna_Order?)

    Thread Starter jpegtobbe

    (@jpegtobbe)

    Ok thank you. I’ll let Klarna know about their plugin.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Payment_method was called incorrectly’ is closed to new replies.