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/app/code/Emizentech/CategoryWidget/view/frontend/templates/widget/categorywidget.phtml(2): Magento\Framework\View\TemplateEngine\Php->__call('getCategoryColl...', Array) #3 /home/scontoli/public_html/vendor/magento/framework/View/TemplateEngine/Php.php(59): include('/home/scontoli/...') #4 /home/scontoli/public_html/vendor/magento/framework/View/Element/Template.php(270): Magento\Framework\View\TemplateEngine\Php->render(Object(Emizentech\CategoryWidget\Block\Widget\CategoryWidget), '/home/scontoli/...', Array) #5 /home/scontoli/public_html/vendor/magento/framework/View/Elem in /home/scontoli/public_html/app/code/Emizentech/CategoryWidget/Block/Widget/CategoryWidget.php on line 45