Fatal error: Uncaught Error: Call to a member function getData() on array in /home/avalontest/public_html/app/design/frontend/Sm/market/Magento_Catalog/templates/product/list/shopbycatgry.phtml:42 Stack trace: #0 /home/avalontest/public_html/vendor/magento/framework/View/TemplateEngine/Php.php(59): include() #1 /home/avalontest/public_html/vendor/magento/framework/View/Element/Template.php(270): Magento\Framework\View\TemplateEngine\Php->render(Object(Magento\Catalog\Block\Product\ProductList\Toolbar), '/home/avalontes...', Array) #2 /home/avalontest/public_html/vendor/magento/framework/View/Element/Template.php(300): Magento\Framework\View\Element\Template->fetchView('/home/avalontes...') #3 /home/avalontest/public_html/vendor/magento/framework/View/Element/AbstractBlock.php(667): Magento\Framework\View\Element\Template->_toHtml() #4 /home/avalontest/public_html/app/design/frontend/Sm/market/Magento_Catalog/templates/product/list.phtml(35): Magento\Framework\View\Element\AbstractBlock->toHtml() #5 /home/avalontest/public in /home/avalontest/public_html/app/design/frontend/Sm/market/Magento_Catalog/templates/product/list/shopbycatgry.phtml on line 42