Fix Library: Checkout and orders

Checkout Loader Spinning Forever

Last updated:

What you see

Customers reach checkout, but the loading spinner never stops and they cannot place an order.

Quick answer

The spinner waits for JavaScript or a request to Magento's REST API to finish. When one fails, it spins forever. Open the browser console and network tab on checkout: the first red error or failed /rest/ request usually names the extension, theme file or server rule that broke it.

What usually causes it?

  1. A JavaScript error from a theme or extension
  2. A failing REST request, such as shipping estimates or payment information
  3. JavaScript bundling or minification breaking a script
  4. A firewall, WAF or bot rule blocking /rest/ requests
  5. A payment or shipping method that times out

How do you check it safely?

These checks only read information. Run them on staging first if you can, from the Magento root folder as the file system owner. Hosting setups differ, so paths and service names may need adjusting.

  1. Open checkout with browser developer tools. In Console, note the first red error. In Network, filter by "rest" and look for 4xx or 5xx responses.
  2. Read the server side error for a failed request.
    tail -n 50 var/log/exception.log
  3. Check whether JavaScript bundling or minification is on.
    bin/magento config:show dev/js/enable_js_bundling
    bin/magento config:show dev/js/minify_files

How do you fix it?

These steps change your store. Run them on staging first, with a backup of code and database.

  1. Fix or update the extension or theme file that throws the first error.
  2. On staging, turn off bundling and minification to test whether they cause it.
    bin/magento config:set dev/js/enable_js_bundling 0
    bin/magento config:set dev/js/minify_files 0
    bin/magento cache:flush
  3. If a firewall blocks /rest/ requests, add an exception for your checkout endpoints with your host or CDN.
  4. Disable the failing payment or shipping method until it is fixed, so customers can still order.

When should you call an expert?

Call an expert if checkout is broken on the live store and you are losing orders now.

Need it fixed today?

I can look at it with you. Book a 20 minute call, or if the store is down, see emergency Magento support.

FAQ

Common questions.

Why does checkout work for me but not for customers?

You may be logged in, on a different browser, or excluded from a firewall rule. Test in a private window, as a guest, with a real address.

Can I just switch to a one page checkout extension?

Only after finding the cause. A new checkout extension can hide the problem or add new ones.

Rather have it fixed for you?

Send a few lines about the problem, or book a 20 minute call. You get an honest read and a fixed quote.

Book a 20 minute call Reply within a few hours, 7 days a week.