This article provides a solution for the issue where your Magento 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
- Magento Commerce Cloud 2.4.0.
- Magento Commerce 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
.
During the installation of Magento 2.4.0 this causes the installation 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 Magento 2.4.0 merchants have to:
- Remove these third-party extensions from
composer.json
. - Install Magento without extensions.
- Add the extensions after the installation.
The issue will be fixed in the scope of 2.4.1 release.
Related reading
- Magento 2.4.0 known issue: missing "Refund" label in Klarna
- Magento 2.4.0 known issue: two buttons missing on Create New Order page in Admin
- Magento Commerce 2.4.0, 2.4.1: Enable Braintree Venmo partial invoice issue
- Magento 2.4.0 known issue: Error message selecting local payment method displayed for some countries during checkout
- Magento 2.4.0 known issue: Amazon Pay enabled, payment methods missing when Return to standard checkout used
- Magento 2.4.0 known issue: 404 error when removing rewards points on multi-shipping checkout
- Magento 2.4.0 known issue: orders display error
- Magento 2.4.0 B2B Admin can't add configurable product to quote
- Magento 2.4.0 known issue: Braintree payment methods do not show up in Multiple Addresses checkout
- Shipping labels creation known issue in Magento 2.4.0
- Magento 2.4.0 known issue - refresh on Customer's Activities does not work
- Magento 2.4.0 known issue - Export Tax Rates does not work
- Magento 2.4.0 known issue: “Add selections to my cart” button does not work
- Magento 2.4.0 known issue: raw message data display on storefront