• Hi guys,

    Thanks for the great plugin.

    We get an error when the product is out of stock and trying to change the order status.

    I think the plugin needs a condition to make sure the product is there. Here is the log.

    [21-Nov-2022 14:10:26 UTC] PHP Fatal error:  Uncaught Error: Call to a member function get_name() on bool in wp-content/plugins/wp-activity-log-for-woocommerce/wp-security-audit-log/custom-sensors/WSAL_Sensors_WooCommerce.php:3467
    Stack trace:
    #0 wp-includes/class-wp-hook.php(308): WSAL_Sensors_WooCommerce->event_order_items_removed(98625)
    #1 wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters('', Array)
    #2 wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #3 wp-content/plugins/woocommerce/includes/data-stores/abstract-wc-order-item-type-data-store.php(104): do_action('woocommerce_bef...', 98625)
    #4 wp-content/plugins/woocommerce/includes/class-wc-data-store.php(190): Abstract_WC_Order_Item_Type_Data_Store->delete(Object(WC_Order_Item_Product), Array)
    #5 wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-data.php(189): WC_Data_Store->delete(Object(WC_Order_Item_Product), Array)
    #6 wp-content/plugins/woocommerce/includes/admin/wc-admin-functions.php(308): WC_Data->delete()
    #7 wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-order-items.php(54): wc_save_order_items(220536, Array)
    #8 wp-includes/class-wp-hook.php(310): WC_Meta_Box_Order_Items::save(220536)
    #9 wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array)
    #10 wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #11 wp-content/plugins/woocommerce/includes/admin/class-wc-admin-meta-boxes.php(269): do_action('woocommerce_pro...', 220536, Object(WP_Post))
    #12 wp-includes/class-wp-hook.php(310): WC_Admin_Meta_Boxes->save_meta_boxes(220536, Object(WP_Post))
    #13 wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters('', Array)
    #14 wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #15 wp-includes/post.php(4717): do_action('save_post', 220536, Object(WP_Post), true)
    #16 wp-includes/post.php(4819): wp_insert_post(Array, false, true)
    #17 wp-admin/includes/post.php(426): wp_update_post(Array)
    #18 wp-admin/post.php(227): edit_post()
    #19 {main}
      thrown in wp-content/plugins/wp-activity-log-for-woocommerce/wp-security-audit-log/custom-sensors/WSAL_Sensors_WooCommerce.php on line 3467

    Best regards,
    Spyros

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support robertabela

    (@robert681)

    Hello @spyrosvl

    Thank you for using our plugin.

    I am sorry to read about your issue. We are looking into this today and we’ll let you know as soon as we have an update. We’ll send you a patch for this once we have a fix.

    Thank you for your patience.

    Plugin Support robertabela

    (@robert681)

    Hello @spyrosvl

    We have tested this in a WordPress / WooCommerce / WP Activity Log vanilla environment but we are not able to reproduce the issue.

    Would you be able to give us more details on how to exactly reproduce it? For example;

    1) When you change the order status do you have third party plugins / extensions that automatically change something else in WooCommerce, like the stock of a product?

    2) Can you please confirm what versions of WordPress, WP Activity Log, WooCommerce are you using?

    3) Is this a new install and you encountered this issue, or you have been using this extension and this started happening since the last upgrade?

    The more information you can share with us about the setup and how to reproduce this the better we can understand the context of the problem. Please do not share any technical sensitive information. If you need to do so, please send it over email at [email protected].

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Fatal error on updating order status’ is closed to new replies.