• Resolved greencode

    (@greencode)


    Hi. I get this in my error log for every order. Can you please let me know what can be done.

    [12-Aug-2021 09:58:03 UTC] payment_method_title was called incorrectly. Order properties should not be accessed directly. Backtrace: require('wp-blog-header.php'), wp, WP->main, WP->parse_request, do_action_ref_array('parse_request'), WP_Hook->do_action, WP_Hook->apply_filters, rest_api_loaded, WP_REST_Server->serve_request, WP_REST_Server->dispatch, WP_REST_Server->respond_to_request, FooSales_REST_API->fsfwc_rest_callback_create_order, fsfwc_do_create_new_order, WC_Order->save, WC_Order->status_transition, do_action('woocommerce_order_status_pending_to_completed'), WP_Hook->do_action, WP_Hook->apply_filters, WC_Emails::send_transactional_email, do_action_ref_array('woocommerce_order_status_pending_to_completed_notification'), WP_Hook->do_action, WP_Hook->apply_filters, WC_Email_New_Order->trigger, WC_Email->get_content, WC_Email_New_Order->get_content_html, wc_get_template_html, wc_get_template, include('/plugins/woocommerce/templates/emails/admin-new-order.php'), do_action('woocommerce_email_order_details'), WP_Hook->do_action, WP_Hook->apply_filters, WC_Emails->order_details, wc_get_template, include('/plugins/woocommerce/templates/emails/email-order-details.php'), do_action('woocommerce_email_after_order_table'), WP_Hook->do_action, WP_Hook->apply_filters, add_payment_method_to_admin_new_order, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong. This message was added in version 3.0.

Viewing 1 replies (of 1 total)
  • Plugin Author FooSales

    (@foosales)

    Hi @greencode, thanks for bringing this to our attention.

    I can’t seem to replicate this error in my test environments. Would it be possible to submit this report as a ticket and include your sites WooCommerce status report – https://help.foosales.com/contact/support/

    Please also confirm your payment method settings and any other information that might be useful.

    Thanks in advance.

Viewing 1 replies (of 1 total)

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