Exception #0 (MagentoFrameworkExceptionNoSuchEntityException): No such entity with id = 141












0















Magento 2.2.1. Recently I have deleted one unused store and my magento has been broken with error:



1 exception(s):
Exception #0 (MagentoFrameworkExceptionNoSuchEntityException): No such entity with id = 141

Exception #0 (MagentoFrameworkExceptionNoSuchEntityException): No such entity with id = 141
#0 /var/www//vendor/magento/module-catalog/Model/CategoryRepository.php(141): MagentoFrameworkExceptionNoSuchEntityException::singleField('id', '141')
#1 /var/www//app/code/TemplateMonster/CatalogImagesGrid/Block/CatalogImage/Grid.php(78): MagentoCatalogModelCategoryRepository->get('141')
#2 /var/www//app/design/frontend/TemplateMonster/theme007/TemplateMonster_CatalogImagesGrid/templates/catalog/widget_image_grid.phtml(3): TemplateMonsterCatalogImagesGridBlockCatalogImageGrid->getCategory()
#3 /var/www/www/vendor/magento/framework/View/TemplateEngine/Php.php(59): include('/var/www/www.le...')
#4 /var/www/www/vendor/magento/framework/View/Element/Template.php(270): MagentoFrameworkViewTemplateEnginePhp->render(Object(TemplateMonsterCatalogImagesGridBlockCatalogImageGrid), '/var/www/www.le...', Array)


I have restored site and db from working backup - same error! of course, cache cleaned, var, generation etc deleted, content redeployed. constantly getting same error.



admin part works OK.



Please advice what is the nature of this error?



Which ID cannot be found? category? site? this driving me nuts already..










share|improve this question

























  • It's looking for category ID 141.

    – A.Maksymiuk
    Jan 27 '18 at 10:47











  • thanks, actually it's more or less clear, but why? i never had category with such ID, i never touched categories. why restored backup have same error? it looks like something deeply cached, but what..

    – bofh
    Jan 27 '18 at 11:01













  • i checked table catalog_category_entity from recent backups - there is no such id's, there is id's 1..135 and 267..343, so it's not clear why site started to call such id...

    – bofh
    Jan 27 '18 at 11:17











  • I see your are using custom theme - I think you should ask theme seller then.

    – A.Maksymiuk
    Jan 27 '18 at 20:26











  • already did, but they didn't provide support during weekend.

    – bofh
    Jan 27 '18 at 20:30
















0















Magento 2.2.1. Recently I have deleted one unused store and my magento has been broken with error:



1 exception(s):
Exception #0 (MagentoFrameworkExceptionNoSuchEntityException): No such entity with id = 141

Exception #0 (MagentoFrameworkExceptionNoSuchEntityException): No such entity with id = 141
#0 /var/www//vendor/magento/module-catalog/Model/CategoryRepository.php(141): MagentoFrameworkExceptionNoSuchEntityException::singleField('id', '141')
#1 /var/www//app/code/TemplateMonster/CatalogImagesGrid/Block/CatalogImage/Grid.php(78): MagentoCatalogModelCategoryRepository->get('141')
#2 /var/www//app/design/frontend/TemplateMonster/theme007/TemplateMonster_CatalogImagesGrid/templates/catalog/widget_image_grid.phtml(3): TemplateMonsterCatalogImagesGridBlockCatalogImageGrid->getCategory()
#3 /var/www/www/vendor/magento/framework/View/TemplateEngine/Php.php(59): include('/var/www/www.le...')
#4 /var/www/www/vendor/magento/framework/View/Element/Template.php(270): MagentoFrameworkViewTemplateEnginePhp->render(Object(TemplateMonsterCatalogImagesGridBlockCatalogImageGrid), '/var/www/www.le...', Array)


I have restored site and db from working backup - same error! of course, cache cleaned, var, generation etc deleted, content redeployed. constantly getting same error.



admin part works OK.



Please advice what is the nature of this error?



Which ID cannot be found? category? site? this driving me nuts already..










