On my WooCommerce store, clicking Place Order spins forever or shows "Sorry, there was an error processing your order". It worked last week. Where do I start?
#woocommerce#checkout#debugging
DEV3 Developer Forum
Every post is reviewed first. Usually reviewed within 24 hours.
On my WooCommerce store, clicking Place Order spins forever or shows "Sorry, there was an error processing your order". It worked last week. Where do I start?
#woocommerce#checkout#debugging
Checkout is an AJAX call to ?wc-ajax=checkout. Find out what that request returns.
1. Look at the response. Open browser DevTools > Network, click Place Order, and select the checkout request. (If your checkout page uses the Checkout block, the request is wc/store/v1/checkout instead.) A JSON response with an error message is a validation or gateway problem. HTML, a 500 or 403 means a server or security layer issue.
2. Check the logs. WooCommerce > Status > Logs lists fatal-errors and gateway logs. Also read wp-content/debug.log (see the white screen topic).
3. Isolate conflicts. Use Health Check & Troubleshooting to disable all plugins except WooCommerce and your gateway for your user only, with a default theme. Re-enable one by one.
4. Common causes
[woocommerce_checkout] (or the Checkout block) or pages unassigned in WooCommerce > Settings > Advanced.5. Test in a clean flow. Use a gateway sandbox, and check that WP-Cron works, because order status updates often depend on it.
Document what the network response says before changing settings; it almost always points to the cause.