Fatal error: Uncaught Error: Call to a member function getName() on null in /var/www/vhosts/dentaltrey/web/app/code/Scommerce/GoogleTagManagerPro/Helper/Data.php:661 Stack trace: #0 /var/www/vhosts/dentaltrey/web/app/code/Scommerce/GoogleTagManagerPro/Model/Plugin/Catalog/Controller/Category/ViewPlugin.php(60): Scommerce\GoogleTagManagerPro\Helper\Data->getCategoryPath(NULL) #1 /var/www/vhosts/dentaltrey/web/vendor/magento/framework/Interception/Interceptor.php(146): Scommerce\GoogleTagManagerPro\Model\Plugin\Catalog\Controller\Category\ViewPlugin->afterExecute(Object(Smartwave\Porto\Controller\Category\View\Interceptor), Object(Magento\Framework\Controller\Result\Forward\Interceptor)) #2 /var/www/vhosts/dentaltrey/web/vendor/magento/framework/Interception/Interceptor.php(153): Smartwave\Porto\Controller\Category\View\Interceptor->Magento\Framework\Interception\{closure}() #3 /var/www/vhosts/dentaltrey/web/generated/code/Smartwave/Porto/Controller/Category/View/Interceptor.php(26): Smartwave\Porto\Controller\Category\View in /var/www/vhosts/dentaltrey/web/app/code/Scommerce/GoogleTagManagerPro/Helper/Data.php on line 661