Skip to main content
45 votes

Magento 2.4.1 setup:install problem : "the default website isn't defined. Set the website and try again."

It appears that this error might appear when a MySQL database is empty, but the env.php file is present. (Possibly because you had setup Magento, but for some reason, database was deleted.) To fix ...
Aleksandrs Rivkinds's user avatar
15 votes
Accepted

Your current search engine, 'Elasticsearch 2', is not supported

From the error message, it seems to me that ES2 is configured to be used instead of ES7. You can validate this by running the following command: php bin/magento config:show catalog/search/engine If ...
Diana's user avatar
  • 5,192
14 votes

Magento 2.4.1 setup:install problem : "the default website isn't defined. Set the website and try again."

I was changing a db and removing env.php helped to get rid of the error for me.
jekabs's user avatar
  • 318
9 votes

Uncaught TypeError: Cannot read property 'remove' of undefined -- upgrade from 2.3.4 to 2.4.1

I was also getting this same issue. As a temporary fix, I have copied customer-data.js from 2.3.4 to 2.4.1. Magento has changed the storage initialization in custom-data.js. UPDATE I have debugged ...
Anshu Mishra's user avatar
  • 8,990
9 votes
Accepted

Magento 2 Media Gallery doesn't show any images in 2.4.1

After some research i found the solution for these. After Set "No" to Enable Old Media Gallery option in Advanced->System section in system configuration you need to run the following ...
Mark Philips's user avatar
8 votes

Magento 2: What is the purpose of "_replica" tables?

Answering my own question... _cl tables are for changeLog, i.e., to keep track of which records were changed and need to be reindexed (the number of rows directly corresponds to the number of items in ...
Andrew Z's user avatar
  • 151
7 votes
Accepted

Uncaught TypeError: Cannot read property 'remove' of undefined -- upgrade from 2.3.4 to 2.4.1

Inside the customer-data.js for Magento 2.4 (/vendor/magento/module-customer/view/frontend/web/js/customer-data.js), Magento have moved the storage initialisation. Instead of being available on a ...
Zudian's user avatar
  • 358
7 votes

Magento 2.4.1 setup:install problem : "the default website isn't defined. Set the website and try again."

=>>> DELETE env.php file ..its work After run this command php bin/magento setup:install --base-url="http://localhost/magento4" --db-host="localhost" --db-name="...
Nipul Prajapati's user avatar
6 votes

Getting error in downloading repository Magento 2 via composer

You should use composer version 1.x. Install latest release of version 1.x. composer self-update --1 and you can try install magento. If you want to return to Composer 2 again. composer self-update --...
yvzyldrm's user avatar
  • 309
5 votes

Uncaught TypeError: Cannot read property 'remove' of undefined -- upgrade from 2.3.4 to 2.4.1

I got it working by manually recreating the minicart.phtml file and place this script at the bottom of the file. What I did differently was re-init-ing the Storage before I try to invalidate it, which ...
Max's user avatar
  • 309
5 votes

Magento 2: What is the purpose of "_replica" tables?

I'll just expand a bit Andrew's own answer with additional info that could be useful to those like myself who ended up here searching for an answer why my catalogrule_product_price_replica is so large ...
Lez's user avatar
  • 2,917
4 votes

M2.4.1 Unable to resolve source file jquery\fileUploader\fileupload-fp.js

I updated the revolution slider extension but still facing the same issue. Further searching "jquery/file-uploader" within code found it was still referenced to "jquery.fileupload-fp&...
deepakd's user avatar
  • 123
4 votes
Accepted

Having an Issue of loader on product page in magento2.4.1?

Replace script with below code in your theme gallery.phtml file. May be it helps. Magento-Catalog/templates/product/view/gallery.phtml Please update below code: <script type="text/x-magento-...
Vikram Kumar's user avatar
4 votes

There was an error loading payments.Please refresh or try again later. PWA Venia Theme Magento2.4 issue coming on

For me, this issue was caused by missing any valid payment methods. As indicated by the error message, I followed the error to checkoutPage.js line 180 and debugging showed paymentMethods (which is ...
Bogdan Tomi's user avatar
4 votes

Custom layout update not working 2.4

I had some "issue" with Magento-2.4.2 and I had spent about 2 hours before I understood what I was Pinocchio )) I was checking the wrong scope - All Stores Views instead of current store ...
Scuba Diver's user avatar
3 votes

