Fatal error: Uncaught Error: Call to a member function getLayer() on boolean in /var/www/vhosts/furniture7.com/httpdocs/app/code/Hp/CategorySeo/Observer/Category.php:47 Stack trace: #0 /var/www/vhosts/furniture7.com/httpdocs/vendor/magento/framework/Event/Invoker/InvokerDefault.php(73): Hp\CategorySeo\Observer\Category->execute(Object(Magento\Framework\Event\Observer)) #1 /var/www/vhosts/furniture7.com/httpdocs/vendor/magento/framework/Event/Invoker/InvokerDefault.php(61): Magento\Framework\Event\Invoker\InvokerDefault->_callObserverMethod(Object(Hp\CategorySeo\Observer\Category), Object(Magento\Framework\Event\Observer)) #2 /var/www/vhosts/furniture7.com/httpdocs/vendor/magento/framework/Event/Manager.php(66): Magento\Framework\Event\Invoker\InvokerDefault->dispatch(Array, Object(Magento\Framework\Event\Observer)) #3 /var/www/vhosts/furniture7.com/httpdocs/var/generation/Magento/Framework/Event/Manager/Proxy.php(95): Magento\Framework\Event\Manager->dispatch('layout_generate...', Array) #4 /var/www/vhosts/furniture7.com/ in /var/www/vhosts/furniture7.com/httpdocs/app/code/Hp/CategorySeo/Observer/Category.php on line 47