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 (Magento\Framework\Exception\LocalizedException): Invalid block type: Magento\Review\Block\Product\Review
Exception #1 (ReflectionException): Class Magento\Review\Block\Product\Review 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): Magento\Framework\View\TemplateEngine\Php->render(Object(vendor\module\Block\Index\Index), '/var/www/html/v...', Array)
#2 /var/www/html/vendor/magento/framework/View/Element/Template.php(301): Magento\Framework\View\Element\Template->fetchView('/var/www/html/v...')
#3 /var/www/html/vendor/magento/framework/View/Element/AbstractBlock.php(1094): Magento\Framework\View\Element\Template->_toHtml()
#4 /var/www/html/vendor/magento/framework/View/Element/AbstractBlock.php(1098): Magento\Framework\View\Element\AbstractBlock->Magento\Framework\View\Element\{closure}()
#5 /var/www/html/vendor/magento/framework/View/Element/AbstractBlock.php(671): Magento\Framework\View\Element\Abst in <b>/var/www/html/vendor/magento/module-catalog/view/frontend/templates/product/view/opengraph/general.phtml</b> on line <b>13</b><br />