URGENT - Woocommerce Checkout Page Failing To Submit Orders

Hi,

I have an urgent problem. The Checkout page of one of my websites is no longer working. The last successful order was 15 hours ago.

The checkout form is completed correctly and the “accept terms” checkbox is clicked. However, upon submission, the page scrolls to the top saying “Error processing checkout. Please try again.”

In Chrome’s inspector Console, I can see the error in the screenshot below:


There is a second error I have found. None of the Woocommerce Checkout, Basket or My Account Layouts render correctly on the front end, yet are fine in Cornerstone. I have also notices that they appear in the “Singles” sections, rather than the “Woocommerce Singles”. Recreating these three pages as Wocommerce Singles resolves the layout issue, but not the ability to checkout.

All of these pages were working fine yesterday. I have disabled the cache and tried testing for plugin conflicts, but the problem persists.

Are you able to help resolve the checkout issue, please?

Thanks,
Christopher

What errors are the server giving you? It’s a critical error, turning on WP_DEBUG can also give you a more dedicated message in the network tab of the developer tools. You do not need to enter anything in the form to receive the error.

Hi @charlie,

Not sure how to get server errors?

Debug log gives the following details (in secure note)

Thanks,
Christopher

None of those would be a critical error. Is everything all good with the paypal?

Server errors would be around /var/log/apache/error.log for apache.

@charlie, All seems fine with PayPal - the same account is being used by a separate website and is working fine.

No luck with the logs. I am on a cPanel and suspect the server logs are outside my reach?

The weird thing is that all worked successfully just yesterday evening and there have been no updates (plugins, WP, theme) in the period between the successful transaction and the fault being first noticed.

@charlie - Please forget parts of the last post - error log found!

Here is the fatal error (secure note)

1 Like

Okay disabling woo checkout editor will disable that issue. This has to do with billing states and countries so I’d also update Woo commerce in the future if this persists. I’ll fix the possibility of error here and we can proceed there if there is an issue with your woocommerce data. I did not get a 500 when I disabled the editor.

@charlie, as ever, you are a genius!

Bizarrely though, Woo Checkout Editor is active on a few other eCommerce websites and they do not seem to be affected.

I am glad you have caught it. Would you be kind enough to add a final reply to this post when Woo Checkout Editor is updated and fixed?

Many thanks and Happy New Year!
Christopher

1 Like

Thanks a bunch and will do on the update! If you have other sites working I’d say there is something up with your woocommerce data. If that’s the case I’d start with deleting the woocommerce plugin folder and reuploading, but I’d wait to do that unless you have another issue with checkout not caused by checkout editor.

We also haven’t updated this plugin in a long while so conversely a new change in the woo api might be changing the expected results we are expecting.

Happy new year!

Checkout editor 2.2.2 should be available within the day which fixes this issue. I would recommend you check that everything is good in the WooCommerce end. This issue would only happen if you had no country or state data for the default billing_country.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.