Duplicated Order Status Change from pending payment to processing
-
On https://crowdyhouse.com/ we currently have an error causing the status of an order changing from pending payment to processing twice on about 80% of our orders. This is causing duplicate order confirmations emails to be sent to our seller, which I believe is causing neither to be sent or turning them both into spam.
I have disable our theme defaulting to storefront and all none essential plugins have been disabled but still the problems exist 80% of times on identical orders.
I have added and extra order note in WC_Order::status_transition() hoping to find the source of the problem.
woocommerce/includes/class-wc-order.php line 338$this->add_order_note( $this->get_id() . “–ORder Info–” . print_r($status_transition, true) . ” Debug trace ” . print_r( wp_debug_backtrace_summary() , true) );
The resulting order notes are as follows;
Order status changed from Pending payment to Processing.
added on October 22, 2018 at 12:01 pm Delete note
Order status changed from Pending payment to Processing.
added on October 22, 2018 at 12:01 pm Delete note
438672–ORder Info–Array
(
[from] => pending
[to] => processing
[note] =>
[manual] =>
)
Debug trace require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/themes/storefront/template-fullwidth.php’), get_template_part, locate_template, load_template, require(‘/themes/storefront/content-page.php’), do_action(‘storefront_page’), WP_Hook->do_action, WP_Hook->apply_filters, storefront_page_content, the_content, apply_filters(‘the_content’), WP_Hook->apply_filters, do_shortcode, preg_replace_callback, do_shortcode_tag, WC_Shortcodes::checkout, WC_Shortcodes::shortcode_wrapper, WC_Shortcode_Checkout::output, WC_Shortcode_Checkout::order_received, wc_get_template, include(‘/plugins/woocommerce/templates/checkout/thankyou.php’), do_action(‘woocommerce_thankyou’), WP_Hook->do_action, WP_Hook->apply_filters, mangopayWCMain->order_received, WC_Order->payment_complete, WC_Order->save, WC_Order->status_transitionadded on October 22, 2018 at 12:01 pm Delete note
438672–ORder Info–Array
(
[from] => pending
[to] => processing
[note] =>
[manual] =>
)
Debug trace require(‘wp-blog-header.php’), wp, WP->main, WP->parse_request, do_action_ref_array, WP_Hook->do_action, WP_Hook->apply_filters, mangopayWCWebHooks->parseRequests, mangopayWCWebHooks->handleRequest, mangopayWCWebHooks->handlePayinSuccess, mangopayWCWebHooks->validate_order, WC_Order->payment_complete, WC_Order->save, WC_Order->status_transitionadded on October 22, 2018 at 12:01 pm Delete note
This problem does not exist on local machine, but does on live and staging website running on a aws ec2 with an elastic load balancer.
Have you seen anything like this before? any ideas? Do you think the mangopay plugin could be the cause of this?
Thanks
Michael Compton
- The topic ‘Duplicated Order Status Change from pending payment to processing’ is closed to new replies.