So for our understanding, did something change? I know we had updated some plugins earlier this week but I didn’t expect any issues to arise around those updates.
The issues was caused by the update of WooCommerce or any other plugin related to it. We fixed that and we will take care to add the fix in the next upcoming update.
I replaced the wp-content/themes/bakery/includes/wc-addons/actions.php file with the file you provided and things worked for the next several days. Then, today, we had another failed order, again with the same message in the Order Notes:
Square Payment Failed (Status code BAD_REQUEST: INTENT_MISMATCH) Order status changed from Pending payment to Failed.
No plugins have been updated/added since this was done. Can you assist?
Can you please provide us your WP login details (make sure to reply privately) or at least provide us a screenshot of the debug log of that day from WooCommerce > Status > Logs.
Today our WooCommerce enabled site, https://mealprepsolutions.com, which uses the Bakery theme starting failing on order payment.
Reviewing the orders inside WooCommerce, we found the following entry in the notes of the orders:
>>Square Payment Failed (Status code BAD_REQUEST: INTENT_MISMATCH) Order status changed from Pending payment to Failed.
Reviewing the WooCommerce Status Log, we found this:
2020-02-04T18:52:27+00:00 CRITICAL Uncaught Error: Call to a member function get_cart_contents_count() on null in /nas/content/live/mitchellhein25/wp-content/themes/bakery/includes/wc-addons/actions.php:108 Stack trace: #0 /nas/content/live/mitchellhein25/wp-includes/class-wp-hook.php(288): Bakery_WC_Actions->bakery_wc_show_responsive_basket_icon('') #1 /nas/content/live/mitchellhein25/wp-includes/class-wp-hook.php(312): WP_Hook->apply_filters('', Array) #2 /nas/content/live/mitchellhein25/wp-includes/plugin.php(478): WP_Hook->do_action(Array) #3 /nas/content/live/mitchellhein25/wp-content/themes/bakery/header.php(187): do_action('bakery_wc_show_...') #4 /nas/content/live/mitchellhein25/wp-includes/template.php(722): require_once('/nas/content/li...') #5 /nas/content/live/mitchellhein25/wp-includes/template.php(671): load_template('/nas/content/li...', true) #6 /nas/content/live/mitchellhein25/wp-includes/general-template.php(41): locate_template(Array, true) #7 /nas/content/live/mitchellhein25/wp-content/themes/bakery/404.php(1): get_header() in /nas/content/live/mitchellhein25/wp-content/themes/bakery/includes/wc-addons/actions.php on line 108Can you help us in troubleshooting and ultimately solving this issue?
Thank You,
Bruce Caraway
832-465-6061
Hi Bruce,
In order to fix that please try to replace wp-content/themes/bakery/includes/wc-addons/actions.php file with this file.
Kind regards,
Milingona Support
Follow on
Envato
Facebook
Twitter
So for our understanding, did something change? I know we had updated some plugins earlier this week but I didn’t expect any issues to arise around those updates.
Thanks in advance,
Bruce
Hi Bruce,
The issues was caused by the update of WooCommerce or any other plugin related to it. We fixed that and we will take care to add the fix in the next upcoming update.
Best regards,
Milingona Support
Follow on
Envato
Facebook
Twitter
I replaced the wp-content/themes/bakery/includes/wc-addons/actions.php file with the file you provided and things worked for the next several days. Then, today, we had another failed order, again with the same message in the Order Notes:
Square Payment Failed (Status code BAD_REQUEST: INTENT_MISMATCH) Order status changed from Pending payment to Failed.
No plugins have been updated/added since this was done. Can you assist?
Thanks,
Bruce
832-465-6061
Hi Bruce,
Can you please provide us your WP login details (make sure to reply privately) or at least provide us a screenshot of the debug log of that day from WooCommerce > Status > Logs.
Thanks,
Milingona Support
Follow on
Envato
Facebook
Twitter