Fatal error: Uncaught TypeError: Argument 1 passed to Magento\CatalogSearch\Model\Layer\Category\ItemCollectionProvider::getCollection() must be an instance of Magento\Catalog\Model\Category, instance of MGS\Blog\Model\Category given, called in /home/maruseit/public_html/vendor/magento/module-catalog/Model/Layer.php on line 146 and defined in /home/maruseit/public_html/vendor/magento/module-catalog-search/Model/Layer/Category/ItemCollectionProvider.php:31 Stack trace: #0 /home/maruseit/public_html/vendor/magento/module-catalog/Model/Layer.php(146): Magento\CatalogSearch\Model\Layer\Category\ItemCollectionProvider->getCollection(Object(MGS\Blog\Model\Category)) #1 /home/maruseit/public_html/generated/code/Magento/Catalog/Model/Layer/Category/Interceptor.php(37): Magento\Catalog\Model\Layer->getProductCollection() #2 /home/maruseit/public_html/app/code/Amasty/SeoRichData/Block/JsonLd.php(285): Magento\Catalog\Model\Layer\Category\Interceptor->getProductCollection() #3 /home/maruseit/public_html/app/code/Amasty/SeoRichData/B in /home/maruseit/public_html/vendor/magento/module-catalog-search/Model/Layer/Category/ItemCollectionProvider.php on line 31