I’m trying to open the product detail page from the listing page but its not working, and its showing the below error:
2 exception(s):
Exception #0 (MagentoFrameworkExceptionLocalizedException): Invalid block type: MagentoReviewBlockProductReview
Exception #1 (ReflectionException): Class MagentoReviewBlockProductReview does not exist
Can anyone please help me to rectify this error?
When I try to open the product page, its not opening and I can see the below error in view-source:
<meta property="og:type" content="product" />
<meta property="og:title" content="<br />
<b>Fatal error</b>: Uncaught Error: Call to a member function getName() on null in /var/www/html/vendor/magento/module-catalog/view/frontend/templates/product/view/opengraph/general.phtml:13
Stack trace:
#0 /var/www/html/vendor/magento/framework/View/TemplateEngine/Php.php(59): include()
#1 /var/www/html/vendor/magento/framework/View/Element/Template.php(271): MagentoFrameworkViewTemplateEnginePhp->render(Object(vendormoduleBlockIndexIndex), '/var/www/html/v...', Array)
#2 /var/www/html/vendor/magento/framework/View/Element/Template.php(301): MagentoFrameworkViewElementTemplate->fetchView('/var/www/html/v...')
#3 /var/www/html/vendor/magento/framework/View/Element/AbstractBlock.php(1094): MagentoFrameworkViewElementTemplate->_toHtml()
#4 /var/www/html/vendor/magento/framework/View/Element/AbstractBlock.php(1098): MagentoFrameworkViewElementAbstractBlock->MagentoFrameworkViewElement{closure}()
#5 /var/www/html/vendor/magento/framework/View/Element/AbstractBlock.php(671): MagentoFrameworkViewElementAbst in <b>/var/www/html/vendor/magento/module-catalog/view/frontend/templates/product/view/opengraph/general.phtml</b> on line <b>13</b><br />