Error: Call to a member function count() on null in /var/www/html/dcgears/app/code/Magefan/Blog/view/frontend/templates/post/list.phtml:19 Stack trace: #0 /var/www/html/dcgears/vendor/magento/framework/View/TemplateEngine/Php.php(71): include() #1 /var/www/html/dcgears/vendor/magento/framework/View/Element/Template.php(273): Magento\Framework\View\TemplateEngine\Php->render() #2 /var/www/html/dcgears/vendor/magento/framework/View/Element/Template.php(303): Magento\Framework\View\Element\Template->fetchView() #3 /var/www/html/dcgears/vendor/magento/framework/View/Element/AbstractBlock.php(1111): Magento\Framework\View\Element\Template->_toHtml() #4 /var/www/html/dcgears/vendor/magento/framework/View/Element/AbstractBlock.php(1115): Magento\Framework\View\Element\AbstractBlock->Magento\Framework\View\Element\{closure}() #5 /var/www/html/dcgears/vendor/magento/framework/View/Element/AbstractBlock.php(675): Magento\Framework\View\Element\AbstractBlock->_loadCache() #6 /var/www/html/dcgears/vendor/magento/module-email/Model/Template/Filter.php(426): Magento\Framework\View\Element\AbstractBlock->toHtml() #7 [internal function]: Magento\Email\Model\Template\Filter->blockDirective() #8 /var/www/html/dcgears/vendor/magento/framework/Filter/DirectiveProcessor/LegacyDirective.php(42): ReflectionMethod->invokeArgs() #9 /var/www/html/dcgears/vendor/magento/framework/Filter/Template.php(184): Magento\Framework\Filter\DirectiveProcessor\LegacyDirective->process() #10 /var/www/html/dcgears/vendor/magento/module-email/Model/Template/Filter.php(1080): Magento\Framework\Filter\Template->filter() #11 /var/www/html/dcgears/app/code/Sm/Market/Block/Cms/Page.php(20): Magento\Email\Model\Template\Filter->filter() #12 /var/www/html/dcgears/vendor/magento/framework/View/Element/AbstractBlock.php(1111): Sm\Market\Block\Cms\Page->_toHtml() #13 /var/www/html/dcgears/vendor/magento/framework/View/Element/AbstractBlock.php(1115): Magento\Framework\View\Element\AbstractBlock->Magento\Framework\View\Element\{closure}() #14 /var/www/html/dcgears/vendor/magento/framework/View/Element/AbstractBlock.php(675): Magento\Framework\View\Element\AbstractBlock->_loadCache() #15 /var/www/html/dcgears/vendor/magento/framework/View/Layout.php(578): Magento\Framework\View\Element\AbstractBlock->toHtml() #16 /var/www/html/dcgears/vendor/magento/framework/View/Layout.php(555): Magento\Framework\View\Layout->_renderBlock() #17 /var/www/html/dcgears/vendor/magento/framework/View/Layout.php(510): Magento\Framework\View\Layout->renderNonCachedElement() #18 /var/www/html/dcgears/vendor/magento/framework/View/Layout.php(606): Magento\Framework\View\Layout->renderElement() #19 /var/www/html/dcgears/vendor/magento/framework/View/Layout.php(557): Magento\Framework\View\Layout->_renderContainer() #20 /var/www/html/dcgears/vendor/magento/framework/View/Layout.php(510): Magento\Framework\View\Layout->renderNonCachedElement() #21 /var/www/html/dcgears/vendor/magento/framework/View/Layout.php(606): Magento\Framework\View\Layout->renderElement() #22 /var/www/html/dcgears/vendor/magento/framework/View/Layout.php(557): Magento\Framework\View\Layout->_renderContainer() #23 /var/www/html/dcgears/vendor/magento/framework/View/Layout.php(510): Magento\Framework\View\Layout->renderNonCachedElement() #24 /var/www/html/dcgears/vendor/magento/framework/View/Layout.php(606): Magento\Framework\View\Layout->renderElement() #25 /var/www/html/dcgears/vendor/magento/framework/View/Layout.php(557): Magento\Framework\View\Layout->_renderContainer() #26 /var/www/html/dcgears/vendor/magento/framework/View/Layout.php(510): Magento\Framework\View\Layout->renderNonCachedElement() #27 /var/www/html/dcgears/vendor/magento/framework/View/Layout.php(606): Magento\Framework\View\Layout->renderElement() #28 /var/www/html/dcgears/vendor/magento/framework/View/Layout.php(557): Magento\Framework\View\Layout->_renderContainer() #29 /var/www/html/dcgears/vendor/magento/framework/View/Layout.php(510): Magento\Framework\View\Layout->renderNonCachedElement() #30 /var/www/html/dcgears/vendor/magento/framework/View/Layout.php(606): Magento\Framework\View\Layout->renderElement() #31 /var/www/html/dcgears/vendor/magento/framework/View/Layout.php(557): Magento\Framework\View\Layout->_renderContainer() #32 /var/www/html/dcgears/vendor/magento/framework/View/Layout.php(510): Magento\Framework\View\Layout->renderNonCachedElement() #33 /var/www/html/dcgears/vendor/magento/framework/View/Layout.php(606): Magento\Framework\View\Layout->renderElement() #34 /var/www/html/dcgears/vendor/magento/framework/View/Layout.php(557): Magento\Framework\View\Layout->_renderContainer() #35 /var/www/html/dcgears/vendor/magento/framework/View/Layout.php(510): Magento\Framework\View\Layout->renderNonCachedElement() #36 /var/www/html/dcgears/vendor/magento/framework/View/Layout.php(606): Magento\Framework\View\Layout->renderElement() #37 /var/www/html/dcgears/vendor/magento/framework/View/Layout.php(557): Magento\Framework\View\Layout->_renderContainer() #38 /var/www/html/dcgears/vendor/magento/framework/View/Layout.php(510): Magento\Framework\View\Layout->renderNonCachedElement() #39 /var/www/html/dcgears/vendor/magento/framework/View/Layout.php(606): Magento\Framework\View\Layout->renderElement() #40 /var/www/html/dcgears/vendor/magento/framework/View/Layout.php(557): Magento\Framework\View\Layout->_renderContainer() #41 /var/www/html/dcgears/vendor/magento/framework/View/Layout.php(510): Magento\Framework\View\Layout->renderNonCachedElement() #42 /var/www/html/dcgears/vendor/magento/framework/View/Layout.php(606): Magento\Framework\View\Layout->renderElement() #43 /var/www/html/dcgears/vendor/magento/framework/View/Layout.php(557): Magento\Framework\View\Layout->_renderContainer() #44 /var/www/html/dcgears/vendor/magento/framework/View/Layout.php(510): Magento\Framework\View\Layout->renderNonCachedElement() #45 /var/www/html/dcgears/vendor/magento/framework/View/Layout.php(975): Magento\Framework\View\Layout->renderElement() #46 /var/www/html/dcgears/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\View\Layout->getOutput() #47 /var/www/html/dcgears/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\View\Layout\Interceptor->___callParent() #48 /var/www/html/dcgears/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\View\Layout\Interceptor->Magento\Framework\Interception\{closure}() #49 /var/www/html/dcgears/generated/code/Magento/Framework/View/Layout/Interceptor.php(41): Magento\Framework\View\Layout\Interceptor->___callPlugins() #50 /var/www/html/dcgears/vendor/magento/framework/View/Result/Page.php(258): Magento\Framework\View\Layout\Interceptor->getOutput() #51 /var/www/html/dcgears/vendor/magento/framework/View/Result/Layout.php(171): Magento\Framework\View\Result\Page->render() #52 /var/www/html/dcgears/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\View\Result\Layout->renderResult() #53 /var/www/html/dcgears/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\View\Result\Page\Interceptor->___callParent() #54 /var/www/html/dcgears/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\View\Result\Page\Interceptor->Magento\Framework\Interception\{closure}() #55 /var/www/html/dcgears/generated/code/Magento/Framework/View/Result/Page/Interceptor.php(32): Magento\Framework\View\Result\Page\Interceptor->___callPlugins() #56 /var/www/html/dcgears/vendor/magento/framework/App/Http.php(120): Magento\Framework\View\Result\Page\Interceptor->renderResult() #57 /var/www/html/dcgears/vendor/magento/framework/App/Bootstrap.php(263): Magento\Framework\App\Http->launch() #58 /var/www/html/dcgears/index.php(40): Magento\Framework\App\Bootstrap->run() #59 {main}