Fatal error: Uncaught Error: Call to a member function getId() on null in /var/www/magento/jgourmet_live/app/code/Magefan/Blog/Model/Url.php:196
Stack trace:
#0 /var/www/magento/jgourmet_live/app/code/Magefan/Blog/Model/Post.php(346): Magefan\Blog\Model\Url->getCanonicalUrl(Object(Magefan\Blog\Model\Post))
#1 /var/www/magento/jgourmet_live/app/code/Magefan/Blog/Block/Post/View.php(44): Magefan\Blog\Model\Post->getCanonicalUrl()
#2 /var/www/magento/jgourmet_live/vendor/magento/framework/View/Element/AbstractBlock.php(285): Magefan\Blog\Block\Post\View->_prepareLayout()
#3 /var/www/magento/jgourmet_live/vendor/magento/framework/View/Layout/Generator/Block.php(149): Magento\Framework\View\Element\AbstractBlock->setLayout(Object(Magento\Framework\View\Layout\Interceptor))
#4 /var/www/magento/jgourmet_live/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) in /var/www/magento/jgourmet_live/app/code/Magefan/Blog/Model/Url.php on line 196