Fatal error on updating order status
-
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)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Fatal error on updating order status’ is closed to new replies.