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 ...
11
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.
...
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/...
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 ...
8
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 ...
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"
...
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 &...
7
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 ...
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/...
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 ...
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-&...
5
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(...
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 %{...
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 ...
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
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,...
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 ...
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
$...
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
&...
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 ...
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....
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-...
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.
...
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 ...
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 ...
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
...
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 ...
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/...
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 ...
3
votes
Accepted
Magento2.4.2 multi website setup not working
Magento 2.4.2 now enforces the best practice of serving all content from magento_root/pub.
Most sites won't notice this change because of the rewrites in the 2.4.2 version of magento_root/.htaccess
...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
magento2.4.2 × 334magento2 × 144
magento2.4 × 51
magento2.3 × 20
elasticsearch × 16
php × 12
magento2.4.3 × 12
admin × 10
magento2.4.1 × 10
error × 9
magento2.4.2-p1 × 8
event-observer × 7
css × 7
uicomponent × 7
installation × 7
magento2.4.0 × 7
database × 6
javascript × 6
frontend × 6
magento-upgrade × 6
magento2.4.4 × 6
magento2.4.5 × 6
magento-2.1 × 5
product × 5
checkout × 5