Questions tagged [magento2.4]

Denotes questions related to the features included in Magento version 2.4.x

Filter by
Sorted by
Tagged with
36
votes
8answers
25k views

You need to configure Two-Factor Authorization in order to proceed

Having just installed 2.4.0 from scratch, I ran into an "issue" when logging into Magento Backend for the first time: Failed to send the message. Please contact the administrator You need ...
33
votes
3answers
42k views

How to disable Two factor Authentication module in Magento 2.4 [closed]

Anyone, please help me with how to disable the Two-factor Authentication module using a command-line. Thanks.
26
votes
22answers
62k views

Magento 2.4.0 - Getting Error Could not validate a connection to Elasticsearch. No alive nodes found in your cluster

I am getting below error while installing Magento 2.4.0 using command line. Could not validate a connection to Elasticsearch. No alive nodes found in your cluster I have run below two commands. ...
9
votes
4answers
9k views

Magento 2.x Elasticsearch Category Products Not Showing

I tried to upgrade my Magento 2.3.5 install to Magento 2.4.0, but am unable to get category pages to display products. Everything is in Docker, so I am using Elasticsearch 7.6 and have specified ...
9
votes
1answer
1k views

Sanitizing HTML output in templates in 2.4

Before 2.4 the way you could sanitize an html value in a template was to use $block->escapeHtml($valueHere);. Where $blick is the instance of the current block. This still works in 2.4, but the ...
7
votes
3answers
19k views

magento/composer-root-update-plugin is locked to version 1.0.0 and an update of this package was not requested

i am trying to install the extension through composer but i am getting below error. Your requirements could not be resolved to an installable set of packages. Problem 1 - magento/composer-root-update-...
6
votes
5answers
2k views

In Magento 2.4 Cart page showing "Estimate Shipping and Tax"

I am doing fresh setup on Magento Cloud server and facing below issue. Issue: Page break with error while redirecting to Cart page. Steps followed : Add product into Cart Click on "Shopping ...
5
votes
4answers
3k views

Magento 2.4.3 admin dashboard - Invalid security or form key. Please refresh the page

After upgrading to Magento 2.4.3 Community Edition I am getting Invalid security or form key. Please refresh the page. on the admin dashboard site after logging in. Reloading the page makes the error ...
5
votes
4answers
11k views

Magento 2.4.0 ElasticSearch not alive

When performing the setup:upgrade I get this error : "Could not validate a connection to Elasticsearch. No alive nodes found in your cluster" I have not enabled It previously, updating from ...
4
votes
2answers
16k views

Upgrade Magento 2.3.3 to 2.4

How to upgrade Magento 2.3.3 to Magento 2.4?
4
votes
3answers
4k views

Magento 2.4 Class Magento\Framework\Search\Adapter\Mysql\Mapper does not exist

I just upgraded my Magento version to the latest Magento version 2.4.0. after a successful upgrade, while I am trying to set production mode I am getting error like Compilation was started. Area ...
4
votes
3answers
4k views

Compatible MariDB version for Magento 2.4

We are upgrading from magento 2.3 to 2.4. Would like to know the compatible MariaDB version to be used for the upgraded magento version. As per official magento site, it mentions MySQL8.0 for on ...
4
votes
3answers
4k views

Magento 2.4 - Composer php 7.4 error magento/magento2-functional-testing-framework

We run Magento 2.4 with php7.4, that should be supported. But we get the following error when we try to update a module using composer: magento/magento2-functional-testing-framework 2.6.5 requires php ...
4
votes
2answers
3k views

How to install Magento 2.4.0?

I would like to install Magento 2.4.0 on server without Elasticsearch require during installation. Can anybody tell me the way to disable Elasticsearch require when I run setup:install ... ? Thank you ...
4
votes
4answers
6k views

Magento 2.4 Best way setup with Docker environment

What is the best way to Configure Docker environment with Magento 2.4. If some know please give me a solution.
4
votes
2answers
1k views

Magento 2.4 - Search by SKU

I'm trying to figure out why Magento 2 Search is working that way. My products have SKUS like 111-222-333. When i'm trying to search by SKU, magento 2.4 returns a product collection of ther product ...
3
votes
4answers
2k views

Logging in Magento 2.4+

