Fatal error: Uncaught Error: Call to a member function getLevel() on null in /home/smoochba/public_html/app/code/Sebwite/Sidebar/view/frontend/templates/sidebar.phtml:13 Stack trace: #0 /home/smoochba/public_html/vendor/magento/framework/View/TemplateEngine/Php.php(59): include() #1 /home/smoochba/public_html/vendor/magento/framework/View/Element/Template.php(270): Magento\Framework\View\TemplateEngine\Php->render(Object(Sebwite\Sidebar\Block\Sidebar), '/home/smoochba/...', Array) #2 /home/smoochba/public_html/vendor/magento/framework/View/Element/Template.php(300): Magento\Framework\View\Element\Template->fetchView('/home/smoochba/...') #3 /home/smoochba/public_html/vendor/magento/framework/View/Element/AbstractBlock.php(667): Magento\Framework\View\Element\Template->_toHtml() #4 /home/smoochba/public_html/vendor/magento/framework/View/Layout.php(558): Magento\Framework\View\Element\AbstractBlock->toHtml() #5 /home/smoochba/public_html/vendor/magento/framework/View/Layout.php(534): Magento\Framework\View\Layout->_renderB in /home/smoochba/public_html/app/code/Sebwite/Sidebar/view/frontend/templates/sidebar.phtml on line 13