share|improve this question

























  • It's looking for category ID 141.

    – A.Maksymiuk
    Jan 27 '18 at 10:47











  • thanks, actually it's more or less clear, but why? i never had category with such ID, i never touched categories. why restored backup have same error? it looks like something deeply cached, but what..

    – bofh
    Jan 27 '18 at 11:01













  • i checked table catalog_category_entity from recent backups - there is no such id's, there is id's 1..135 and 267..343, so it's not clear why site started to call such id...

    – bofh
    Jan 27 '18 at 11:17











  • I see your are using custom theme - I think you should ask theme seller then.

    – A.Maksymiuk
    Jan 27 '18 at 20:26











  • already did, but they didn't provide support during weekend.

    – bofh
    Jan 27 '18 at 20:30














0












0








0








Magento 2.2.1. Recently I have deleted one unused store and my magento has been broken with error:



1 exception(s):
Exception #0 (MagentoFrameworkExceptionNoSuchEntityException): No such entity with id = 141

Exception #0 (MagentoFrameworkExceptionNoSuchEntityException): No such entity with id = 141
#0 /var/www//vendor/magento/module-catalog/Model/CategoryRepository.php(141): MagentoFrameworkExceptionNoSuchEntityException::singleField('id', '141')
#1 /var/www//app/code/TemplateMonster/CatalogImagesGrid/Block/CatalogImage/Grid.php(78): MagentoCatalogModelCategoryRepository->get('141')
#2 /var/www//app/design/frontend/TemplateMonster/theme007/TemplateMonster_CatalogImagesGrid/templates/catalog/widget_image_grid.phtml(3): TemplateMonsterCatalogImagesGridBlockCatalogImageGrid->getCategory()
#3 /var/www/www/vendor/magento/framework/View/TemplateEngine/Php.php(59): include('/var/www/www.le...')
#4 /var/www/www/vendor/magento/framework/View/Element/Template.php(270): MagentoFrameworkViewTemplateEnginePhp->render(Object(TemplateMonsterCatalogImagesGridBlockCatalogImageGrid), '/var/www/www.le...', Array)


I have restored site and db from working backup - same error! of course, cache cleaned, var, generation etc deleted, content redeployed. constantly getting same error.



admin part works OK.



Please advice what is the nature of this error?



Which ID cannot be found? category? site? this driving me nuts already..










share|improve this question
















Magento 2.2.1. Recently I have deleted one unused store and my magento has been broken with error:



1 exception(s):
Exception #0 (MagentoFrameworkExceptionNoSuchEntityException): No such entity with id = 141

Exception #0 (MagentoFrameworkExceptionNoSuchEntityException): No such entity with id = 141
#0 /var/www//vendor/magento/module-catalog/Model/CategoryRepository.php(141): MagentoFrameworkExceptionNoSuchEntityException::singleField('id', '141')
#1 /var/www//app/code/TemplateMonster/CatalogImagesGrid/Block/CatalogImage/Grid.php(78): MagentoCatalogModelCategoryRepository->get('141')
#2 /var/www//app/design/frontend/TemplateMonster/theme007/TemplateMonster_CatalogImagesGrid/templates/catalog/widget_image_grid.phtml(3): TemplateMonsterCatalogImagesGridBlockCatalogImageGrid->getCategory()
#3 /var/www/www/vendor/magento/framework/View/TemplateEngine/Php.php(59): include('/var/www/www.le...')
#4 /var/www/www/vendor/magento/framework/View/Element/Template.php(270): MagentoFrameworkViewTemplateEnginePhp->render(Object(TemplateMonsterCatalogImagesGridBlockCatalogImageGrid), '/var/www/www.le...', Array)


I have restored site and db from working backup - same error! of course, cache cleaned, var, generation etc deleted, content redeployed. constantly getting same error.



admin part works OK.



Please advice what is the nature of this error?



Which ID cannot be found? category? site? this driving me nuts already..







magento-2.2.1






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 27 '18 at 11:05







bofh

















asked Jan 27 '18 at 7:53









bofhbofh

4210




