All posts

Upgrading Magento 2.4 without breaking checkout

A Magento 2.4 minor upgrade looks like one version number. Underneath, it moves PHP, the search engine, the JavaScript libraries and every third-party module that hooks into checkout. Most upgrade incidents are not in Magento itself but in what sits on top of it.

Free checkout scan

Enter your store address. A real browser adds a product to the cart and walks the checkout up to the payment step, like a customer, and shows you every step with a screenshot.

  • Free, no account
  • Stops before payment, no order
  • Nothing to install
· Updated · 2 min read
A tidy desk with a monitor and a plant

What actually changes

LayerTypical changeCheckout risk
PHPNew minimum and maximum versionsModules with deprecated calls fail
Search engineSupported OpenSearch or Elasticsearch versions moveEmpty categories if not reindexed
Composer dependenciesLaminas, Symfony, Guzzle and othersPayment SDKs clash with new versions
Frontend librariesjQuery, RequireJS modules, CSPCheckout mixins and inline scripts break
Third-party modulesNeed a release for the new versionThe most common cause

Read the system requirements and release notes for the exact target version before you start, and list every module with its compatible version.

Upgrade on staging

bash
bin/magento --version
bin/magento maintenance:enable

# Target version; update the extensions in the same composer run
composer require magento/product-community-edition 2.4.8 --no-update
composer update

bin/magento setup:upgrade
bin/magento setup:di:compile
bin/magento setup:static-content:deploy en_US el_GR -f
bin/magento indexer:reindex
bin/magento maintenance:disable
Adobe Commerce uses magento/product-enterprise-edition. Pin the exact patch release, for example 2.4.8-p3.
Staging must look like production

Same PHP version, same search engine, same payment modules in sandbox mode, and a copy of production configuration. An upgrade tested on a bare staging proves little.

Test the purchase, not the pages

  1. Guest and customer. Full checkout both ways, with the payment methods you actually use.
  2. Every store view. Each country, currency and language, because config differs per scope.
  3. Console clean. No JavaScript errors and no CSP violations on cart and checkout.
  4. Backend flows. Invoice, ship and refund a test order; order emails arrive.
  5. Cron and queues. cron_schedule has fresh successes and consumers are running.

Release day and the week after

Release at a quiet hour with someone watching, purge caches and the CDN, and run a real checkout right after. Then watch for a week: problems that depend on traffic, cron or a rare payment method show up later than release day. Related: checkout breaks after a deploy and security patches.

Check your own store now with the free Magento checkout test: it walks the checkout in a real browser, Luma or Hyvä, and shows the step where it stops.

Find out your checkout broke before your customers do.

Real checkout checks for Magento and WooCommerce · free plan · no card requiredMagento checkout monitoring →
FAQ

Common questions

Still have a question?More answers, and a way to reach us.Support →
01What breaks most often in a Magento 2.4 upgrade?

Third-party modules that hook into checkout, payment SDKs clashing with new dependencies, and frontend changes such as CSP and updated JavaScript libraries.

02How do I test a Magento upgrade?

On a staging copy of production, run full checkouts as guest and customer in every store view, with the real payment methods in sandbox mode, and check the console.

03What should I watch after the upgrade?

Checkout success, JavaScript and CSP errors, cron and queue consumers, order emails and Pending payment orders for at least a week.