Fatal error: Uncaught Error: Call to a member function getDisplayMode() on boolean in /home/lui/magento2.2.0/app/code/Staylime/LuicellasWidgets/Controller/Catalog/Category/View.php:21 Stack trace: #0 /home/lui/magento2.2.0/vendor/magento/module-catalog/Controller/Category/View.php(158): Staylime\LuicellasWidgets\Controller\Catalog\Category\View->_initCategory() #1 /home/lui/magento2.2.0/vendor/magento/framework/App/Action/Action.php(107): Magento\Catalog\Controller\Category\View->execute() #2 /home/lui/magento2.2.0/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\App\Action\Action->dispatch(Object(Magento\Framework\App\Request\Http)) #3 /home/lui/magento2.2.0/vendor/magento/framework/Interception/Interceptor.php(138): Staylime\LuicellasWidgets\Controller\Catalog\Category\View\Interceptor->___callParent('dispatch', Array) #4 /home/lui/magento2.2.0/vendor/magento/framework/Interception/Interceptor.php(153): Staylime\LuicellasWidgets\Controller\Catalog\Category\View\Interceptor->Magento\Framework\ in /home/lui/magento2.2.0/app/code/Staylime/LuicellasWidgets/Controller/Catalog/Category/View.php on line 21