• Resolved balvan64

    (@balvan64)


    Hello,

    Version 8.6.0 broke our website, this has never happened to use before with any WooCommerce update.

    The issue occurs when you open an order from the orders list, you get a fatal error.

    18-Feb-2024 13:11:47 UTC] PHP Fatal error:  Uncaught Error: Call to undefined method WC_Order::get_report_customer_id() in /home/aaa/public_html/wp-content/plugins/woocommerce/src/Internal/Admin/Orders/MetaBoxes/CustomerHistory.php:28
    Stack trace:
    #0 /home/aaa/public_html/wp-content/plugins/woocommerce/src/Internal/Admin/Orders/Edit.php(271): Automattic\WooCommerce\Internal\Admin\Orders\MetaBoxes\CustomerHistory->output(Object(WC_Order))
    #1 /home/aaa/public_html/wp-admin/includes/template.php(1456): Automattic\WooCommerce\Internal\Admin\Orders\Edit::Automattic\WooCommerce\Internal\Admin\Orders\{closure}(Object(WP_Post), Array)
    #2 /home/aaa/public_html/wp-admin/edit-form-advanced.php(707): do_meta_boxes(Object(WP_Screen), 'side', Object(WP_Post))
    #3 /home/aaa/public_html/wp-admin/post.php(206): require('/home/japanesek...')
    #4 {main}
      thrown in /home/aaa/public_html/wp-content/plugins/woocommerce/src/Internal/Admin/Orders/MetaBoxes/CustomerHistory.php on line 28

    How can this be resolved? is this support thread monitored by anyone?

    • This topic was modified 1 year ago by balvan64.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Phil

    (@probablynotphil)

    Hey there, @balvan64! Thanks for contacting us.

    is this support thread monitored by anyone?

    Yes, this forum is monitored by WooCommerce Support and we are happy to assist you in any way we can.

    How can this be resolved?

    From what you told us, it seems your website were affected by one of our know issues with 8.6.

    We are working on fixing the issues as soon as possible and thank you for bringing this to our attention.

    If you wish, you can read more about this here.

    Regarding a workaround for the issue, can you please go to WooCommerce > Settings > Advanced > Features and deactivate Order Attribution?

    Please let us know if the issue is not solved after this so we can investigate it further.

    You can find more about this in this guide.

    Have a wonderful day!

    Hello,

    We have Order Attribution disables but we keep seen this error:

    [20-Jun-2024 04:07:06 America/Santiago] PHP Fatal error: Uncaught Error: Call to undefined method WC_Order::get_report_customer_id() in /home/jzv4lkm/public_html/wp-content/plugins/woocommerce/src/Admin/API/Reports/Orders/Stats/DataStore.php:542
    Stack trace: 0 /home/jzv4lkm/public_html/wp-content/plugins/woocommerce/src/Admin/API/Reports/Orders/Stats/DataStore.php(502): Automattic\WooCommerce\Admin\API\Reports\Orders\Stats\DataStore::update() 1 /home/jzv4lkm/public_html/wp-content/plugins/woocommerce-multistore/includes/abstracts/class-wc-multistore-abstract-order-child.php(108): Automattic\WooCommerce\Admin\API\Reports\Orders\Stats\DataStore::sync_order() 2 /home/jzv4lkm/public_html/wp-content/plugins/woocommerce-multistore/includes/ajax/class-wc-multistore-ajax-order-master.php(45): WC_Multistore_Abstract_Order_Child->save() 3 /home/jzv4lkm/public_html/wp-includes/class-wp-hook.php(324): WC_Multistore_Ajax_Order_Master->wc_multistore_import_order() 4 /home/jzv4lkm/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() 5 /home/jzv4lkm/public_html/wp-includes/plugin.php(517): WP_Hook->do_action() 6 /home/jzv4lkm/public_html/wp-admin/admin-ajax.php(207): do_action() 7 {main}

    thrown in /home/jzv4lkm/public_html/wp-content/plugins/woocommerce/src/Admin/API/Reports/Orders/Stats/DataStore.php on line 542

    Hey, @svenms!

    Per WordPress forum guidelines, would you mind opening up a new thread for this so that we can keep things organized and offer more personalized support for you? We’ll be happy to help you out with this over there!

    Have a wonderful day!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Uncaught Error: Call to undefined method WC_Order::get_report_customer_id()’ is closed to new replies.