Fatal error: Uncaught Error: Call to a member function addAttributeToFilter() on array in /var/www/SitioWeb.Magento2/app/code/Matt/LayeredNavigation/ViewModel/Filter.php:191 Stack trace: #0 /var/www/SitioWeb.Magento2/app/code/Matt/LayeredNavigation/ViewModel/Filter.php(154): Matt\LayeredNavigation\ViewModel\Filter->getCategoryFilterItem(Object(Magento\Catalog\Model\Category\Interceptor)) #1 /var/www/SitioWeb.Magento2/app/design/frontend/Mattelsa/ThemeMattStore/Magento_LayeredNavigation/templates/layer/view.phtml(17): Matt\LayeredNavigation\ViewModel\Filter->getCategoryFilters() #2 /var/www/SitioWeb.Magento2/vendor/magento/framework/View/TemplateEngine/Php.php(59): include('/var/www/SitioW...') #3 /var/www/SitioWeb.Magento2/vendor/magento/framework/View/Element/Template.php(271): Magento\Framework\View\TemplateEngine\Php->render(Object(Magento\LayeredNavigation\Block\Navigation), '/var/www/SitioW...', Array) #4 /var/www/SitioWeb.Magento2/vendor/magento/framework/View/Element/Template.php(301): Magento\Framework\View\Elemen in /var/www/SitioWeb.Magento2/app/code/Matt/LayeredNavigation/ViewModel/Filter.php on line 191