Questions tagged [magento2.4]

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

Filter by
Sorted by
Tagged with
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 ...
0
votes
3answers
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?
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 ...
0
votes
2answers
1k views

The requested URL /pub/ was not found on this server. - Magento .htaccess problem

I have an problem about magento 2.4.2 Installed magento 2.4.2 using Composer-CLI. But I can't access magento homepage (http://localhost:8888/magento2) The requested URL /pub/ was not found on this ...
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....
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. ...
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 ...
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" ...
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.
1
vote
1answer
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\...
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 ...
0
votes
2answers
2k views

Magento 2.4.0 fails to install

I'm trying to make a fresh install of Magento 2.4.0. I want to say in advance I didn't have any problem at all in installing Magento 2.3.5 with PHP 7.3.20. Anyway... Here's my config: Debian 10 ...
0
votes
1answer
70 views

Magento 2.4.2: How to get order sub total in my custom module?

With the code below, I am trying to get the order sub total. Please note I am querying the table that I created in the Magento Database. $subtotal = $request->getOrderSubtotal(); doesn't get the ...
0
votes
3answers
1k views

Magento 2.4 installation issue on windows machine

I have downloaded magento 2.4 and trying to install on windows machine but while hitting "localhost/magento-24/" it is not showing install button. I don't know the reason can some help me in ...
0
votes
4answers
411 views

Owl Carousel randomly not loading magento2.4

on my Magento2.4 I have an issue where owl-carousel will randomly not load. Here is my default_head_blocks.xml <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/...
4
votes
2answers
16k views

Upgrade Magento 2.3.3 to 2.4

How to upgrade Magento 2.3.3 to Magento 2.4?
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', '...
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 ...
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 ...
2
votes
1answer
1k views

Magento 2.4 Add Recaptcha in Custom From

Magento 2.4 How to add Google Recaptcha in Custom Form ?
1
vote
2answers
147 views

Missing Import / Export Options under System->Data Transfer (Magento CE 2.4.1 + Claue Theme)

When logged in as an administrative user (with all resources including data transfer allocated), under the System->Data Transfer menu, there are no import /export options available. The entire Data ...
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 ...
1
vote
1answer
530 views

"Not Visible Individually" products display on Frontend in Magento2.4

Is there any way to display "Not Visible Individually" products on frontend? My goal is admin can see product before upload in site...
1
vote
1answer
129 views

<referenceBlock name="header.container" remove="true" /> removes minicart functionality

I've added <referenceBlock name="header.container" remove="true" /> to my themes default.xml and instead has been replaced with: <referenceContainer name="page....
1
vote
1answer
329 views

Magento 2.4 Track this shipment link error on open Popup

I was trying to implement a custom shipping label programmatically but I'm getting error below: Error: Call to undefined method Magento\Framework\Phrase::getTracking().... I am using \Magento\Sales\...
1
vote
1answer
30 views

Extreme big headers only in large configurable products

We have a Magento 2.4.0 store. Most of our products are configurable. And some of them are having a lot of options. We also use swatch options. We have discovered some links which return: Error 503 ...
0
votes
2answers
49 views

Product tabs are not showing in product detail page

product tabs are not showing on the product detail page and reviews are coming down to Description. I had created a custom tab and this one also does not show http://18.169.225.50/calacatta-matt-...
0
votes
1answer
431 views

Magento 2 : No such entity with %fieldName

I am getting this error any thoughts, why this error appearing ? "message": "No such entity with %fieldName = %fieldValue", "parameters": { "fieldName&...
0
votes
0answers
43 views

How to add a custom form block inside order view?

I try to make an SMS form block for Magento2. Until now, I used the Magento\Sales\Block\Adminhtml\Order\View\History as a guide on how to implement it. I am almost there, but I cannot mimic the getUrl ...
0
votes
1answer
64 views

_initSelect override with Plugin in Magento2.4.1

Need a help in this issue. I am trying to remove a MySQL condition from _initSelect from this Collection "Magento\SalesRule\Model\ResourceModel\Rule\Collection". This Collection has the ...
0
votes
0answers
20 views

On Place Order, How to Deduct Product Qty with Salable Qty Programmatically in Magento 2.4?

I used "sales_order_save_after" event, In this event at "new" state I want to deduct Product Main Qty with Salable Qty and on Shipment create Restrict Deduction of Main Qty. ...
0
votes
1answer
70 views

Magento 2.4: How to add the locale for a website using config.php?

Our Magento website is hosted on Commerce cloud and I have created the multi website but since the commerce cloud is in production mode, I'm not able to update the locale using admin settings. I get ...
0
votes
0answers
36 views

Magento 2.4.2 : Adobe sensei product recommendations missing product URL data

I am using magento2.4.2 EE and configured Adobe Sensei product recommendations. But facing issues of product url is missing in generated product recommendations html data-bind. I've debugged response ...
0
votes
2answers
1k views

Elasticsearch Limit of total fields [9165] in index [product_1_v2] has been exceeded

We face the following issue on our Magento 2.4 store with Elasticsearch 7 and more than 7000 attributes: Catalog Search indexer process unknown error: {"error":{"root_cause":[{&...
0
votes
0answers
87 views

Magento 2: Error while create category programmtically: Call to undefined method Magento\Catalog\Model\ResourceModel\Category\Flat::getEntityTable()

I am creating a category programmatically in magento 2 in controller, but I am getting error Call to undefined method Magento\Catalog\Model\ResourceModel\Category\Flat::getEntityTable() I have also ...
0
votes
2answers
346 views

What are System Requirements for Magento 2.4?

I am using ubuntu 18.04 with PHP 7.3 and MySQL 5.7 Magento 2.3.5 is working fine what are requirements for Magento 2.4
0
votes
1answer
16k views

Notice: Trying to access array offset on value of type bool PHP 7.4

I am trying to test magento 2.4 with PHP7.4. I have a custom module with this code: //checking for absolute weight $res = $this->_objectManager->get('Magento\Framework\App\ResourceConnection'); $...
0
votes
1answer
324 views

Import/Export cannot be used with directory

We recently upgraded our website to Magento 2.4, but we have run into an issue with trying to import products using the import tool. When we upload a csv that has errors in it, we want to download the ...
0
votes
2answers
78 views

magento 2 - custom module - Error filtering template: Notice: Trying to access array offset on value of type null

I am getting Error filtering template: Notice: Trying to access array offset on value of type null in C:\xampp\htdocs\m3\app\code\Zero\Storelocator\view\frontend\templates\google_reviews.phtml on line ...
0
votes
1answer
85 views

Frontend and Backend is not Working : Magento 2.4.2 ( Internal Server Error)

I am using below configuration Magento 2.4.2 PHP 7.4 Composer 2 Elasticsearch 7.9.6 My installation is in subfolder https://162.241.125.112/Angel/angel Admi url is - https://162.241.125.112/Angel/...
0
votes
1answer
49 views

Magento 2.4.2: Setting and getting custom config data works fine, but the text field in the admin backend is empty

I am able to set and get config data in a field under General table with the test code. The Magento backend displays the field as the screenshot below shows. The issue is this field is blank, but ...
0
votes
1answer
90 views

Magento 2 sort collection in particular order before display

I am working in Magento 2.4.1. I need to sort the products on list page and search result page with particular order. I want to display particular products first in all page(list and search). I have ...