Fatal error: Uncaught Error: Call to a member function getAttributeId() on boolean in /var/www/html/app/code/Emedic/ShopByBrand/Block/View.php:118 Stack trace: #0 /var/www/html/app/code/Emedic/ShopByBrand/Block/View.php(58): Emedic\ShopByBrand\Block\View->getProductCollection() #1 /var/www/html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(93): Emedic\ShopByBrand\Block\View->__construct(Object(Magento\Catalog\Block\Product\Context), Object(Magento\Catalog\Model\ResourceModel\Product\CollectionFactory), Object(Magento\Catalog\Model\Product\Visibility), Object(Magento\Framework\App\Http\Context), Object(Emedic\ShopByBrand\Model\BrandFactory), Array) #2 /var/www/html/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(89): Magento\Framework\ObjectManager\Factory\AbstractFactory->createObject('Emedic\\ShopByBr...', Array) #3 /var/www/html/vendor/magento/framework/ObjectManager/ObjectManager.php(57): Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create('Emedic\\ShopByBr...', A in /var/www/html/app/code/Emedic/ShopByBrand/Block/View.php on line 118