The Short Version
- One plugin out of 54 caused it. Checkout on my own store hung for 55 seconds and then threw a 504 error, while add to cart and the cart page worked fine. Testing plugins in halves found a Divi table of contents module, and it was only guilty in combination with one checkout setting.
- Your customers never have to see the testing. The free Health Check plugin can switch plugins off for your logged-in browser only. Everyone else keeps shopping on the real store while you work. Claude ran the whole test overnight while I slept.
- Fix the cause, then clear the cache. The cache had saved a broken, unstyled copy of checkout. Until that page was excluded, the fix looked like it hadn't worked.
Late on a September night, checkout on sitezinc.com stopped working. It sat for 55 seconds and then returned a WooCommerce checkout 504 error, which is the server giving up on a page that took too long. Add to cart worked. The cart page worked. Only checkout died, which is the one page where a stalled customer is a lost sale.
Pin Down Exactly What Is Broken
Before you touch anything, put an item in the cart and time each page of the store. Add to cart was fast for us. So was the cart page. Guest checkout hung 55 seconds every single time. A WooCommerce checkout 504 that hits one page every time, while its neighbors are fine, means something on that page is doing too much work.
Test Plugins Without Your Customers Seeing It
The usual advice is to turn off all your plugins and turn them back on one at a time. On a live store, that's a terrible idea. Your customers get a broken site while you test.
The fix is the free Health Check and Troubleshooting plugin. Its troubleshooting mode disables plugins for your logged-in session only. According to WooCommerce's own guide, you turn it on at Tools > Site Health > Troubleshooting, and your visitors see the site normally the whole time. You then switch plugins back on, for your session only, from the Plugins page.
One warning from that same guide. Troubleshooting mode doesn't put your payment gateways in test mode. If you place an order while testing, the card gets charged for real. Test up to the checkout page and stop there.
Cut the List in Half Until One Plugin Is Left
Don't test 54 plugins one at a time. Test them in halves. Turn on half. If checkout still works, the problem is in the other half. Keep splitting the suspect group until one plugin is left. With 54 plugins that takes at most six rounds instead of 54.
I didn't do this part. I handed it to Claude before bed and told it to work the 504 while I slept. It ran the troubleshooting session in my browser and worked through the plugins. Checkout was fast with only WooCommerce and my Divi child theme. It hung with a Divi table of contents module switched on. With the other 53 on and that one off, it loaded in about five seconds.
Here's why you split instead of guessing. While checkout hung, the slow database queries pointed at a coupon plugin. It looked guilty. The test cleared it. If I'd gone with my gut, I'd have ripped out a working plugin and still had a broken checkout. Handing an AI assistant the boring, methodical part is a good division of labor. It's the same reason I give Claude two tasks a night.
The Plugin Was Not the Bug. The Loop Was.
Finding the plugin is only half the job. Ask why it breaks checkout before you delete it.
A day earlier, the checkout terms checkbox had been pointed at my Terms and Conditions page. That's a normal setting under WooCommerce > Settings > Advanced > Page setup. What most people don't know is that on the classic checkout, WooCommerce prints the terms inline so shoppers can expand and read them right there.
My terms page held that table of contents module. The module builds its contents by rendering the current page. Inside checkout, the current page is checkout. So checkout loaded the terms, the terms rendered checkout, and checkout loaded the terms again. It looped until the server gave up.
Neither piece was broken alone. The combination was. Claude kept the table of contents on the terms page and added a small snippet that stops WooCommerce printing the terms inside checkout. The checkbox and its link to the terms page didn't change.
Clear the Cache That Remembered the Broken Page
Then a second problem showed up. Checkout loaded fast, but unstyled. My cache plugin, LiteSpeed Cache, builds a trimmed stylesheet for each page called unique CSS. It had built checkout's stylesheet from the broken render, so it was missing most of the styles.
The fix was to add /checkout/ to UCSS URI Excludes on LiteSpeed's Tuning CSS tab, which the LiteSpeed documentation describes as the place to exclude pages from that optimization. Checkout now gets the full CSS. If your fix doesn't seem to work, suspect the cache before you suspect the fix.
How to Know the WooCommerce Checkout 504 Is Really Fixed
Load checkout as a guest, not just as yourself, because logged-in admins often skip the cache. Ours now loads in about four seconds as a guest, styled, with Stripe and PayPal showing and the terms checkbox in place. Then turn off troubleshooting mode and check the error log for anything new.
The last step is a real test order, start to finish. Page loads prove the page works. Only a completed payment proves the store works.
If you have a WooCommerce checkout 504 of your own and you'd rather not do this yourself, send me a note. I'll find the one plugin, and I won't take your store down to do it.
Questions I Expect About This
Will troubleshooting a WooCommerce checkout 504 break my live store?
No. Health Check's troubleshooting mode only changes plugins for your own logged-in session, so customers keep seeing the real store. Just don't place an order while testing, because payment gateways stay live and a real card would be charged.
Should I just delete the plugin that caused the 504?
Not until you know why it fails. In my case the plugin was fine on its own and only looped because the terms page was printed inside checkout. Stopping the inline terms fixed checkout and kept the plugin.
Why was checkout still unstyled after the fix?
The cache plugin had saved a trimmed stylesheet built from the broken page. Excluding checkout from LiteSpeed's unique CSS gave it the full styles back.
Sources
- WooCommerce: Troubleshooting using Health Check, for the menu path, the visitor behavior, and the live payment warning
- Health Check and Troubleshooting on WordPress.org, for how troubleshooting mode works
- WooCommerce: Advanced Settings, for the terms page setting and inline terms on classic checkout
- LiteSpeed Cache: Page Optimization, for UCSS URI Excludes




0 Comments