4210













  • It's looking for category ID 141.

    – A.Maksymiuk
    Jan 27 '18 at 10:47











  • thanks, actually it's more or less clear, but why? i never had category with such ID, i never touched categories. why restored backup have same error? it looks like something deeply cached, but what..

    – bofh
    Jan 27 '18 at 11:01













  • i checked table catalog_category_entity from recent backups - there is no such id's, there is id's 1..135 and 267..343, so it's not clear why site started to call such id...

    – bofh
    Jan 27 '18 at 11:17











  • I see your are using custom theme - I think you should ask theme seller then.

    – A.Maksymiuk
    Jan 27 '18 at 20:26











  • already did, but they didn't provide support during weekend.

    – bofh
    Jan 27 '18 at 20:30



















  • It's looking for category ID 141.

    – A.Maksymiuk
    Jan 27 '18 at 10:47











  • thanks, actually it's more or less clear, but why? i never had category with such ID, i never touched categories. why restored backup have same error? it looks like something deeply cached, but what..

    – bofh
    Jan 27 '18 at 11:01













  • i checked table catalog_category_entity from recent backups - there is no such id's, there is id's 1..135 and 267..343, so it's not clear why site started to call such id...

    – bofh
    Jan 27 '18 at 11:17











  • I see your are using custom theme - I think you should ask theme seller then.

    – A.Maksymiuk
    Jan 27 '18 at 20:26











  • already did, but they didn't provide support during weekend.

    – bofh
    Jan 27 '18 at 20:30

















It's looking for category ID 141.

– A.Maksymiuk
Jan 27 '18 at 10:47





It's looking for category ID 141.

– A.Maksymiuk
Jan 27 '18 at 10:47













thanks, actually it's more or less clear, but why? i never had category with such ID, i never touched categories. why restored backup have same error? it looks like something deeply cached, but what..

– bofh
Jan 27 '18 at 11:01







thanks, actually it's more or less clear, but why? i never had category with such ID, i never touched categories. why restored backup have same error? it looks like something deeply cached, but what..

– bofh
Jan 27 '18 at 11:01















i checked table catalog_category_entity from recent backups - there is no such id's, there is id's 1..135 and 267..343, so it's not clear why site started to call such id...

– bofh
Jan 27 '18 at 11:17





i checked table catalog_category_entity from recent backups - there is no such id's, there is id's 1..135 and 267..343, so it's not clear why site started to call such id...

– bofh
Jan 27 '18 at 11:17













I see your are using custom theme - I think you should ask theme seller then.

– A.Maksymiuk
Jan 27 '18 at 20:26





I see your are using custom theme - I think you should ask theme seller then.

– A.Maksymiuk
Jan 27 '18 at 20:26













already did, but they didn't provide support during weekend.

– bofh
Jan 27 '18 at 20:30





already did, but they didn't provide support during weekend.

– bofh
Jan 27 '18 at 20:30










3 Answers
3






active

oldest

votes


















1














Apparently TemplateMonster_CatalogImagesGrid is searching for non-existent category. As far as i can see, there are widget references.



You should check if you have any instances of CatalogImagesGrid widget in Content/widgets. Widget parameters might contain category configurations.