What are the different way a developer can log messages in Magento 2.4+? Zend logger can't be used anymore either.
3
votes
4answers
3k views

Type Error occurred when creating object: Magento\Framework\Session\Generic\Interceptor, setcookie() expects parameter 3 to be integer, array given

After clear/setting/configuring so many errors & configurations installed the Magento V2.4.1 successfully, now getting below errors. Type Error occurred when creating object: Magento\Framework\...
3
votes
1answer
56 views

Add additional info based on country selection condition in one page checkout country field

The condition should be like if the country is the UK then the text should not be shown. If the country is other than the UK then the text should be shown. On the cart page, I achieved using the ...
3
votes
3answers
1k views

Magento 2.4 with AWS ES not able to install

I'm trying to install Magento 2.4. I have set up AWS ES that I tasted and it works fine! But I keep getting an error: In SearchConfig.php line 81: Could not validate a connection to Elasticsearch....
3
votes
2answers
151 views

How to interact with APCu?

Magento DevDocs recommends to use APCu. I have enabled it and it works somehow, but I don't why and, and when to do what. I use already apc.php. Can anyone share some knowledge regarding APCu and ...
3
votes
3answers
3k views

Magento 2.4.1 and Elasticsearch 7.6.2 "no mapping found" issue

I'm facing an issue with a fresh install of Magento 2.4.1 and Elasticsearch 7.6.2. The products appear for a moment, and I have to reindex again to see them. The main issue appears to be "No ...
3
votes
1answer
154 views

Is PWA Studio ready for production use?

Going throught the demo store https://venia.magento.com/ and installing the headless version with our production instance it seems a lot of basic features are still msissing with PWA Studio provided ...
3
votes
1answer
607 views

No such entity cartId when send POST on /rest/default/V1/carts/mine/payment-information

According to documentation - https://devdocs.magento.com/guides/v2.4/rest/tutorials/orders/order-create-order.html I'm trying to make call on /rest/default/V1/carts/mine/payment-information with body: ...
3
votes
2answers
1k views

Magento Controller deprecated action class confusion

On Magento 2.4 i found this class extends (extends \Magento\Framework\App\Action\Action) show deprecated. Ref : Screenshot at end of the question But Magento core use this code. I mean in core code ...
3
votes
1answer
2k views

Upgrade Magento 2.3.5-p1 to Magento 2.4

I'm trying to upgrade Magento 2.3.4 and Magento 2.3.5-p1 to the latest release of Magento 2.4, Is that possible ? And How can I do this with composer ? Thanks in advance
3
votes
0answers
767 views

How to create modifier for admin customer form in magento 2?

I have created a new virtualType to change newly added customer attribute value in customer form. But I am unable to modify attribute data. What is wrong with the below code?
2
votes
6answers
2k views

Magento 2.4 - Two factor authentication

I'm upgrading my development migration to 2.4. I was surprised to see that 2FA was enabled. Can this be turned off? I have enough issues to deal with and prefer not to go through this learning curve....
2
votes
3answers
363 views

Missing css from source code magento 2.4.2

When upgrading to Magento 2.4.2 all of the core css is missing front both the back and frontends. Looking at the source I see no reference to such lines such as <link rel="stylesheet" ...
2
votes
3answers
1k views

Upgrade Magento 2.4.1-ee to Magento 2.4.2-ee return 404

I upgraded Magento 2.4.1-ee to Magento 2.4.2-ee and after that, I execute the command for upgrade and deploy. Commands run successfully. But, the front URL and admin URL return the 404 page. How to ...
2
votes
5answers
57 views

How to enable Two-Factor Authentication in Magento 2?

How do I enable it for all account types in Magento 2? Anyone, please help me with how to disable the Two-factor Authentication module using a command line.
2
votes
2answers
772 views

Magento 2.3.x: Data Migration - product show out of stock after migration

After migration all product showing out of stock
2
votes
1answer
1k views

Magento 2.4 Add Recaptcha in Custom From

Magento 2.4 How to add Google Recaptcha in Custom Form ?
2
votes
2answers
1k views

RabbitMQ and cron_consumers_runner

