Fatal error: Uncaught Error: Call to a member function getId() on array in /home/greatd19/public_html/app/design/frontend/Sm/Adol/Magento_Catalog/templates/category/category-top-block.phtml:137
Stack trace:
#0 /home/greatd19/public_html/vendor/magento/framework/View/TemplateEngine/Php.php(59): include()
#1 /home/greatd19/public_html/vendor/magento/framework/View/Element/Template.php(271): Magento\Framework\View\TemplateEngine\Php->render(Object(Adolmedia\MerchantCatalog\Block\Category\TopBlock), '/home/greatd19/...', Array)
#2 /home/greatd19/public_html/vendor/magento/framework/View/Element/Template.php(301): Magento\Framework\View\Element\Template->fetchView('/home/greatd19/...')
#3 /home/greatd19/public_html/vendor/magento/framework/View/Element/AbstractBlock.php(1097): Magento\Framework\View\Element\Template->_toHtml()
#4 /home/greatd19/public_html/vendor/magento/framework/View/Element/AbstractBlock.php(1101): Magento\Framework\View\Element\AbstractBlock->Magento\Framework\View\Element\{closure}()
#5 /home/greatd19/pub in
/home/greatd19/public_html/app/design/frontend/Sm/Adol/Magento_Catalog/templates/category/category-top-block.phtml on line
137