Fatal error: Uncaught Error: Call to a member function getCategoryIds() on null in /home/storesportingcom/public_html/app/code/Magehit/Callforprice/Helper/Data.php:169 Stack trace: #0 /home/storesportingcom/public_html/app/code/Magehit/Callforprice/view/frontend/templates/button.phtml(50): Magehit\Callforprice\Helper\Data->showCallForPriceButton(NULL) #1 /home/storesportingcom/public_html/vendor/magento/framework/View/TemplateEngine/Php.php(59): include('/home/storespor...') #2 /home/storesportingcom/public_html/vendor/magento/framework/View/Element/Template.php(271): Magento\Framework\View\TemplateEngine\Php->render(Object(Magento\Catalog\Block\Product\View\Interceptor), '/home/storespor...', Array) #3 /home/storesportingcom/public_html/vendor/magento/framework/View/Element/Template.php(301): Magento\Framework\View\Element\Template->fetchView('/home/storespor...') #4 /home/storesportingcom/public_html/vendor/magento/framework/View/Element/AbstractBlock.php(668): Magento\Framework\View\Element\Template->_toHtml() #5 /home in /home/storesportingcom/public_html/app/code/Magehit/Callforprice/Helper/Data.php on line 169