Fatal error: Uncaught Error: Call to a member function count() on null in /var/www/html/app/design/frontend/Alothemes/savio1/Magiccart_Magicproduct/templates/product/grid.phtml:47 Stack trace: #0 /var/www/html/vendor/magento/framework/View/TemplateEngine/Php.php(59): include() #1 /var/www/html/vendor/magento/framework/View/Element/Template.php(270): Magento\Framework\View\TemplateEngine\Php->render(Object(Magiccart\Magicproduct\Block\Product\GridProduct\Interceptor), '/var/www/html/a...', Array) #2 /var/www/html/generated/code/Magiccart/Magicproduct/Block/Product/GridProduct/Interceptor.php(583): Magento\Framework\View\Element\Template->fetchView('/var/www/html/a...') #3 /var/www/html/vendor/magento/framework/View/Element/Template.php(300): Magiccart\Magicproduct\Block\Product\GridProduct\Interceptor->fetchView('/var/www/html/a...') #4 /var/www/html/vendor/magento/framework/View/Element/AbstractBlock.php(667): Magento\Framework\View\Element\Template->_toHtml() #5 /var/www/html/generated/code/Magiccart/Magicproduct/Block/P in /var/www/html/app/design/frontend/Alothemes/savio1/Magiccart_Magicproduct/templates/product/grid.phtml on line 47