CRITICAL Uncaught Error when setting order status to ‘Processing’
-
CRITICAL Uncaught Error: Call to a member function get_cart() on null in [...]/plugins/woo-mailerlite/includes/functions.php:1632
Happens when changing an order status to ‘Processing’. Using version 1.7.15.
Looking through the code, it seems to be checking for the cart. In an admin context when you’re processing an order, there is no cart so this seems a bit redundant.
Other info:
WP: 6.1.1
WooCommerce: 7.1.0
Woo MailerLite: 1.7.15
All other plugins disabled.Call stack: woo_ml_get_checkout_data() app/plugins/woo-mailerlite/includes/functions.php:105 woo_ml_process_order_subscription() app/plugins/woo-mailerlite/includes/functions.php:1732 woo_ml_payment_status_processing() app/plugins/woo-mailerlite/includes/hooks.php:120 woo_ml_order_status_change() wp-includes/class-wp-hook.php:310 WP_Hook::apply_filters() wp-includes/class-wp-hook.php:332 WP_Hook::do_action() wp-includes/plugin.php:517 do_action() app/plugins/woocommerce/includes/class-wc-order.php:397 WC_Order::status_transition() app/plugins/woocommerce/includes/class-wc-order.php:245 WC_Order::save() app/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-order-data.php:692 WC_Meta_Box_Order_Data::save() wp-includes/class-wp-hook.php:310 WP_Hook::apply_filters() wp-includes/class-wp-hook.php:332 WP_Hook::do_action() wp-includes/plugin.php:517 do_action() app/plugins/woocommerce/includes/admin/class-wc-admin-meta-boxes.php:277 WC_Admin_Meta_Boxes::save_meta_boxes() wp-includes/class-wp-hook.php:310 WP_Hook::apply_filters() wp-includes/class-wp-hook.php:332 WP_Hook::do_action() wp-includes/plugin.php:517 do_action() wp-includes/post.php:4717 wp_insert_post() wp-includes/post.php:4819 wp_update_post() wp-admin/includes/post.php:426 edit_post() wp-admin/post.php:227
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘CRITICAL Uncaught Error when setting order status to ‘Processing’’ is closed to new replies.