Fatal error: Uncaught Error: Call to a member function getTotalCount() on null in /home/dcse/public_html/app/code/W2/Products/view/frontend/templates/additional-categories.phtml:3 Stack trace: #0 /home/dcse/public_html/vendor/magento/framework/View/TemplateEngine/Php.php(59): include() #1 /home/dcse/public_html/vendor/magento/framework/View/Element/Template.php(271): Magento\Framework\View\TemplateEngine\Php->render(Object(W2\Products\Block\AdditionalCategories\Interceptor), '/home/dcse/publ...', Array) #2 /home/dcse/public_html/vendor/magento/framework/View/Element/Template.php(301): Magento\Framework\View\Element\Template->fetchView('/home/dcse/publ...') #3 /home/dcse/public_html/vendor/magento/framework/View/Element/AbstractBlock.php(1099): Magento\Framework\View\Element\Template->_toHtml() #4 /home/dcse/public_html/vendor/magento/framework/View/Element/AbstractBlock.php(1103): Magento\Framework\View\Element\AbstractBlock->Magento\Framework\View\Element\{closure}() #5 /home/dcse/public_html/vendor/magento/framework/Vie in /home/dcse/public_html/app/code/W2/Products/view/frontend/templates/additional-categories.phtml on line 3