Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Order confirmation page blank or showing errors: how to fix it

CNV-218High impactDetectedBy FunnelGuardPublished Updated
On this page

What this issue is

The order confirmation page (also called the thank you or order received page) is what a customer sees right after paying. It should show the order number, items and next steps. This issue means that page loads blank (a white screen), shows an error such as 404, 500 or a plugin message, or hangs on a spinner, even though the payment may have gone through.

Why it costs you leads or sales

Where the journey breaks
  1. CartCustomer adds items
  2. Checkout and paymentCard charged
  3. Confirmation pageBlank or error
  4. Purchase trackingTags never load
  5. Confidence and repeat ordersCustomer unsure it worked

The payment succeeds, but the confirmation page fails, so everything after it is lost.

Purchases recorded vs real ordersExample numbers
Purchases recorded vs real orders (example)Real orders: 100 orders per week; Recorded with broken page: 60 orders per week; Recorded after fix: 100 orders per week0387710060100Real ordersRecorded with broken …Recorded after fixorders per week

Example: 100 real orders, but the broken page stops the purchase tag on a share of them, so reports undercount.

How to check if your site has it

Check the confirmation page
  1. Place a test order

    Use your store's test mode or a cheap test product with a payment method you can refund. Do the whole journey, including any bank or wallet redirect.

  2. Watch what loads

    Note whether the page is blank, shows an error, or redirects somewhere else. Check the order number is visible.

  3. Open the browser console and Network tab

    Press F12. Look for red JavaScript errors and for requests with a 4xx or 5xx status. Check the main document status code.

  4. Check server logs

    A blank white page is often a PHP fatal error. Look in your host's error log or WordPress debug.log for entries at the time of the order.

  5. Test other payment methods and devices

    Try PayPal, Apple Pay, bank redirect and a mobile browser. The failing one often points to the cause.

What each symptom usually means
SymptomLikely causeWhere to look
White screen, no contentPHP fatal error or a script crashServer error log, debug.log
404 pageGateway return URL wrong or page deleted or permalink issuePayment gateway settings, permalinks
500 errorPlugin or theme conflict, memory limitServer log, disable plugins
Spinner never endsBlocked or failing script or API callConsole and Network tab
Page loads but empty order detailsCached page or missing order keyCache rules, URL parameters

How to fix it

Fix by platform
  1. Turn on debug logging

    In wp-config.php set WP_DEBUG and WP_DEBUG_LOG to true and WP_DEBUG_DISPLAY to false, place a test order, then read wp-content/debug.log for the fatal error.

  2. Check the Order received page

    In WooCommerce, go to Settings > Advanced and confirm the Checkout endpoints (Order received) are set. Make sure the Checkout page contains the [woocommerce_checkout] shortcode or block.

  3. Exclude checkout pages from cache

    In your caching plugin and host cache, exclude the checkout, cart and order-received URLs (/checkout/, /checkout/order-received/*).

  4. Rule out conflicts

    Switch to a default theme and disable plugins other than WooCommerce and your payment gateway, then re-enable them one by one.

  5. Resave permalinks

    Go to Settings > Permalinks and click Save Changes to refresh rewrite rules if the page returns 404.

WordPress: log errors without showing them to customers (wp-config.php)php
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );
Confirmation page before and after

Broken

  • Blank page or error after payment
  • No order number shown
  • Purchase tags do not fire
  • Customers email support or pay twice

Fixed

  • Page loads with order number and items
  • Clear next steps shown
  • Purchase tags fire once
  • Fewer support tickets

How to confirm it's fixed

Confirmation checks
  • A test order ends on a page that loads fully with the order number
  • The page returns a 200 status in the Network tab
  • No red errors in the browser console
  • Every payment method you offer lands on the page
  • It works on mobile and desktop
  • The purchase event shows once in GA4 DebugView or your ad platform's test tool
  • Reloading the page does not show an error

How to prevent it happening again

Prevention habits
  • Test a full order on staging before updating checkout-related plugins or themes
  • Add new scripts to the confirmation page one at a time
  • Keep checkout and order-received URLs out of page caches
  • Review payment gateway return URLs after any domain or permalink change
  • Run a scheduled test purchase so a break is caught within a day, not by a customer
How an unnoticed break unfolds
  1. Day 0

    A plugin update introduces an error on the order page

  2. Day 0

    Customers pay and see a white screen

  3. Day 1

    Support emails ask if orders went through

  4. Day 3

    Ad reports show fewer sales than your store

  5. Day 3

    Cause found and update rolled back

How FunnelGuard handles this

Questions people ask

Why is my order confirmation page blank after payment?

A blank page is most often a PHP fatal error or a JavaScript crash caused by a plugin, theme or custom script on that page. Check your server error log (or WordPress debug.log) at the time of a test order, then disable recent plugins or scripts one by one to find the culprit.

Why does my thank you page show a 404 after checkout?

The payment gateway is probably sending customers to a URL that no longer exists. Check the success or return URL in your gateway settings, confirm the page is published, and on WordPress resave permalinks under Settings > Permalinks.

If the confirmation page is broken, did the customer still pay?

Often yes. The payment usually completes on the provider's side before the redirect. Check your orders list and payment dashboard rather than assuming the order failed, and email affected customers to confirm.

How do I fix the WooCommerce order received page being blank?

Turn on WP_DEBUG_LOG, place a test order and read wp-content/debug.log for the fatal error. Also exclude the checkout and order-received URLs from caching, and test with a default theme and only WooCommerce plus your gateway active.

Can a tracking script break the order confirmation page?

Yes. A faulty custom HTML tag in Google Tag Manager, a pixel or a survey app can throw an error that stops the page from rendering. Pause those scripts one at a time in preview mode and re-test.

Why does the confirmation page only fail for some payment methods?

Methods that redirect away from your site, such as PayPal or bank transfers, rely on a return URL and order key. If that URL is wrong or gets altered by a redirect or cache rule, only those customers see the error. Test each method separately.

How can I monitor my order confirmation page automatically?

Use synthetic monitoring that runs a test purchase on a schedule and checks the confirmation page. FunnelGuard does this after the test purchase step and alerts you with a screenshot if the page is blank or errors, provided your store's test mode is set up.

Does FunnelGuard catch this?

Detected

FunnelGuard checks for this today.

How: assert after test purchase.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.