share|improve this answer

































    0














    I was facing the same issue, the way I fixed it was to go to the Admin > Stores > Configuration > Catalog and setting up the value of Use Flat Catalog Category and Use Flat Catalog Product to Yes



    Note: Use these commands after making the changes




    • php bin/magento indexer:reindex

    • php bin/magento cache:clean

    • php bin/magento cache:flush






    share|improve this answer































      0














      Check



      Admin -> Stores > All Stores -> Main Website Store -> Root Category --> Default Category



      Its Work for me..





      share








      New contributor




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




















        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
        });


        }
        });














        draft saved

        draft discarded


















        StackExchange.ready(
        function () {
        StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f211189%2fexception-0-magento-framework-exception-nosuchentityexception-no-such-entity%23new-answer', 'question_page');
        }
        );

        Post as a guest















        Required, but never shown

























        3 Answers
        3






        active

        oldest

        votes








        3 Answers
        3






        active

        oldest

        votes









        active

        oldest

        votes






        active

        oldest

        votes









        1














        Apparently TemplateMonster_CatalogImagesGrid is searching for non-existent category. As far as i can see, there are widget references.



        You should check if you have any instances of CatalogImagesGrid widget in Content/widgets. Widget parameters might contain category configurations.






        share|improve this answer






























          1














          Apparently TemplateMonster_CatalogImagesGrid is searching for non-existent category. As far as i can see, there are widget references.



          You should check if you have any instances of CatalogImagesGrid widget in Content/widgets. Widget parameters might contain category configurations.






          share|improve this answer




























            1












            1








            1







            Apparently TemplateMonster_CatalogImagesGrid is searching for non-existent category. As far as i can see, there are widget references.



            You should check if you have any instances of CatalogImagesGrid widget in Content/widgets. Widget parameters might contain category configurations.






            share|improve this answer















            Apparently TemplateMonster_CatalogImagesGrid is searching for non-existent category. As far as i can see, there are widget references.



            You should check if you have any instances of CatalogImagesGrid widget in Content/widgets. Widget parameters might contain category configurations.







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited May 9 '18 at 8:42









            Tim Bezhashvyly

            10.4k43665




            10.4k43665










            answered Feb 5 '18 at 19:10









            DodgeXDodgeX

            111




            111

























                0














                I was facing the same issue, the way I fixed it was to go to the Admin > Stores > Configuration > Catalog and setting up the value of Use Flat Catalog Category and Use Flat Catalog Product to Yes



                Note: Use these commands after making the changes




                • php bin/magento indexer:reindex

                • php bin/magento cache:clean

                • php bin/magento cache:flush






                share|improve this answer




























                  0














                  I was facing the same issue, the way I fixed it was to go to the Admin > Stores > Configuration > Catalog and setting up the value of Use Flat Catalog Category and Use Flat Catalog Product to Yes



                  Note: Use these commands after making the changes




                  • php bin/magento indexer:reindex

                  • php bin/magento cache:clean

                  • php bin/magento cache:flush






                  share|improve this answer


























                    0












                    0








                    0







                    I was facing the same issue, the way I fixed it was to go to the Admin > Stores > Configuration > Catalog and setting up the value of Use Flat Catalog Category and Use Flat Catalog Product to Yes



                    Note: Use these commands after making the changes




                    • php bin/magento indexer:reindex

                    • php bin/magento cache:clean

                    • php bin/magento cache:flush






                    share|improve this answer













                    I was facing the same issue, the way I fixed it was to go to the Admin > Stores > Configuration > Catalog and setting up the value of Use Flat Catalog Category and Use Flat Catalog Product to Yes



                    Note: Use these commands after making the changes




                    • php bin/magento indexer:reindex

                    • php bin/magento cache:clean

                    • php bin/magento cache:flush







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Oct 16 '18 at 13:27









                    Usman YousafUsman Yousaf

                    21010




                    21010























                        0














                        Check



                        Admin -> Stores > All Stores -> Main Website Store -> Root Category --> Default Category



                        Its Work for me..





                        share








                        New contributor




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

























                          0














                          Check



                          Admin -> Stores > All Stores -> Main Website Store -> Root Category --> Default Category



                          Its Work for me..





                          share








                          New contributor




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























                            0












                            0








                            0







                            Check



                            Admin -> Stores > All Stores -> Main Website Store -> Root Category --> Default Category



                            Its Work for me..





                            share








                            New contributor




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










                            Check



                            Admin -> Stores > All Stores -> Main Website Store -> Root Category --> Default Category



                            Its Work for me..






                            share








                            New contributor




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








                            share


                            share






                            New contributor




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









                            answered 7 mins ago









                            Matias AnonizMatias Anoniz

                            11




                            11




                            New contributor




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





                            New contributor





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






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






























                                draft saved

                                draft discarded




















































                                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%2f211189%2fexception-0-magento-framework-exception-nosuchentityexception-no-such-entity%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

                                Magento 2 controller redirect on button click in phtml file

                                Polycentropodidae