Fatal error: Uncaught Error: Call to a member function getToolbarBlock() on boolean in /var/www/sites/intersport.si/app/code/Optiweb/Functions/Observer/CategoryObserver.php:41 Stack trace: #0 /var/www/sites/intersport.si/vendor/magento/framework/Event/Invoker/InvokerDefault.php(72): Optiweb\Functions\Observer\CategoryObserver->execute(Object(Magento\Framework\Event\Observer)) #1 /var/www/sites/intersport.si/vendor/magento/framework/Event/Invoker/InvokerDefault.php(60): Magento\Framework\Event\Invoker\InvokerDefault->_callObserverMethod(Object(Optiweb\Functions\Observer\CategoryObserver), Object(Magento\Framework\Event\Observer)) #2 /var/www/sites/intersport.si/vendor/magento/framework/Event/Manager.php(66): Magento\Framework\Event\Invoker\InvokerDefault->dispatch(Array, Object(Magento\Framework\Event\Observer)) #3 /var/www/sites/intersport.si/generated/code/Magento/Framework/Event/Manager/Proxy.php(95): Magento\Framework\Event\Manager->dispatch('layout_generate...', Array) #4 /var/www/sites/intersport.si/vendor/magento/fr in /var/www/sites/intersport.si/app/code/Optiweb/Functions/Observer/CategoryObserver.php on line 41