Skip to main content
15 votes

Warning: file_put_contents in plugin-list.php and PluginListGenerator.php in Magento 2.4.2 during compilation

To fix above error, kindly follow the below steps Open PluginListGenerator.php file located at vendor/magento/framework/Interception. Go to line no 414 or find the word “scopePriorityScheme” in ...
zuber bandi's user avatar
  • 1,072
12 votes

CMS and Block content warning Magento 2.4.2

I experienced this error too this morning and I dug a little : Magento\Cms\Model\Wysiwyg\Validator is responsible of this notification. ATM, it seems that it just shoot a message with no repercussion. ...
rou6e's user avatar
  • 1,041
10 votes
Accepted

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

As @Diana Suggest, I create virtual host to run m2.4.2-ee For that follow the below steps : 1. Copy .conf file for virtual domain : sudo cp /etc/apache2/sites-available/000-default.conf /etc/apache2/...
Rohan Hapani's user avatar
  • 17.5k
9 votes

CMS and Block content warning Magento 2.4.2

I have fixed this issue for magento community version 2.4.3. You need to create a custom module Create registration.php file, Vendor/Module/registration.php <?php /** * Copyright ©2021 s All ...
Dipak Prajapati's user avatar
9 votes

404 Not Found after fresh Magento 2.4.2 installation

It seems now Magento will only load from pub folder. By default it will not be possible to load it from the root of Magento. So the best solution for this is to create a virtual host and point it to ...
Kamal Paliwal's user avatar
9 votes
Accepted

Magento 2.4 Elastic search error: Text fields are not optimised for operations

on Investigation came to know this issue is due to upgrade process. Some product attributes which are text/varchar set to be filerable in search. like for me gift_price mentioned in above error. So ...
Hassan Ali Shahzad's user avatar
8 votes

Magento 2.4.2 Window10 localhost Xampp 404 not found

Step 1: - We need to set document root to pub, to do this go to file C:\xampp\apache\conf\extra\httpd-vhosts.conf <VirtualHost *:80> DocumentRoot "C:/xampp/htdocs/magento24/pub" ...
Sonal- TheCoachSMB's user avatar
8 votes
Accepted

Magento 2 - Unable to add record in dynamic rows in admin product edit page

I found the issue. The issue is from the linking property "links". The links property is missed while adding more than one record. So the datascope configuration is most important for the &...
Siranjeevi K S's user avatar
7 votes
Accepted

widget.getProductId is not a function

After digging for a while, I found the issue: Edit the file: vendor/magento/module-inventory-swatches-frontend-ui/view/frontend/web/js/swatch-renderer.js go to line 22: configurableVariationQty(...
Yusuf's user avatar
  • 86
6 votes
Accepted

"Only 0 Left" message has suddenly appeared after 2.4.2 upgrade

This is a bug affecting configurable products introduced by the new Magento_InventoryConfigurableProductFrontendUi module in Magento 2.4.2. You can read more about the issue here: https://github.com/...
paj's user avatar
  • 5,924
6 votes
Accepted

404 Not Found after fresh Magento 2.4.2 installation

Do not move to 2.4.2 without careful planning if you aren't already using the "server root is pub/" setup. In the Magento 2.4.2 deployment the whole logic is changed to move the site ...
iphigenie's user avatar
  • 1,749
6 votes
Accepted

How to resolve field parse error with Elasticsearch filters?

Change the following line from $productCollection->addFieldToFilter($attribute->getAttributeCode(), ["finset" => $filters]); to: $productCollection->addFieldToFilter($attribute-&...
Sohel Rana's user avatar
  • 35.9k
4 votes

404 Not Found after fresh Magento 2.4.2 installation

This .htaccess rule in magento base folder works for me (remove the slash before pub/): RewriteEngine on RewriteCond %{REQUEST_URI} !^pub/ RewriteCond %{REQUEST_URI} !^/setup/ RewriteCond %{...
Khoi Ngo's user avatar
  • 280
4 votes

Magento 2.4.2 - Addtocart Button Disabled

In Magento 2.4.2 "Add to Cart" button is disabled in template and is being enabled using js post initialization vendor/magento/module-catalog/view/frontend/web/js/catalog-add-to-cart.js in ...
Rahul Barot's user avatar
  • 1,122
4 votes
Accepted

Multistore not working after upgrading from 2.3.5-p1 to 2.4.2

Problem is solved, I added the following to .htaccess. SetEnvIf Host ^(.*)domain.com MAGE_RUN_CODE=websitecode SetEnvIf Host ^(.*)domain.com MAGE_RUN_TYPE=website
Michiel's user avatar
  • 105
4 votes

frontend and admin not working magento 2.4.2 upgrade

I am really amazed that Magento pushed this to release without documenting it in the release note or "backwards incompatible" changes, but they did. They mention it in the installation notes,...
iphigenie's user avatar
  • 1,749
4 votes
Accepted

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

It looks like the source of the error comes from $section not being an array sometimes, but it wouldn't hurt to also account for array keys on $section not being set when it is an array. PHP's Null ...
sdaugherty's user avatar
  • 1,231
4 votes

Warning: file_put_contents in plugin-list.php and PluginListGenerator.php in Magento 2.4.2 during compilation

Solution for Failed to Open Stream Error While Compiling PluginListGenerator.php in Magento 2.4.1 Open PluginListGenerator.php file located at vendor/magento/framework/Interception. Replace the line $...
Nitish's user avatar
  • 53
4 votes
Accepted

Magento 2.4.2 How to attched PDF in Email?

Here custom career module code with a file attachment in an email. You can download the whole code from here Controller sends email action with attachment. Mital/Careers/Controller/Index/Save.php &...
Mital Shah's user avatar
4 votes

Magento 2.4.2 upgrade from 2.3.4 issue with crons

In magento 2.4 below cron command no longer exist * * * * * /usr/bin/php /var/www/html/magento2/update/cron.php * * * * * /usr/bin/php /var/www/html/magento2/bin/magento setup:cron:run only below is ...
Gohil Rajesh's user avatar
  • 2,955
4 votes
Accepted

How to add CSS that works only in Checkout page Mangento 2.4.2

If CSS is merged then, that merged css will call in all page. Otherwise, you can add css in checkout_index_index.xml file : <head> <css src="Magento_Checkout::css/customcheckout....
Rohan Hapani's user avatar
  • 17.5k
4 votes

How to add CSS that works only in Checkout page Mangento 2.4.2

Create "checkout_index_index.xml" file in module Vendor_Module/view/frontend/layout/checkout_index_index.xml add below code in it. <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-...
Hamendra Sunthwal's user avatar
4 votes

Magento 2.4 Elastic search error: Text fields are not optimised for operations

I am upgrading from 2.3.3 to 2.4.4, and I would like to add to the answers from @hassan-ali-shahzad and @rohit-prajapati that not only is_filterable_in_search but also is_filterable causes problems. ...
JBrada's user avatar
  • 126
4 votes

Magento2.4.2 Too many password reset requests

If you have access to the admin panel, go to Stores -> Settings -> Configuration -> Advanced -> Admin -> Security -> Max Number of Password Reset Requests = 0. You might also check &...
Dan Staver's user avatar
3 votes

access custom customer attribute in email template

To achieve this we need to pass dynamic data through handle.First this is my data which i got in "custom_attributes" - https://prnt.sc/10cvmir Please follow below steps.Please create any ...
ZealousWeb's user avatar
  • 2,108
3 votes
Accepted

Magento 2.4.2 composer install PHP extension errors

The error refers to PHP's curl extension missing and don't see it in your php modules install command. You can run php -m to double-check and confirm it's really missing. If it's missing, you should ...
Diana's user avatar
  • 5,192
3 votes

Upgrade Magento 2.4.1 to 2.4.2

For fixed the issue in your composer.json Change order magento/composer-root-update-plugin, magento/product-community-edition TO magento/product-community-edition, magento/composer-root-update-plugin ...
Navin Bhudiya's user avatar
3 votes

404 Not Found after fresh Magento 2.4.2 installation

The Magento 2.4 is missing the index.php file from root folder as the standard process is to point your web server (nginx/apache) to pub/ folder by default where the index.php file is located. Jus to ...
obsergiu's user avatar
  • 222
3 votes
Accepted

Magento 2.4.2 Installation Giving 404 issue

Check that your webserver serves the requests from the proper location. it should be referencing the <magento_proj_root>/pub folder as Document Root. https://devdocs.magento.com/guides/v2.4/...
Diana's user avatar
  • 5,192
3 votes
Accepted

Specific deploy magento view files

Most probably, your theme is based on Luma, which means Luma will be deployed as well and since Luma is implemented on top of Blank, Blank theme is deployed also. This is a normal behavior related to ...
Diana's user avatar
  • 5,192

Only top scored, non community-wiki answers of a minimum length are eligible