TransWikia.com

Call to a member function getFrontend() on boolean in Infortis/Brands/Block/AbstractBlock.php

Magento Asked on November 27, 2021

im getting this error on product view page and was wondering if you could help me with this:

    Fatal error: Uncaught Error: Call to a member function getFrontend() on boolean in /home/applian1/public_html/app/code/Infortis/Brands/Block/AbstractBlock.php:161 Stack trace: #0 /home/applian1/public_html/app/code/Infortis/Brands/Block/Logo.php(116): InfortisBrandsBlockAbstractBlock->getBrand(Object(MagentoCatalogModelProductInterceptor)) #1 /home/applian1/public_html/app/code/Infortis/Brands/Block/Logo.php(103): InfortisBrandsBlockLogo->getCurrentBrand() #2 /home/applian1/public_html/vendor/magento/framework/View/Element/AbstractBlock.php(1035): InfortisBrandsBlockLogo->getCacheKeyInfo() #3 /home/applian1/public_html/vendor/magento/framework/View/Element/AbstractBlock.php(1093): MagentoFrameworkViewElementAbstractBlock->getCacheKey() #4 /home/applian1/public_html/vendor/magento/framework/View/Element/AbstractBlock.php(660): MagentoFrameworkViewElementAbstractBlock->_loadCache() #5 /home/applian1/public_html/vendor/magento/framework/View/Layout.php(558): MagentoFrameworkViewElementAbstractBlock-> in /home/applian1/public_html/app/code/Infortis/Brands/Block/AbstractBlock.php on line 161

One Answer

The Block is calling an attribute that doesn't exist anymore. I think in this particular case the Brands extension in Infortis is calling an attribute (by default "manufacturer"). You can check to see if that attribute was not deleted by mistake. If yes, you can recreate the attribute with the same name "manufacturer" and it will solve the problem.

BTW, The problem happens only when the cache block is enabled.

Answered by Mehdi on November 27, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP