Fatal error: Uncaught Error: Call to a member function getChildrenCategories() on null in /opt/bitnami/apps/magento/htdocs/app/code/IQ/Import/Block/CategoryBlock.php:158 Stack trace: #0 [internal function]: IQ\Import\Block\CategoryBlock->getCategories() #1 /opt/bitnami/apps/magento/htdocs/vendor/magento/framework/View/TemplateEngine/Php.php(82): call_user_func_array(Array, Array) #2 /opt/bitnami/apps/magento/htdocs/app/code/IQ/Import/view/frontend/templates/categoryblock.phtml(17): Magento\Framework\View\TemplateEngine\Php->__call('getCategories', Array) #3 /opt/bitnami/apps/magento/htdocs/vendor/magento/framework/View/TemplateEngine/Php.php(59): include('/opt/bitnami/ap...') #4 /opt/bitnami/apps/magento/htdocs/vendor/magento/framework/View/Element/Template.php(271): Magento\Framework\View\TemplateEngine\Php->render(Object(IQ\Import\Block\CategoryBlock), '/opt/bitnami/ap...', Array) #5 /opt/bitnami/apps/magento/htdocs/vendor/magento/framework/View/Element/Template.php(301): Magento\Framework\View\Element\Template->fetchVi in /opt/bitnami/apps/magento/htdocs/app/code/IQ/Import/Block/CategoryBlock.php on line 158