Fatal error: Uncaught Error: Call to a member function getData() on null in /var/www/html/mikyajy/app/code/Kojindia/Catalog/Block/Index.php:72 Stack trace: #0 /var/www/html/mikyajy/app/design/frontend/Koj/Arabic/Magento_Catalog/templates/product/view/details.phtml(11): Kojindia\Catalog\Block\Index->getProductDetails('learn_more') #1 /var/www/html/mikyajy/vendor/magento/framework/View/TemplateEngine/Php.php(59): include('/var/www/html/m...') #2 /var/www/html/mikyajy/vendor/magento/framework/View/Element/Template.php(271): Magento\Framework\View\TemplateEngine\Php->render(Object(Magento\Catalog\Block\Product\View\Details\Interceptor), '/var/www/html/m...', Array) #3 /var/www/html/mikyajy/vendor/magento/framework/View/Element/Template.php(301): Magento\Framework\View\Element\Template->fetchView('/var/www/html/m...') #4 /var/www/html/mikyajy/vendor/magento/framework/View/Element/AbstractBlock.php(1099): Magento\Framework\View\Element\Template->_toHtml() #5 /var/www/html/mikyajy/vendor/magento/framework/View/Element/AbstractBl in /var/www/html/mikyajy/app/code/Kojindia/Catalog/Block/Index.php on line 72