Fatal error: Uncaught Error: Call to a member function getId() on null in /opt/bitnami/apps/magento/htdocs/app/design/frontend/Smartwave/porto/Magento_Catalog/templates/product/view/related.phtml:7 Stack trace: #0 /opt/bitnami/apps/magento/htdocs/vendor/magento/framework/View/TemplateEngine/Php.php(59): include() #1 /opt/bitnami/apps/magento/htdocs/vendor/magento/framework/View/Element/Template.php(271): Magento\Framework\View\TemplateEngine\Php->render(Object(Magento\Framework\View\Element\Template), '/opt/bitnami/ap...', Array) #2 /opt/bitnami/apps/magento/htdocs/vendor/magento/framework/View/Element/Template.php(301): Magento\Framework\View\Element\Template->fetchView('/opt/bitnami/ap...') #3 /opt/bitnami/apps/magento/htdocs/vendor/magento/framework/View/Element/AbstractBlock.php(668): Magento\Framework\View\Element\Template->_toHtml() #4 /opt/bitnami/apps/magento/htdocs/vendor/magento/module-email/Model/Template/Filter.php(416): Magento\Framework\View\Element\AbstractBlock->toHtml() #5 [internal function]: Magento\Ema in /opt/bitnami/apps/magento/htdocs/app/design/frontend/Smartwave/porto/Magento_Catalog/templates/product/view/related.phtml on line 7