27 votes
Accepted

Magento2 - Class Magento\Catalog\Model\Product\Attribute\Backend\LayoutUpdate does not exist

The issue is in your database I noticed in Magento 2.3.4, they created the LayoutUpdate file with the attributes custom_layout_update_file. When we revert back, the attribute calling the file and ...
Sathishkumar's user avatar
19 votes
Accepted

Fatal error: Uncaught Error: Call to a member function getSectionNames() after upgrading to 2.3.4

We found the solution here: https://github.com/magento/magento2/issues/26647 We've overridden the vendor/magento/module-customer/view/frontend/layout/default.xml in our custom theme. So, changing ...
mapetek's user avatar
  • 387
18 votes
Accepted

magento 2.3.4 cannot call methods on tabs prior to initialization; attempted to call method 'activate'

Try this one. The issue may be resolved by putting the below code into the details.phtml of Magento_Catalog module. <script type="text/javascript"> require(['jquery','jquery/ui'], function($...
sandip's user avatar
  • 3,954
16 votes

magento 2.3.4 cannot call methods on tabs prior to initialization; attempted to call method 'activate'

In Magento 2.3.3, Magento split the jquery/ui module into smaller parts. See https://github.com/magento/magento2/issues/22995. Code should not depend on the big jquery/ui module anymore, but on ...
Simon's user avatar
  • 5,725
15 votes

Magento 2 - css source maps not working

In magento 2.4.4 I had same problem. I fixed it by downgrading to "grunt-contrib-less": "1.4.1" in package.json and running npm install again.
Vince Verhoeven's user avatar
12 votes

How to create a custom module for crud operations in the step by step in frontend of magento2.3.4?

Repository Model Repositories give service requestors the ability to perform create, read, update, and delete (CRUD) operations on entities or a list of entities. A repository is an example of a ...
Mathanagopal S's user avatar
10 votes
Accepted

M 2.3.4 - "Infinite loop detected..." exception on OPC, how to get items in the cart?

Getting items directly from session was causing this error so I only got quote id from session and then used CartRepositoryInterface to retrieve items. $session = $objectManager->get('\Magento\...
Alan's user avatar
  • 927
10 votes

Problems with friendsofphp/php-cs-fixer and php7.3

1.composer require magento/composer-root-update-plugin=~1.0 --no-update open composer.json and change: from - "friendsofphp/php-cs-fixer": "~2.xx.x", to + "...
Vvvaida's user avatar
  • 568
10 votes

Undefined class constant 'PDO::MYSQL_ATTR_SSL_KEY' in/magento/setup/src/Magento/Setup/Model/ConfigOptionsList.php:179 in magento localhost

Could make sure that you have installed the php-pdo and php-mysql packages? Maybe you have different PHP versions installed. Check first which PHP version you are using php --version then install ...
Darokthar's user avatar
  • 299
9 votes

Wrong file in vendor/magento/framework/Image/Adapter/Gd2.php:64 when i install magento 2.3

i was trying to install Magento 2.3.5-p1 on WINDOWS 7 (32 bit) (yes it's out of date) and i run into the same error. as per this thread, the error seems to be related to Windows platforms and the ...
cizario's user avatar
  • 191
8 votes

"Layout Update XML" field in Magento2 admin is missing

The functionality of custom layout updates was removed from Magento to remove the opportunity for Remote Code Execution, so there no way to return it back see: https://devdocs.magento.com/guides/v2.3/...
KAndy's user avatar
  • 20.8k
8 votes

magento 2.3.4 installation issue in localhost

please use the below solution vendor/magento/framework/DB/Adapter/Pdo/Mysql.php line 1846 after line case 'smallint': add case 'smallint unsigned': and after line case 'int': add case 'int ...
Smita Kagwade's user avatar
7 votes

"Layout Update XML" field in Magento2 admin is missing

They go in app/design/frontend/<your_vendor_name>/<your_theme_name>/Magento_Cms/layout/ The file name should be like cms_page_view_selectable_<url-key>_<name>.xml The name is ...
barrakuda's user avatar
  • 151
6 votes

Problems with friendsofphp/php-cs-fixer and php7.3

The issue is that php-cs-fixer does not support PHP versions above 7.3. php-cs-fixee is only a dev dependencies though, that just fixes code style issues. So if you are in a production environment ...
Sam's user avatar
  • 1,900
6 votes
Accepted

Where can I find a feature list for venia storefront for magento PWA studio?

Features of PWA(Venia storefront) are fast, responsive, Cross-browser compatible, Offline Mode, Mobile “Install”, Shareable content. Please refer the official documentation for more info. For ...
Bilal Usean's user avatar
  • 9,947
5 votes
Accepted

Magento 2 Vue Storefront error can't start docker in background

Answering your question Implementing vue is possible without docker? In development mode of vuestorefront, you need to install docker from here You can bypass docker in production mode as ...
Rizwan Khan's user avatar
  • 1,939
5 votes
Accepted

Purge specific Link from Magento 2 Varnish

The result of your curl command would help? If empty try adding -I. Solution from the comments: Add any or both of the mentioned headers in your curl. curl -X PURGE -H 'X-Magento-Tags-Pattern: .*' ...
apeters's user avatar
  • 121
5 votes
Accepted

How to get Customer Address in formated way and print it - Magento2.3

create Model app/code/VendoreName/ModuleName/Model CustomerAddress.php <?php namespace VendoreName\ModuleName\Model; use Magento\Framework\Model\AbstractModel; use VendoreName\ModuleName\Model\...
Msquare's user avatar
  • 9,043
5 votes
Accepted

v2.3.4 Customer Import - Please enter a valid region

Managed to solve it (well a colleague managed to solve it). I think it was an issue with one of the updates up to Magento 2.3.4, it basically tries to validate a region against a country even if the ...
Thomas Harding's user avatar
4 votes
Accepted

Unable to load theme by specified key: ''" Magento 2.3.4

you add wrong path for di.xml Before Vendor/ModuleAdminTheme/etc/edminhtml/di.xml After Vendor/ModuleAdminTheme/etc/di.xml
mrtuvn's user avatar
  • 3,263
4 votes

Unable to load theme by specified key: ''" Magento 2.3.4

I had the exact same issue yesterday with a custom frontend theme after updating from 2.3.1 to 2.3.4. I fixed the issue by changing the settings in Content/Design/Configuration. I only had the last ...
Dali Abassi's user avatar
4 votes

Magento 2.3.4 - infinite loop on checkout buttons

change in file vendor/magento/module-checkout/Model/Session.php This error comes in 2.3.4 or later versions because of if($quote->getTotalsCollectedFlag() === false) { $quote->collectTotals(); } ...
Amit Hariyani's user avatar
4 votes

Uncaught ReferenceError: Unable to process binding "if: function(){return isExcludingDisplayed() }" After Magento 2.3.4 Upgrade Checkout Cart Page

The problem might be caused due to the incorrect value or no value available for the isExcludingDisplayed() and haveToShowCoupon() functions. These two functions are available in shipping.js file ...
Sathishkumar's user avatar
4 votes

Magento 2.3.4 - Error: Call to a member function getAttributeCode()

In my case the attribute was not existed so I was needed to restore missed eav entities. Did it with \Magento\Catalog\Setup\Patch\Data\UpdateCustomLayoutAttributes Data Patch Just remove the ...
Anton D.'s user avatar
4 votes

Magento 2.3.4 - Error: Call to a member function getAttributeCode()

I faced this issue after upgraded from Magento 2.3.3 to 2.4.0. Categories cannot save and some products page do not work. I solved this with the below simple steps: Go to your Magento database and ...
Ye Yint's user avatar
  • 79
4 votes

Mostly viewed products are not in report_viewed_product_index table in magento 2.3.4

To check this you can go to: Stores -> Configuration -> General -> Reports Check if the reports are enabled.
alexdragomirescu's user avatar
4 votes

Missing required argument $to of Magento\\Framework\\Mail\\EmailMessage. Magento 2.3.4

Error was, I was passing $to value in array as: $to = array($email); Which was working in version 2.3.2. Now I changed it to: $to = $email; It solved the error in 2.3.4. I hope it helps others.
Ajwad Syed's user avatar
  • 1,591
4 votes

User is getting logged out when they tried to change the password from my accounts section

This is the expected behavior from 2.3.4-p2. We can see this has a new update from 2.3.5 release notes https://devdocs.magento.com/guides/v2.3/release-notes/release-notes-2-3-5-open-source.html#...
Karuppana Samy Periasamy's user avatar
4 votes

How to save multiselect values programmtically in magento 2?

Try this code protected $productRepository; public function __construct( ......................................................... \Magento\Catalog\Model\ProductRepository $productRepository,...
Msquare's user avatar
  • 9,043
4 votes
Accepted

How to get Logged in Customer ID

If you cannot customer id at your block class when your page hit at full page cache. You have to pass the customer id as an HTTP context variable. See https://devdocs.magento.com/guides/v2.3/extension-...
Amit Bera's user avatar
  • 77.4k

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