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/Interception/Interceptor.php(58): 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/Interception/Interceptor.php(138): Magento\Framework\View\TemplateEngine\Php\Interceptor->___callParent('render', Array) #3 /opt/bitnami/apps/magento/htdocs/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\View\TemplateEngine\Php\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\View\Element\Template), '/opt/bitnami/ap...', Array) #4 /opt/bitnami/apps/magento/htdocs/generated/c in /opt/bitnami/apps/magento/htdocs/app/design/frontend/Smartwave/porto/Magento_Catalog/templates/product/view/related.phtml on line 7