Fatal error: Uncaught Error: Call to a member function getConnection() on null in /opt/magento/public_html/app/code/Ves/Blog/Model/Post.php:122 Stack trace: #0 /opt/magento/public_html/app/code/Ves/Blog/Block/Post/View.php(128): Ves\Blog\Model\Post->getPostCategories() #1 /opt/magento/public_html/app/code/Ves/Blog/Block/Post/View.php(178): Ves\Blog\Block\Post\View->_addBreadcrumbs() #2 /opt/magento/public_html/vendor/magento/framework/View/Element/AbstractBlock.php(273): Ves\Blog\Block\Post\View->_prepareLayout() #3 /opt/magento/public_html/vendor/magento/framework/View/Layout/Generator/Block.php(149): Magento\Framework\View\Element\AbstractBlock->setLayout(Object(Magento\Framework\View\Layout\Interceptor)) #4 /opt/magento/public_html/vendor/magento/framework/View/Layout/GeneratorPool.php(81): Magento\Framework\View\Layout\Generator\Block->process(Object(Magento\Framework\View\Layout\Reader\Context), Object(Magento\Framework\View\Layout\Generator\Context)) #5 /opt/magento/public_html/vendor/magento/framework/View/Layout.p in /opt/magento/public_html/app/code/Ves/Blog/Model/Post.php on line 122