Questions tagged [magento2.4]
Denotes questions related to the features included in Magento version 2.4.x
51
questions
10
votes
6
answers
13k
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 ...
2
votes
3
answers
2k
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
5
answers
6k
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
6
answers
14k
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 ...
31
votes
26
answers
88k
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.
...
0
votes
2
answers
2k
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
6
answers
3k
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....
42
votes
10
answers
34k
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
3
answers
557
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" ...
40
votes
3
answers
61k
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.
4
votes
2
answers
2k
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\...
0
votes
2
answers
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
3
answers
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
1
answer
209
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
4
answers
638
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/...
5
votes
3
answers
21k
views
Upgrade Magento 2.3.3 to 2.4
How to upgrade Magento 2.3.3 to Magento 2.4?
3
votes
2
answers
2k
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',
'...
3
votes
3
answers
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....
1
vote
1
answer
633
views
Magento 2.4.1 Move Out of Stock In last Of Category Listing
I want to move out of stock product in last of the category listing, itried below code but same seems not working.
app/code/Meetanshi/StockQuantity/etc/module.xml
<?xml version="1.0"?>
...
10
votes
1
answer
2k
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
2
answers
2k
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
6
answers
4k
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: ...
2
votes
1
answer
2k
views
Magento 2.4 Add Recaptcha in Custom From
Magento 2.4
How to add Google Recaptcha in Custom Form ?
1
vote
2
answers
222
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
3
answers
312
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
1
answer
201
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 ...
1
vote
1
answer
197
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
1
answer
1k
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
1
answer
124
views
Magento 2.4 Sidebar\RemoveItem - afterExecute() must be an instance of Magento\Framework\App\Response\Http
I get this error:
TypeError: Argument 2 passed to
..\Plugin\Controller\Checkout\Sidebar\RemoveItemPlugin::afterExecute()
must be an instance of Magento\Framework\App\Response\Http, instance
of ...
1
vote
1
answer
604
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\...
0
votes
1
answer
18k
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
1
answer
144
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
1
answer
52
views
Update color visual swatch attribute images Magento 2.4
we need to update only images from existing color attribute options.
How to achieve this?
0
votes
1
answer
232
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
0
answers
67
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
2
answers
229
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
1
answer
1k
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
2
answers
2k
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
3
answers
383
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
1
answer
286
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 ...
0
votes
0
answers
104
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
0
answers
100
views
Ajax Page Reload Not working
am trying to reload the page when on ajax success, but its not working below is my code.
<?php
/**
* @var \Pramod\Custom\Block\System\Config\Exportproduct $block
*/
?>
<script>
...
0
votes
0
answers
29
views
How to override an existing ui component (filterSearch)
I have the task to replace the product searching process.
I manage to find out the search box was coming from
vendor/magento/module-catalog-search/view/adminhtml/ui_component/product_listing.xml
So I ...
0
votes
1
answer
131
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
0
answers
136
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
1
answer
450
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
1
answer
157
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
0
answers
86
views
Send csv file on email in Magento 2.4.0
I am generating order report in csv and saving that file in Var folder. Now i want to send that file on email without using any email template. How to i can send that file on email ? Kindly check ...
0
votes
1
answer
548
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
0
answers
40
views
How to add pdf in mail in Magento 2.4
I need to add pdf with email. I followed some forums but nothing works.
Here is my code.By my code only template variables are coming but pdf attached in the form is not coming in the mail.
When i use ...