Questions tagged [magento2.4]

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

Filter by
Sorted by
Tagged with
63 votes
8 answers
106k views

How to disable Two factor Authentication module in Magento 2.4

How can I disable the Two-factor Authentication module using command-line ?
Softec's user avatar
  • 2,075
48 votes
12 answers
53k 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 ...
Craig's user avatar
  • 2,650
40 votes
31 answers
148k 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. ...
Vrajesh Patel's user avatar
15 votes
4 answers
10k views

M2.4 Exception throwing while executing composer require: Higher matching version 2.3.x of xxx/module-xxxx was found in public repository packagist

While executing composer require xxxx/module-xxxx I'm facing below error on the console. Repository is private at the moment. [Exception] ...
sandip's user avatar
  • 4,004
13 votes
7 answers
36k 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.
Adarsh M's user avatar
  • 584
12 votes
6 answers
19k 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 ...
doublesharp's user avatar
11 votes
2 answers
8k 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 ...
Shuvankar Paul's user avatar
10 votes
7 answers
28k 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 ...
cookie monster 24534's user avatar
10 votes
5 answers
40k 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 the below error. Your requirements could not be resolved to an installable set of packages. Problem 1 - magento/composer-root-...
somutesting's user avatar
10 votes
1 answer
4k 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 ...
Marius's user avatar
  • 198k
9 votes
3 answers
4k views

How to fix Referenced sniff "PHPCompatibility.FunctionUse.RemovedFunctions" does not exist with PHP8.1

For php8.1 and with the latest Magento coding standards we are facing below error while running the static test from CLI and PHPStorm ERROR: Referenced sniff "PHPCompatibility.FunctionUse....
Vishwas Bhatnagar's user avatar
8 votes
2 answers
530 views

Magenot 2.4.5 - Custom sorting not working with elasticsearch

I need "Price Low to High" and "Price High to Low" sorting. For this I have followed some guides which are referring to override Magento\Catalog\Block\Product\ProductList\Toolbar ...
Shoaib Munir's user avatar
  • 9,434
7 votes
3 answers
29k views

Upgrade Magento 2.3.3 to 2.4

How to upgrade Magento 2.3.3 to Magento 2.4?
David Duong's user avatar
6 votes
6 answers
19k views

Magento 2.4.6 : Could not validate a connection to the OpenSearch. No alive nodes found in your cluster

I'm trying to install Magento open source for the first time. I have gone through most of the process except the last part. When I try to run: php bin/magento setup:install --base-url=http://localhost/...
Adnane Rbt's user avatar
6 votes
3 answers
8k 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 ...
Navin Bhudiya's user avatar
6 votes
5 answers
4k 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 ...
Ups's user avatar
  • 115
6 votes
2 answers
8k views

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

I installed Magento 2.4.1. All is working fine but the newer feature that Media Gallery does not show any images. Is there any other configuration requires for seeing images? I disabled the old media ...
Jantar Mantar's user avatar
6 votes
3 answers
10k 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 ...
JGeer's user avatar
  • 1,418
6 votes
7 answers
10k 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.
Saditha Udayanga's user avatar
6 votes
6 answers
19k 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 ...
V. Long's user avatar
  • 131
6 votes
1 answer
240 views

Magento 2 REST API Issue: Unable to Handle Product SKU with Slash Value in stockItems Endpoint

Magento 2 REST API Endpoint /V1/stockItems/:productSku is encountering a bug specifically when using OAuth 1.0 authentication. The issue arises when the product SKU contains special characters such as ...
Mohammad Bharmal's user avatar
5 votes
5 answers
10k 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 ...
NKumar's user avatar
  • 151
5 votes
2 answers
3k views

Updating from 2.3.5 to 2.4.4 gives magento/framework 102.0.5 requires php ~7.1.3||~7.2.0||~7.3.0 error

Magento 2.3.5 I am trying to update from Magento 2.3.5 to Magento 2.4.4-p2. The commands I executed are: composer require magento/product-community-edition=2.4.4-p2 --no-update --use-default-magento-...
user4095519's user avatar
5 votes
1 answer
10k views

Magento 2 - The requested class did not generate properly, because the 'generated' directory permission is read-only

I got this issue after running bin/magento setup:di:compile $ bin/magento setup:di:compile Compilation was started. Interceptors generation... 4/9 [============>---------------] 44% 16 secs 300.0 ...
D Major's user avatar
  • 51
5 votes
2 answers
1k views

Static-content deploy slow after upgrading

after upgrading M2 from 2.4.2 to 2.4.5-p1 the static content deployment increased significantly. The time to deploy increases for every new theme/language. Used to be ~5min total for all themes to ...
Gerhard's user avatar
  • 65