Show/Hide configuration field in Magento 2

Try this <section id="custom_customer" translate="label" type="text" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="...
Rakesh Patel's user avatar
3 votes
Accepted

Error upgrading to 2.4.1

According to php documentation: Version 7.3 ::: An alternative signature supporting an options array has been added. This signature supports also setting of the SameSite cookie attribute. Your are ...
Judxx84's user avatar
  • 316
3 votes

How to cache graphQL post query using varnish in magento 2

It is possible to cache HTTP POST requests in Varnish. It is also possible to limit this to the /graphql endpoint. Bypassing standard behavior The first thing you have to do, is circumvent the ...
Thijs Feryn's user avatar
  • 1,081
3 votes

Can't proceed with installing Magento by executing bin/magento config:set command

It seems your installation was not completed, please check if the DB pointed in the setup install command has been populated with all the tables. If the tables are populated you might be missing ...
Vivek Kumar's user avatar
  • 5,685
3 votes
Accepted

Get Orders by Store Id

In your constructor, import \Magento\Sales\Model\ResourceModel\Order\CollectionFactory $orderCollectionFactory and set $this->_orderCollectionFactory = $orderCollectionFactory; and if you already ...
rushtoni88's user avatar
3 votes
Accepted

How to change Wishlist button color once product added to Wishlist using controller

Using a custom controller to change Wishlist button(icon) color once the product added to Wishlist. app/code/vendor/module/Controller/Index/Wishlist.php <?php namespace Vendor\Module\Controller\...
Hafiz Arslan's user avatar
3 votes
Accepted

Magento 2.4 - How to enable ajax for add-to-cart button and wishlist button of product widgets on homepage?

To enable AJAX add to cart on home page, You need to add small JS code create: app/design/frontend/{Package}/{theme}/Magento_Theme/layout/cms_index_index.xml <?xml version="1.0"?> &...
Pawan's user avatar
  • 5,906
3 votes
Accepted

Magento2.4: How to get Salable quantity in list.phtml file?

Try This Code app/code/VendorName/ModuleName/etc di.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation=...
Msquare's user avatar
  • 9,173
3 votes

How to upgrade Magento from 2.4.1 to 2.4.6

Please Try below steps for update existing project First you need to check magento system requirements as per the version which link is given below and update first if required Like :- (php, composer, ...
Mufaddal Dhansurawala's user avatar
2 votes

Magento 2.4.1 Checkout Error - Current Customer Does Not Have An Active Cart

This issue comes from file: vendor/magento/module-checkout/view/frontend/web/js/model/cart/estimate-service.js estimateTotalsShipping = function () { totalsDefaultProvider.estimateTotals(quote....
Muhammad Hasham's user avatar
2 votes

Having an Issue of loader on product page in magento2.4.1?

I fixed it but the approved answer is not enough. Firstly, catalog_product_view.xml <block class="Magento\Catalog\Block\Product\View\Gallery" name="product.info.media.image" ...
Cengiz's user avatar
  • 21
2 votes

M2.4.1 Unable to resolve source file jquery\fileUploader\fileupload-fp.js

I found that fileupload-fp.js was no longer in Magento 2.4 (coming from 2.3.5-p2). After looking at who was referencing it, I found that my Revolution Slider extension was the culprit. Updating that ...
Life's user avatar
  • 51
2 votes
Accepted

Magento 2 Braintree compilation issue

I contacted Gene for support and as suggest by Petar, the braintree module did not install properly. Gene advised to me run composer require braintree/braintree_php:5.2.0 Which resolved the issue.
neit's user avatar
  • 63
2 votes

Uncaught Error: Cannot instantiate interface Magento\TwoFactorAuth\Api\UserConfigManagerInterface while running Integration Tests

For me I have the same issue if I have run setup:di:compile (i.e. generated code). The solution is to remove generated code. Enabling the module clears generated code, which is probably the reason why ...
Eino Keskitalo's user avatar
2 votes
Accepted

Magento 2.4.1 layered issue with elasticsearch

Apologies, I didn't get a notification for this. I hope this can help you or someone else. first I added a var to the env file: 'elasticsearch' => [ 'max_result_window' => 50000 ]...
Andres Salgado's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible