Updated
The short answer
“There was an error processing your order” is WooCommerce's generic message: the order request failed, and the answer carried no explanation it could show. The usual reasons:
- a PHP fatal error or notice while the order was being created — often in a plugin hooked into checkout;
- a payment gateway that errored, timed out or was refused by its provider;
- a firewall, security plugin or CDN rule that blocked the order request;
- a cached checkout page with an expired session.
Open the browser's Network tab, place the order again and read the response to the order request. Then check WooCommerce → Status → Logs. Between them they name the cause.
Where the message comes from
When a shopper presses Place order, the checkout sends the form to your server and waits for an answer in a fixed format: success with an address to go to, or failure with a message to show. If the answer is a failure with no message, isn't in that format at all, or never arrives, the checkout has nothing specific to say — so it shows its fallback.
The wording depends on your WooCommerce version and payment plugin. Recent versions add a line asking the shopper to check for charges and review their order history before ordering again; some gateways and older versions end with “Please try again.” The block checkout words its errors differently, but the method below works for both.
If the button does nothing at all, with no message, that is a different fault — read Place order button not working.
First, check nobody was charged twice
The message doesn't mean the payment failed. A gateway can take the money and the error happen afterwards, while WooCommerce reduces stock, sends emails or runs another plugin's code. Before telling a shopper to try again, search WooCommerce → Orders for their email and the gateway's dashboard for their payment. An order left on Pending payment with a captured payment is covered in orders stuck on Pending payment.
How to find the real error
- Reproduce it with the developer tools open. In a private window, add a product, fill the checkout, open the developer tools (right-click → Inspect) on the Network tab, and press Place order.
- Find the order request. On the classic checkout it is
?wc-ajax=checkout; on the block checkout,/wp-json/wc/store/v1/checkout. Read its status and its Response tab. - Read what came back.
500, or an HTML page saying a critical error occurred — a PHP fatal error. The log names the file.200, but a PHP Warning, Notice or Deprecated line printed before the JSON — PHP messages are being shown on screen. SetWP_DEBUG_DISPLAYtofalseand fix the notice.403, or a page from your host or CDN — a firewall or security rule blocked the request.502,504or a request that ends with no response — a timeout, usually a gateway or another external service that answered too slowly.{"result":"failure"}with no messages — a plugin rejected the order without saying why.
- Read the logs. Under WooCommerce → Status → Logs, open the
fatal-errorslog and your gateway's log (many gateways only write one with debug logging switched on). WithWP_DEBUG_LOGon, warnings and notices go towp-content/debug.logtoo — how to turn it on safely and read it. - Isolate a plugin if the logs are silent. The Health Check & Troubleshooting plugin switches off plugins and the theme for your browser only. Place a test order with only WooCommerce and the gateway active, then add the rest back one at a time.
The usual causes, and the fix for each
- A plugin that runs during checkout — invoicing, shipping labels, CRM sync, stock sync — throws a fatal error. Update it, roll it back, or ask its author with the log line in hand. It often starts after an update.
- The payment gateway: expired or rotated API keys, test keys on a live store, a provider's request that times out, or a currency or country the account doesn't support. The gateway log says which.
- PHP output in the response. A notice printed on screen breaks the answer the checkout expects. Common after a PHP version upgrade.
- A firewall or security plugin that flags the order request — a rule update, a country block, or a rate limit set too tight.
- Server limits — memory exhausted or a maximum execution time reached while the order is created. The fatal error log names the limit.
- Caching of the cart or checkout page, which hands shoppers an expired session and security token. Exclude cart, checkout and my-account from page caching.
If the error only appears for some shoppers, it may be caught by your gateway's risk rules rather than your store — and a sudden wave of failed checkouts from strangers can be bots: see card testing attacks.
Seeing it in StorePilot
Shoppers who meet this message rarely write in; they try once more and leave. StorePilot shows you the error behind it without waiting for a complaint:
- PHP and JavaScript errors are grouped into issues, with how many visits by people they reached. On the classic checkout, a PHP fault raised while an order was being placed is linked to that checkout's visit, so you can open the replay.
- The steps before the error list the requests the page made to your own site — with their status and WooCommerce's
wc-ajaxroute — and the clicks on the way in. - A new-error alert by email, Slack, Telegram or webhook says how many people met it, and — when the fault was on the checkout and the visit left an unpaid basket — the money at risk.
- The Checkouts tab separates shoppers who were blocked by an error on the checkout page from those who changed their mind.
Install the WordPress plugin — no theme or code changes — or see how error tracking works and read about error tracking in the docs.
Before you call it fixed
- A test order goes through as a logged-out shopper with every payment method.
- The order request answers with clean JSON — no PHP lines before it.
- No new entries in the fatal-errors log or the gateway's log.
- Shoppers who saw the error have been checked for duplicate or orphaned payments.

