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/generated/code/W2/Products/Block/AdditionalCategories/Interceptor.php(427): Magento\Framework\View\Element\Template->fetchView('/home/dcse/publ...') #3 /home/dcse/public_html/vendor/magento/framework/View/Element/Template.php(301): W2\Products\Block\AdditionalCategories\Interceptor->fetchView('/home/dcse/publ...') #4 /home/dcse/public_html/vendor/magento/framework/View/Element/AbstractBlock.php(1099): Magento\Framework\View\Element\Template->_toHtml() #5 /home/dcse/public_html/vendor/magento/frame in /home/dcse/public_html/app/code/W2/Products/view/frontend/templates/additional-categories.phtml on line 3