Fatal error: Uncaught Error: Call to a member function getName() on null in /cache/app/code/Bss/FacebookPixel/Block/Code.php:421 Stack trace: #0 /cache/app/code/Bss/FacebookPixel/Block/Code.php(202): Bss\FacebookPixel\Block\Code->getProductData() #1 /cache/app/code/Bss/FacebookPixel/view/frontend/templates/code.phtml(26): Bss\FacebookPixel\Block\Code->getProduct() #2 /cache/vendor/magento/framework/View/TemplateEngine/Php.php(59): include('/cache/app/code...') #3 /cache/vendor/magento/framework/View/Element/Template.php(270): Magento\Framework\View\TemplateEngine\Php->render(Object(Bss\FacebookPixel\Block\Code), '/cache/app/code...', Array) #4 /cache/vendor/magento/framework/View/Element/Template.php(300): Magento\Framework\View\Element\Template->fetchView('/cache/app/code...') #5 /cache/vendor/magento/framework/View/Element/AbstractBlock.php(667): Magento\Framework\View\Element\Template->_toHtml() #6 /cache/vendor/magento/framework/View/Layout.php(565): Magento\Framework\View\Element\AbstractBlock->toHtml() #7 /cache/ven in /cache/app/code/Bss/FacebookPixel/Block/Code.php on line 421