Magento2.3 : Layered Navigation issueShow layered subcategories on the left of the subcategories pageLayered...

Why is working on the same position for more than 15 years not a red flag?

The use of the spellings -zz- vs. -z-

Is it a fallacy if someone claims they need an explanation for every word of your argument to the point where they don't understand common terms?

Cat is tipping over bed-side lamps during the night

Cookies - Should the toggles be on?

Can I make estimated tax payments instead of withholding from my paycheck?

How would an AI self awareness kill switch work?

Why avoid shared user accounts?

False written accusations not made public - is there law to cover this?

What would be the rarity of this magic item(s)?

Flipping axis on a LogPlot

Non-Cancer terminal illness that can affect young (age 10-13) girls?

If I delete my router's history can my ISP still provide it to my parents?

Why are the books in the Game of Thrones citadel library shelved spine inwards?

Early credit roll before the end of the film

Citing paywalled articles accessed via illegal web sharing

What does it mean for a caliber to be flat shooting?

Do theoretical physics suggest that gravity is the exchange of gravitons or deformation/bending of spacetime?

Why don't hotels mount air conditioning units outside the rooms?

Publishing research using outdated methods

Why did Luke use his left hand to shoot?

What incentives do banks have to gather up loans into pools (backed by Ginnie Mae)and selling them?

Salesforce package error error “You can't specify version for namespace sf_com_apps because this namespace is not installed to your organization.”

Consequences of lack of rigour



Magento2.3 : Layered Navigation issue


Show layered subcategories on the left of the subcategories pageLayered navigation on homepage in magento 1.9 Call to a member function load() on a non-object in Error OccuredLayered navigation for custom collection on custom page - magento2strlen() issue in layered navigationMagento 2 layered navigation attribute option sort by name not number of productsMagento 2.3 Inject helper into controller object type error?Magento 2.3.0 - The store that was requested wasn't foundMagento 2.3.0 - Set up multiple websites, stores, and store viewsMagento 2 api - How to get layer navigation filters available in rest api?Declaration error during compile













4















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()











share|improve this question









New contributor




Phong Ngo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.













This question has an open bounty worth +50
reputation from Init ending in 4 days.


Looking for an answer drawing from credible and/or official sources.

















  • Hello @Phong I have kind of same issue regarding FilterableAttributeListInterface

    – Aditya Shah
    Feb 25 at 6:55






  • 1





    So I added preference in di.xml and it worked, Please debug and check which Interface is not defined and set preference of that Interface in di.xml

    – Aditya Shah
    Feb 25 at 6:56











  • community.magento.com/t5/Magento-2-x-Programming/… This will also help.

    – Aditya Shah
    Feb 25 at 6:59
















4















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()











share|improve this question









New contributor




Phong Ngo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.













This question has an open bounty worth +50
reputation from Init ending in 4 days.


Looking for an answer drawing from credible and/or official sources.

















  • Hello @Phong I have kind of same issue regarding FilterableAttributeListInterface

    – Aditya Shah
    Feb 25 at 6:55






  • 1





    So I added preference in di.xml and it worked, Please debug and check which Interface is not defined and set preference of that Interface in di.xml

    – Aditya Shah
    Feb 25 at 6:56











  • community.magento.com/t5/Magento-2-x-Programming/… This will also help.

    – Aditya Shah
    Feb 25 at 6:59














4












4








4








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()











share|improve this question









New contributor




Phong Ngo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












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()








layered-navigation magento2.3






share|improve this question









New contributor




Phong Ngo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




Phong Ngo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited 23 mins ago









Teja Bhagavan Kollepara

2,96341847




2,96341847






New contributor




Phong Ngo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked Feb 23 at 3:39









Phong NgoPhong Ngo

211




211




New contributor




Phong Ngo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Phong Ngo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Phong Ngo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






This question has an open bounty worth +50
reputation from Init ending in 4 days.


Looking for an answer drawing from credible and/or official sources.








This question has an open bounty worth +50
reputation from Init ending in 4 days.


