Questions tagged [magento2.4]

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

Filter by
Sorted by
Tagged with
39
votes
8answers
27k 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 ...
34
votes
3answers
46k 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
68k 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
10k 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
21k 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
3answers
17k views

Upgrade Magento 2.3.3 to 2.4

How to upgrade Magento 2.3.3 to Magento 2.4?
5
votes
4answers
6k 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
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 ...
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 ...
5
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
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.
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
5k 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
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 ...
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
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
6answers
86 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 enable the Two-factor Authentication module using a command line.
3
votes
1answer
64 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
179 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
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":"[...
3
votes
1answer
175 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
690 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
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
775 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
384 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
4answers
3k views

Upgrade to magento 2.4.3

I'm trying to upgrade Magento 2.4.2 to the latest release of Magento 2.4.3 How can I do this with the composer?
2
votes
1answer
1k views

Unable to activate integration with Oauth 1.0

I have been trying to create my own external application using Oauth, but I get to filling out the details for the callback URL and Identity link URL (and the name), which creates fine, but when I go ...
2
votes
2answers
796 views

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

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

Proper way to update stock in >= 2.4?

I'm finding inconsistent documentation on how to update product stock for M2 2.4.1. Magento\Catalog\Model\Product::setStockData is documented in code to be deprecated and points to Magento\...
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
1k views

Magento 2.4 Add Recaptcha in Custom From

Magento 2.4 How to add Google Recaptcha in Custom Form ?
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
193 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
467 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
1answer
164 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
288 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
1answer
36 views

Magento 2.4.3 Upgrade from 2.3.0 showing iframe for Online payment

I have upgraded Magento 2.3.0 to Magento 2.4.3, everything is working perfectly but when selecting CCAvenue online payment on payment page, one iFrame is showing below to enter credit card information ...
2
votes
0answers
24 views

Magento 2 Coupon code restriction

I'm trying to modify the coupon code scenario and below is the scenario that I need to achieve. Full cart total should be >= $499. I added the condition that if a configurable product is found in ...
2
votes
0answers
78 views

Implementation of Composition Instead of Inheritance in Controllers Magento 2

I am trying to implement Magento 2 Coding Standard so I found an Article Here -> https://community.magento.com/t5/Magento-DevBlog/Decomposition-of-Magento-Controllers/ba-p/430883 I have changed my ...
2
votes
0answers
35 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 ...

1
2 3 4 5
21