Fatal error: Uncaught Error: Call to a member function getLayer() on boolean in /www/sites/www.sweetmarias.com/files/custom/Forix_Custom/app/code/Forix/Custom/Observer/Category.php:58 Stack trace: #0 /www/sites/www.sweetmarias.com/files/html/vendor/magento/framework/Event/Invoker/InvokerDefault.php(72): Forix\Custom\Observer\Category->execute(Object(Magento\Framework\Event\Observer)) #1 /www/sites/www.sweetmarias.com/files/html/vendor/magento/framework/Event/Invoker/InvokerDefault.php(60): Magento\Framework\Event\Invoker\InvokerDefault->_callObserverMethod(Object(Forix\Custom\Observer\Category), Object(Magento\Framework\Event\Observer)) #2 /www/sites/www.sweetmarias.com/files/html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\Event\Invoker\InvokerDefault->dispatch(Array, Object(Magento\Framework\Event\Observer)) #3 /www/sites/www.sweetmarias.com/files/html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\Event\Invoker\InvokerDefault\Interceptor->___callParent('di in /www/sites/www.sweetmarias.com/files/custom/Forix_Custom/app/code/Forix/Custom/Observer/Category.php on line 58