If you are running RabbitMQ in M 2.3/2.4 and have the env.php section set up for amqp: 'queue' => [ 'amqp' => [ 'host' => '127.0.0.1', 'port' => '5672', '...
2
votes
1answer
2k views

Compose error show in upgrade command

I have updated Magento version Magento 2.3.5-p1 to Magento 2.4.0 When I am running Magento setup upgrade command php bin/magento setup:upgrade then it's showing me below error Module '...
2
votes
4answers
8k views

Magento 2.4.0 Upgrade Issue [Issue Updated]

I am upgrading Magento 2.3.5-p1 to Magento 2.4.0. I followed below steps composer require magento/composer-root-update-plugin=~1.0 --no-update composer update cp composer.json composer.json.bak ...
2
votes
1answer
2k views

Mysql error in Magento 2.4 during the authentication

Why do I see this issue below during the installation of Magento 2.4? SQLSTATE[HY000] [2054] The server requested authentication method unknown to the client
2
votes
3answers
162 views

How to update Magento 2.3 to 2.4?

I have a store in Magento 2.x.x I want to update Magento 2.3 to 2.4 but when I update it using the command: composer require magento/product-community-edition=2.4.0 --no-update I get the following ...
2
votes
1answer
26 views

HTML files not being overwritten in app/Design

I'm trying to override html files the same way that I would override a phtml file, but it doesn't seem to be working. Same with Javascript. I'm trying to change some logic in minicart.js. I put my ...
2
votes
1answer
405 views

Magento CLI 2.4.0 - ErrorHandler is turning PHP errors into exceptions in production mode

Preface: I prefer to develop in developer mode, have Magento catch all PHP E_NOTICE|E_WARNING|etc. errors, throw exception on them, and get these issues cleaned up before committing my code. The issue ...
2
votes
4answers
1k views

Magento 2.4.1-p1 CE?: "main.ERROR: Can not resolve reCAPTCHA parameter..."

In /var/log/exception.log, I've been getting the following ERROR for over a week and can't figure out how to fix it: main.ERROR: Can not resolve reCAPTCHA parameter. {"exception":"[...
2
votes
1answer
137 views

Category Name and URL Key issue / Admin / Migration from 1.9.1.0 to 2.4.2

I'm facing an issue further to data migration from magento 1.9.1.0 to 2.4.2 in Admin > Store / Configuration / Category Categories name and url_path are in the database, Category name also. ...
2
votes
1answer
243 views

Multiple variables in email subject : Magento 2

I would like to add multiple variable in email subject but the problem only one is taking into consideration. <!--@subject {{trans "%name, see the hint from %sender" name=$name, sender=$...
2
votes
0answers
33 views

How to get blog result list into catalog search Magento 2

Hello I am currently working on Custom blog extension. Where I want to get blog posts in catalog result. where I am having my_blog_post table with following columns. id title image description ...
2
votes
0answers
41 views

Catalog Search result Wrong Result Magento 2

I am facing issue in the search result. I have installed Magento 2.4.0 and using Elasticsearch 7.0. When I search for h397 it gives me 4 product count and if I search for h397-4 it gives me 1868 ...
2
votes
1answer
45 views

Custom Sorting on category page not working in Magento 2.4.2

I have Magento 2.4.2. I have written a custom code to add A-Z & Z-A filters on category page. I have added dependency injection using below code <preference for="Magento\Catalog\Block\...
2
votes
3answers
450 views

Custom layout update not working 2.4

I have made the custom category layout update named as catalog_category_view_selectable_3_Test.xml in Magento_Catalog/layout. When I checked in admin panel in custom layout update the options is not ...
2
votes
1answer
82 views

Magento 2: why we should pass all required fields to update one field of customer by REST API?

I have created rest api for customers who update the one customer field. This is below code to updaye customer by REST API Any other way to update the customer by REST API without the pass mandatory ...
2
votes
0answers
106 views

Declarative schema uses padding in 2.3, gone in 2.4, do we have to use it?

In a module we're developing we declare a new database table with a foreign key relationship to the sales_order table. We want to support Magento 2.3 and 2.4, so we use the declarative schema (...
2
votes
0answers
154 views

Magento2 filter products based on location (custom attribute) programmatically

I have a Magento2 Store (v2.4) where I have multiple locations. for (eg. Jaipur, Delhi, Mumbai etc). I have managed locations using custom attribute using multiple dropdown list and assigned it to ...

1
2 3 4 5
20