Looking for an answer drawing from credible and/or official sources.















  • Hello @Phong I have kind of same issue regarding FilterableAttributeListInterface

    – Aditya Shah
    Feb 25 at 6:55






  • 1





    So I added preference in di.xml and it worked, Please debug and check which Interface is not defined and set preference of that Interface in di.xml

    – Aditya Shah
    Feb 25 at 6:56











  • community.magento.com/t5/Magento-2-x-Programming/… This will also help.

    – Aditya Shah
    Feb 25 at 6:59



















  • Hello @Phong I have kind of same issue regarding FilterableAttributeListInterface

    – Aditya Shah
    Feb 25 at 6:55






  • 1





    So I added preference in di.xml and it worked, Please debug and check which Interface is not defined and set preference of that Interface in di.xml

    – Aditya Shah
    Feb 25 at 6:56











  • community.magento.com/t5/Magento-2-x-Programming/… This will also help.

    – Aditya Shah
    Feb 25 at 6:59

















Hello @Phong I have kind of same issue regarding FilterableAttributeListInterface

– Aditya Shah
Feb 25 at 6:55





Hello @Phong I have kind of same issue regarding FilterableAttributeListInterface

– Aditya Shah
Feb 25 at 6:55




1




1





So I added preference in di.xml and it worked, Please debug and check which Interface is not defined and set preference of that Interface in di.xml

– Aditya Shah
Feb 25 at 6:56





So I added preference in di.xml and it worked, Please debug and check which Interface is not defined and set preference of that Interface in di.xml

– Aditya Shah
Feb 25 at 6:56













community.magento.com/t5/Magento-2-x-Programming/… This will also help.

– Aditya Shah
Feb 25 at 6:59





community.magento.com/t5/Magento-2-x-Programming/… This will also help.

– Aditya Shah
Feb 25 at 6:59










1 Answer
1






active

oldest

votes


















-1















  1. By removing throw exception, you can solve the issue.

  2. Override file if it works in your case


Go to vendormagentomodule-catalog-searchModelResourceModelFulltextCollection->addFieldToFilter() function and remove



    if ($this->searchResult !== null) {
throw new RuntimeException('Illegal state');
}





share|improve this answer

























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "479"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });






    Phong Ngo is a new contributor. Be nice, and check out our Code of Conduct.










    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f263104%2fmagento2-3-layered-navigation-issue%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    -1















    1. By removing throw exception, you can solve the issue.

    2. Override file if it works in your case


    Go to vendormagentomodule-catalog-searchModelResourceModelFulltextCollection->addFieldToFilter() function and remove



        if ($this->searchResult !== null) {
    throw new RuntimeException('Illegal state');
    }





    share|improve this answer






























      -1















      1. By removing throw exception, you can solve the issue.

      2. Override file if it works in your case


      Go to vendormagentomodule-catalog-searchModelResourceModelFulltextCollection->addFieldToFilter() function and remove



          if ($this->searchResult !== null) {
      throw new RuntimeException('Illegal state');
      }





      share|improve this answer




























        -1












        -1








        -1








        1. By removing throw exception, you can solve the issue.

        2. Override file if it works in your case


        Go to vendormagentomodule-catalog-searchModelResourceModelFulltextCollection->addFieldToFilter() function and remove



            if ($this->searchResult !== null) {
        throw new RuntimeException('Illegal state');
        }





        share|improve this answer
















        1. By removing throw exception, you can solve the issue.

        2. Override file if it works in your case


        Go to vendormagentomodule-catalog-searchModelResourceModelFulltextCollection->addFieldToFilter() function and remove



            if ($this->searchResult !== null) {
        throw new RuntimeException('Illegal state');
        }






        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited 22 mins ago









        Teja Bhagavan Kollepara

        2,96341847




        2,96341847










        answered Feb 25 at 6:33









        Ketan BoradaKetan Borada

        341738




        341738






















            Phong Ngo is a new contributor. Be nice, and check out our Code of Conduct.










            draft saved

            draft discarded


















            Phong Ngo is a new contributor. Be nice, and check out our Code of Conduct.













            Phong Ngo is a new contributor. Be nice, and check out our Code of Conduct.












            Phong Ngo is a new contributor. Be nice, and check out our Code of Conduct.
















            Thanks for contributing an answer to Magento Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f263104%2fmagento2-3-layered-navigation-issue%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            “%fieldName is a required field.”, in Magento2 REST API Call for GET Method Type The Next...

            How to change City field to a dropdown in Checkout step Magento 2Magento 2 : How to change UI field(s)...

            夢乃愛華...