Endless loading/spinner on the checkout page

The ‘review order’ page loads the payment methods/totals via ajax – this display a loading spinner briefly. If there are problems, this section may fail to load or the spinner may remain.

First you should check WooCommerce > System Status for errors – often errors will be highlighted.

Still having problems? Common causes and resolutions are listed below.

AJAX error due to WordPress settings.

The URL’s in Settings > General need to match – this is because AJAX requests don’t work across different domains:

Other JavaScript errors and conflicts

Themes and plugins can often cause problems (especially poorly coded ones!) with JavaScript. To check for errors use your browser’s error console.

Invalid Response from an AJAX Call

View the XHR tab on your browser’s developer console and look at the response. The expected response would be JSON. If the response is HTML this can be caused by a couple of different things. Oftentimes this is caused by an index.html file in the root directory of the WordPress installation

This can be resolved by either removing the index.html file or by adjusting the indexes directive on the server configuration and prioritizing index.php over index.html. Some caching plugins will also prepend HTML to the JSON response.

You may also see a response of -1, This is a security failure and is caused by a cached nonce.

You can also check for conflicts by turning off other plugins and switching to the default WordPress theme – this will often reveal the problem.

Did you find this article useful?

  • Server Recommendations

    The first step in setting up your WooCommerce-powered online store is to install WordPress and the WooCommerce plugin itself. But before doing so, you...

  • Installing WooCommerce

    If you have an existing site and want to install WooCommerce, using the WordPress Admin is the most straightforward option as it handles everything fo...

  • Uninstalling WooCommerce

    There are two things to understand when uninstalling or removing WooCommerce. If you deactivate and delete the plugin from WordPress, you...

  • Updating Woocommerce

    Updates to WooCommerce, Storefront, WordPress, and your extensions and payment gateways are a fact of life. Our team of developers are hard at wo...

  • Installed Database Tables

    WooCommerce installs some custom tables to store its data during install. More about tables installed: https://github.com/woocommerce/woocommerce/wiki...