Home / Guides / WordPress handbook / Chapter 17
WordPress handbook · Chapter 17 · Troubleshooting
WooCommerce Operations and Troubleshooting
A store adds money, stock and personal data to everything else in WordPress. Failures cost revenue directly and often silently: a checkout that loads but never completes, renewals that stop, webhooks that fail at 3 a.m. This chapter collects WooCommerce-specific architecture and operating practice in one place.
On this page
How a WooCommerce store fits together
- Products are posts (
product,product_variation) with meta, plus lookup tables for fast filtering. - Orders live in High-Performance Order Storage tables on modern stores (
wc_ordersand related), or in posts/postmeta on legacy stores. Compatibility mode can keep both in sync during migration. - Sessions and carts are stored in
woocommerce_sessionsand identified by a cookie. - Checkout is either the classic shortcode checkout or the block-based Checkout, which uses the Store API. Payment gateways, field editors and checkout plugins must support the one you use.
- Background processing runs through Action Scheduler: emails, webhooks, subscription renewals, analytics imports and data syncs.
- Payments are confirmed by gateway callbacks (webhooks, IPN/ITN) to the store, not only by the customer's browser returning.
Each of these is a point of failure. Most store incidents trace back to caching (sessions), JavaScript optimisation (checkout), firewalls (callbacks) or cron (background jobs).
HPOS and the block checkout: compatibility checks
High-Performance Order Storage stores orders in dedicated tables, making order queries much faster. Extensions that read or write orders directly through post functions, instead of WooCommerce's CRUD APIs, are incompatible. WooCommerce lists incompatible plugins under Settings → Advanced → Features and blocks enabling HPOS while incompatible extensions are active.
- Update all extensions; check the features screen for incompatibility warnings.
- On staging, enable compatibility mode (sync) first, let it finish, switch to HPOS as authoritative, and test order creation, refunds, subscriptions, exports and reports.
- Keep sync on for a period after switching in production so you can switch back if needed; disable it once stable.
Block checkout: confirm every gateway, field customiser, shipping plugin and upsell tool supports it. Unsupported extensions usually show a notice in the editor. If a critical extension does not support it, keep the classic checkout until it does.
Action Scheduler: the store's background engine
Open Tools → Scheduled Actions (or WooCommerce → Status → Scheduled Actions). Healthy stores have few past-due actions and few new failed ones.
| Observation | Meaning | Action |
|---|---|---|
| Many past-due pending actions | The queue is not being processed: WP-Cron not running, loopback blocked, or queue runner overloaded | Set up a system cron; check Site Health loopback; wp action-scheduler run to process manually |
| Many failed actions with the same hook | One extension's job keeps failing | Read the log message on the action; fix or report the extension |
| Millions of completed actions | Retention too long or very busy store | Completed actions are purged after a retention period (filterable); large backlogs can be cleared with care after backup |
| Renewal actions failing | Gateway token problems or errors in the renewal process | Check the subscription notes and gateway logs |
Payments, callbacks and reconciliation
- One plugin per payment provider. Two Stripe or PayPal integrations duplicate buttons and webhooks (Chapter 13).
- Webhooks must reach the store: exempt their endpoints from bot challenges, maintenance mode, staging HTTP auth and aggressive firewall rules; avoid redirects on the callback URL.
- Enable gateway logging while diagnosing, then turn it down (logs can contain personal data).
- Reconcile regularly: compare the provider's dashboard with WooCommerce orders for a day, looking for paid-but-pending orders (callback failures) and orders without payments.
- Test in sandbox after every gateway, WooCommerce or checkout-related update.
- Card testing attacks: see Chapter 05 for controls.
South African stores using Payfast, Yoco and similar local gateways should pay special attention to callback reachability: an ITN or webhook that cannot reach the store leaves orders pending even though the customer has paid.
Updating a store safely
- Read the WooCommerce release notes and developer advisories, especially for major versions with database updates.
- Update on staging with a fresh copy of production; run any database update prompt; test product pages, cart, checkout with each gateway, account pages, emails, refunds, subscriptions and admin order screens.
- Update extensions before or with WooCommerce according to their compatibility notes. Check WooCommerce → Status for outdated template overrides in the theme.
- Schedule the production update in a low-traffic window; take a backup immediately before.
- After updating, run the database update if prompted, clear caches, place a test order and watch logs and Action Scheduler.
Restoring a pre-update database backup on a live store deletes every order placed since. Prefer fixing forward (updating or replacing the broken extension), and if you must restore, export orders created since the backup first.
Store troubleshooting quick reference
| Problem | First checks | See also |
|---|---|---|
| Checkout spinner / not loading | Console errors; optimisation exclusions; WAF events; fatal-errors log | Error encyclopedia |
| Cart empties | Cache headers on cart; session cookie domain; canonical host | Error encyclopedia |
| Paid orders stuck pending | Gateway logs; callback reachability; provider webhook log | Webhook failures |
| No order emails | Email settings; SMTP log; Action Scheduler email actions | Chapter 16 |
| Slow admin order screens | HPOS status; object cache; large meta queries | Chapter 14 |
| Wrong prices or currency | Multi-currency plugin caching mode; geolocation with page cache | Chapter 13 |
| Stock incorrect | Integration logs; stock notes; lookup table regeneration | Error encyclopedia |
| Subscription renewals missed | Cron; scheduled actions; duplicate-site mode | Action Scheduler section above |
Store operations checklist
- Cart, checkout and account excluded from every cache and optimiser; verified with response headers.
- One plugin per payment provider; sandbox test passes for each method.
- Gateway callbacks reach the site; provider dashboard shows successful deliveries.
- System cron runs Action Scheduler; no past-due backlog.
- HPOS status reviewed; extension compatibility confirmed.
- Theme template overrides up to date.
- Transactional email authenticated and logged.
- Daily reconciliation of payments vs orders during busy periods.
- Fraud and card-testing controls enabled.
- Backups frequent enough for your order volume (hourly database backups for busy stores).
Rather have someone else keep WordPress healthy?
Our managed hosting and care plans cover updates, backups, security monitoring and fixes like the ones in this handbook, so you can get on with running the business.
See Hosting & Care