Fatal error: Uncaught Error: Call to a member function addAttributeToSelect() on array in /home/scontoli/public_html/app/code/Emizentech/CategoryWidget/Block/Widget/CategoryWidget.php:45 Stack trace: #0 [internal function]: Emizentech\CategoryWidget\Block\Widget\CategoryWidget->getCategoryCollection() #1 /home/scontoli/public_html/vendor/magento/framework/View/TemplateEngine/Php.php(82): call_user_func_array(Array, Array) #2 /home/scontoli/public_html/generated/code/Magento/Framework/View/TemplateEngine/Php/Interceptor.php(37): Magento\Framework\View\TemplateEngine\Php->__call('getCategoryColl...', Array) #3 /home/scontoli/public_html/app/code/Emizentech/CategoryWidget/view/frontend/templates/widget/categorywidget.phtml(2): Magento\Framework\View\TemplateEngine\Php\Interceptor->__call('getCategoryColl...', Array) #4 /home/scontoli/public_html/vendor/magento/framework/View/TemplateEngine/Php.php(59): include('/home/scontoli/...') #5 /home/scontoli/public_html/vendor/magento/framework/Interception/Interceptor.php(58): Magen in /home/scontoli/public_html/app/code/Emizentech/CategoryWidget/Block/Widget/CategoryWidget.php on line 45