#StackBounty: #layered-navigation #magento2.3 Magento2.3 : Layered Navigation issue

Bounty: 50

I’m working on Magento 2.3 and has a new issue when call block on custom view:

$layer=$layout->createBlock(‘MagentoLayeredNavigationBlockNavigationCategory’);

Exception #0 (RuntimeException): Illegal state
#0 /home/httpdocs/generated/code/Magento/CatalogSearch/Model/ResourceModel/Fulltext/Collection/Interceptor.php(63):
MagentoCatalogSearchModelResourceModelFulltextCollection->addFieldToFilter(‘category_ids’,
‘169’)
#1 /home/httpdocs/vendor/magento/module-catalog-search/Model/ResourceModel/Fulltext/Collection.php(479):
MagentoCatalogSearchModelResourceModelFulltextCollectionInterceptor->addFieldToFilter(‘category_ids’,
‘169’)
#2 /home/httpdocs/generated/code/Magento/CatalogSearch/Model/ResourceModel/Fulltext/Collection/Interceptor.php(128):
MagentoCatalogSearchModelResourceModelFulltextCollection->addCategoryFilter(Object(MagentoCatalogModelCategoryInterceptor))
#3 /home/httpdocs/vendor/magento/module-catalog-search/Model/Layer/Filter/Category.php(76):
MagentoCatalogSearchModelResourceModelFulltextCollectionInterceptor->addCategoryFilter(Object(MagentoCatalogModelCategoryInterceptor))
#4 /home/httpdocs/vendor/magento/module-layered-navigation/Block/Navigation.php(67):
MagentoCatalogSearchModelLayerFilterCategory->apply(Object(MagentoFrameworkAppRequestHttp))
#5 /home/httpdocs/vendor/magento/framework/View/Element/AbstractBlock.php(273):
MagentoLayeredNavigationBlockNavigation->_prepareLayout()


Get this bounty!!!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.