Adobe Commerce 2.4.0 installation fails with outdated stores cache
This article provides a solution for the issue where your Adobe Commerce 2.4.0 installation fails with the error message: The default website isn’t defined. Set the website and try again. displayed in the console.
Affected products and versions
- Adobe Commerce on cloud infrastructure 2.4.0
- Adobe Commerce on-premises 2.4.0
Issue
Prerequisites:
A third-party extension with dependencies on APIs for the Store module in CLI commands is configured as required in composer.json
. This causes the installation of Adobe Commerce 2.4.0 to fail with an error message: The default website isn’t defined. Set the website and try again. displayed in the console.
Cause
The issue appears for the third-party extensions which have dependencies on stores in their CLI commands. One is Amazon Sales Channels.
Solution
Before the installation of Adobe Commerce 2.4.0, merchants have to:
- Remove these third-party extensions from
composer.json
. - Install Adobe Commerce without extensions.
- Add the extensions after the installation.
The issue will be fixed in the scope of 2.4.1 release.
Related readings in our support knowledge base:
- Adobe Commerce 2.4.0 known issue: missing “Refund” label in Klarna
- Adobe Commerce 2.4.0 known issue: two buttons missing on Create New Order page in Admin
- Adobe Commerce 2.4.0, 2.4.1: Enable Braintree Venmo partial invoice issue
- Adobe Commerce 2.4.0 known issue: Error message selecting local payment method displayed for some countries during checkout
- Adobe Commerce 2.4.0 known issue: Amazon Pay enabled, payment methods missing when Return to standard checkout used
- Adobe Commerce 2.4.0 known issue: 404 error when removing rewards points on multi-shipping checkout
- Adobe Commerce 2.4.0 known issue: orders display error
- Adobe Commerce 2.4.0 B2B Admin can’t add configurable product to quote
- Adobe Commerce 2.4.0 known issue: Braintree payment methods do not show up in Multiple Addresses checkout
- Adobe Commerce 2.4.0 known issue - refresh on Customer’s Activities does not work
- Adobe Commerce 2.4.0 known issue - Export Tax Rates does not work
- Adobe Commerce 2.4.0 known issue: “Add selections to my cart” button does not work
- Adobe Commerce 2.4.0 known issue: raw message data display on storefront