5 votes
0 answers
1k 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 (...
CodeCaster's user avatar
4 votes
7 answers
8k views

Magento 2.4.3 - Checkout JS knockout error - renderReCaptcha

We upgrade to Magento 2.4.3 and now face the following JS knockout error in the checkout: TypeError: Unable to process binding "afterRender: function (){return renderReCaptcha() }" Message: ...
JGeer's user avatar
  • 1,418
4 votes
1 answer
3k 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 ...
Copvampire's user avatar
4 votes
4 answers
488 views

Learning Magento

Hello could you recommend some websites where i could start to learn magento?im a junior dev so i will need to also learn how to create my own extensions/modules. So, anything related to core Magento ...
don's user avatar
  • 43
4 votes
2 answers
5k 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', '...
Rob Mangiafico's user avatar
4 votes
2 answers
4k 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 ...
Neverland's user avatar
  • 101
4 votes
2 answers
8k views

How to update product salable quantity in Magento 2.4 programmatically?

I am trying to import products programmatically into a Magento 2.4.4 installation but I have problem setting the Salable Quantity. I cannot find a viable solution to this issue, please help if you can....
jfeid's user avatar
  • 43
4 votes
3 answers
3k 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 ...
Haerriz's user avatar
  • 681
4 votes
2 answers
5k 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\...
laketuna's user avatar
  • 6,830
4 votes
2 answers
3k 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 ...
sarakinos's user avatar
  • 241
4 votes
5 answers
4k 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":"[...
bluedarter's user avatar
4 votes
0 answers
41 views

Create order using REST API with multi-currency issue

Using default order create rest API one issue was face, when order create using postman/curl than it will success and working fine but when same API hit using mobile app it causes issue like - base ...
Chandresh Chauhan's user avatar
4 votes
0 answers
466 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 ...
Waqar Ali's user avatar
  • 2,329
4 votes
2 answers
1k views

Magento 2.4.1 admin tfa configuration page is blank

I just migrated from Magento 2.3.4 to 2.4.1 , after i logged in from the backend i was redirected to TFA configuration page, but it shows blank container like this: i already ran these commands below,...
Tiny Dancer's user avatar
4 votes
1 answer
891 views

Magento 2.4: Uncaught TypeError: base is not a constructor

After Magento update to 2.4, I'm getting this "base is not a constructor" error which is causing other grids to unable load in the admin. When I run the command: ->sudo chmod 777 -R Var/ ...
sourabh yadav's user avatar
3 votes
3 answers
3k views

Warning: Object of class Magento\Framework\Phrase could not be converted to int product/list/toolbar/limiter.phtml on line 26

Can anyone have faced the below error while opening the product listing page at the storefront? Running instance on the Magento version 2.4 vanilla. No third-party modules/themes were installed. A ...
sandip's user avatar
  • 4,004
3 votes
4 answers
20k views

Magento 2.4 Uncaught Error: Cannot instantiate interface

I was trying to upgrade from magento 2.3.6 to 2.4.2. Now I have an issue that any php bin/magento command is giving an error: PHP Fatal error: Uncaught Error: Cannot instantiate interface Magento\...
justadev's user avatar
  • 235
3 votes
3 answers
4k views

Upgrade from 2.4.2 to 2.4.3 - I don't know how to resolve these dependencies

I am looking to upgrade my Magento Store from 2.4.2 to 2.4.3. When I enter the command "composer update" I get the below response. Updating dependencies Your requirements could not be ...
brettstix's user avatar
3 votes
3 answers
4k 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\...
Bojjaiah's user avatar
  • 4,002
3 votes
1 answer
5k views

Magento 2.4 Add Recaptcha in Custom From

Magento 2.4 How to add Google Recaptcha in Custom Form ?
Msquare's user avatar
  • 9,093
3 votes
1 answer
4k 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
Rafael Corrêa Gomes's user avatar
3 votes
1 answer
1k views

Fixer.io Currency Converter Not Working

Magento offers an out-of-the-box integration to the third party currency conversion api Fixer.io. Having acquired a free api key I have attempted to update the currency rates on my magento build to be ...
Richard Parnaby-King's user avatar
3 votes
7 answers
845 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.
Kuldeep Sharma's user avatar
3 votes
1 answer
870 views

Class Magento\InventoryCatalogAdminUi\Observer\SourceItemsProcessor does not exist

I have upgraded Magento 2.3.5-p1 to Magento 2.4.0, after upgrade when I am running compile command php bin/magento setup:di:compile then it's showing me below error Compilation was started. Area ...
Banna Online's user avatar
  • 1,069
3 votes
1 answer
237 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 ...
Rajkumar Vellaiswamy's user avatar

1
2 3 4 5
36