Fatal error: Cannot instantiate interface












8














My magento store is throwing this error:




Fatal error: Cannot instantiate interface MagentoFrameworkViewDesignThemeResolverInterface in /Library/WebServer/Documents/magento/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php on line 73




I don't know why it started to appear. I made no new module installation. The store was working fine.



I've check file permissions and I see no issue there. Also delete the /var/ dir and, I think, all folders/files where created.



[EDIT] The preference is defined vendor/magento/magento2-base/app/etc/di.xml



<preference for="MagentoFrameworkViewDesignThemeResolverInterface" type="MagentoThemeModelThemeResolver" /> 









share|improve this question




















  • 1




    i hope in ur custom module or code your trying to use MagentoFrameworkViewDesignThemeResolverInterface in constructor or object manager
    – Pradeep Kumar
    Nov 24 '15 at 4:28










  • @PradeepKumar No. I'm not.
    – Filipe Sá
    Nov 24 '15 at 14:19






  • 2




    clear your cache and the contents of var/generation.
    – Marius
    Nov 24 '15 at 14:23










  • @Marius as stated in the question, I've already removed the /var/* folder completely.
    – Filipe Sá
    Nov 24 '15 at 14:28










  • Sorry. I missed that line.
    – Marius
    Nov 24 '15 at 14:44
















8














My magento store is throwing this error:




Fatal error: Cannot instantiate interface MagentoFrameworkViewDesignThemeResolverInterface in /Library/WebServer/Documents/magento/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php on line 73




I don't know why it started to appear. I made no new module installation. The store was working fine.



I've check file permissions and I see no issue there. Also delete the /var/ dir and, I think, all folders/files where created.



[EDIT] The preference is defined vendor/magento/magento2-base/app/etc/di.xml



<preference for="MagentoFrameworkViewDesignThemeResolverInterface" type="MagentoThemeModelThemeResolver" /> 









share|improve this question




















  • 1




    i hope in ur custom module or code your trying to use MagentoFrameworkViewDesignThemeResolverInterface in constructor or object manager
    – Pradeep Kumar
    Nov 24 '15 at 4:28










  • @PradeepKumar No. I'm not.
    – Filipe Sá
    Nov 24 '15 at 14:19






  • 2




    clear your cache and the contents of var/generation.
    – Marius
    Nov 24 '15 at 14:23










  • @Marius as stated in the question, I've already removed the /var/* folder completely.
    – Filipe Sá
    Nov 24 '15 at 14:28










  • Sorry. I missed that line.
    – Marius
    Nov 24 '15 at 14:44














8












8








8


0





My magento store is throwing this error:




Fatal error: Cannot instantiate interface MagentoFrameworkViewDesignThemeResolverInterface in /Library/WebServer/Documents/magento/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php on line 73




I don't know why it started to appear. I made no new module installation. The store was working fine.



I've check file permissions and I see no issue there. Also delete the /var/ dir and, I think, all folders/files where created.



[EDIT] The preference is defined vendor/magento/magento2-base/app/etc/di.xml



<preference for="MagentoFrameworkViewDesignThemeResolverInterface" type="MagentoThemeModelThemeResolver" /> 









share|improve this question















My magento store is throwing this error:




Fatal error: Cannot instantiate interface MagentoFrameworkViewDesignThemeResolverInterface in /Library/WebServer/Documents/magento/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php on line 73




I don't know why it started to appear. I made no new module installation. The store was working fine.



I've check file permissions and I see no issue there. Also delete the /var/ dir and, I think, all folders/files where created.



[EDIT] The preference is defined vendor/magento/magento2-base/app/etc/di.xml



<preference for="MagentoFrameworkViewDesignThemeResolverInterface" type="MagentoThemeModelThemeResolver" /> 






magento2 design






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 27 '15 at 15:44









7ochem

5,72193668




5,72193668










asked Nov 24 '15 at 2:32









Filipe Sá

51129




51129








  • 1




    i hope in ur custom module or code your trying to use MagentoFrameworkViewDesignThemeResolverInterface in constructor or object manager
    – Pradeep Kumar
    Nov 24 '15 at 4:28










  • @PradeepKumar No. I'm not.
    – Filipe Sá
    Nov 24 '15 at 14:19






  • 2




    clear your cache and the contents of var/generation.
    – Marius
    Nov 24 '15 at 14:23










  • @Marius as stated in the question, I've already removed the /var/* folder completely.
    – Filipe Sá
    Nov 24 '15 at 14:28










  • Sorry. I missed that line.
    – Marius
    Nov 24 '15 at 14:44














  • 1




    i hope in ur custom module or code your trying to use MagentoFrameworkViewDesignThemeResolverInterface in constructor or object manager
    – Pradeep Kumar
    Nov 24 '15 at 4:28










  • @PradeepKumar No. I'm not.
    – Filipe Sá
    Nov 24 '15 at 14:19






  • 2




    clear your cache and the contents of var/generation.
    – Marius
    Nov 24 '15 at 14:23










  • @Marius as stated in the question, I've already removed the /var/* folder completely.
    – Filipe Sá
    Nov 24 '15 at 14:28










  • Sorry. I missed that line.
    – Marius
    Nov 24 '15 at 14:44








1




1




i hope in ur custom module or code your trying to use MagentoFrameworkViewDesignThemeResolverInterface in constructor or object manager
– Pradeep Kumar
Nov 24 '15 at 4:28




i hope in ur custom module or code your trying to use MagentoFrameworkViewDesignThemeResolverInterface in constructor or object manager
– Pradeep Kumar
Nov 24 '15 at 4:28












@PradeepKumar No. I'm not.
– Filipe Sá
Nov 24 '15 at 14:19




@PradeepKumar No. I'm not.
– Filipe Sá
Nov 24 '15 at 14:19




2




2




clear your cache and the contents of var/generation.
– Marius
Nov 24 '15 at 14:23




clear your cache and the contents of var/generation.
– Marius
Nov 24 '15 at 14:23












@Marius as stated in the question, I've already removed the /var/* folder completely.
– Filipe Sá
Nov 24 '15 at 14:28




@Marius as stated in the question, I've already removed the /var/* folder completely.
– Filipe Sá
Nov 24 '15 at 14:28












Sorry. I missed that line.
– Marius
Nov 24 '15 at 14:44




Sorry. I missed that line.
– Marius
Nov 24 '15 at 14:44










6 Answers
6






active

oldest

votes


















4














I had this error and it was solved by clearing the var folder and then running setup:upgrade. If this doesn't solve it then look for errors in di.xml files






share|improve this answer























  • worked for me, specifically var/cache
    – Joshua Soileau
    Jul 25 '16 at 17:46



















2














This worked for me :



 sudo apt-get install php-intl

sudo service apache2 reload





share|improve this answer





























    2














    found answer on git =>
    "If you use redis, then first ==> redis-cli then ==> flushall".



    P.S. If you also use env e.g. ansible (lxc - server). U'll need to do that command in conteiner. Plus I used next commands : clear var/generation and var/cache, enable Magento modules (bin/magento module:enable --all), compile DI (bin/magento setup:di:compile).






    share|improve this answer































      1














      In my case, I had to remove a module and I simply deleted the files of the module without following proper methods and then this error was on screen everywhere. After searching much I ended up to replace the files of the module back to same directory and deleted all required folders from var and ran the following commands.



      php bin/magento setup:upgrade
      php bin/magento setup:static-content:deploy


      and all was fixed. I then followed proper ways to remove the module. Hope this saves someones time. :-)






      share|improve this answer





























        0














        Run following command and check.



        rm -rf generated

        rm -rf var/*


        Worked for me.






        share|improve this answer





























          0














          Clear the cache
          rm -rf var/cache



          If redis enabled, clear redis db using command line:



          $> redis-cli
          $> flushall





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


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f91294%2ffatal-error-cannot-instantiate-interface%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            6 Answers
            6






            active

            oldest

            votes








            6 Answers
            6






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            4














            I had this error and it was solved by clearing the var folder and then running setup:upgrade. If this doesn't solve it then look for errors in di.xml files






            share|improve this answer























            • worked for me, specifically var/cache
              – Joshua Soileau
              Jul 25 '16 at 17:46
















            4














            I had this error and it was solved by clearing the var folder and then running setup:upgrade. If this doesn't solve it then look for errors in di.xml files






            share|improve this answer























            • worked for me, specifically var/cache
              – Joshua Soileau
              Jul 25 '16 at 17:46














            4












            4








            4






            I had this error and it was solved by clearing the var folder and then running setup:upgrade. If this doesn't solve it then look for errors in di.xml files






            share|improve this answer














            I had this error and it was solved by clearing the var folder and then running setup:upgrade. If this doesn't solve it then look for errors in di.xml files







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Mar 11 '17 at 14:18

























            answered Apr 11 '16 at 12:19









            Claudiu Creanga

            4,20512674




            4,20512674












            • worked for me, specifically var/cache
              – Joshua Soileau
              Jul 25 '16 at 17:46


















            • worked for me, specifically var/cache
              – Joshua Soileau
              Jul 25 '16 at 17:46
















            worked for me, specifically var/cache
            – Joshua Soileau
            Jul 25 '16 at 17:46




            worked for me, specifically var/cache
            – Joshua Soileau
            Jul 25 '16 at 17:46













            2














            This worked for me :



             sudo apt-get install php-intl

            sudo service apache2 reload





            share|improve this answer


























              2














              This worked for me :



               sudo apt-get install php-intl

              sudo service apache2 reload





              share|improve this answer
























                2












                2








                2






                This worked for me :



                 sudo apt-get install php-intl

                sudo service apache2 reload





                share|improve this answer












                This worked for me :



                 sudo apt-get install php-intl

                sudo service apache2 reload






                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Jun 16 '16 at 12:26









                abahet

                1211




                1211























                    2














                    found answer on git =>
                    "If you use redis, then first ==> redis-cli then ==> flushall".



                    P.S. If you also use env e.g. ansible (lxc - server). U'll need to do that command in conteiner. Plus I used next commands : clear var/generation and var/cache, enable Magento modules (bin/magento module:enable --all), compile DI (bin/magento setup:di:compile).






                    share|improve this answer




























                      2














                      found answer on git =>
                      "If you use redis, then first ==> redis-cli then ==> flushall".



                      P.S. If you also use env e.g. ansible (lxc - server). U'll need to do that command in conteiner. Plus I used next commands : clear var/generation and var/cache, enable Magento modules (bin/magento module:enable --all), compile DI (bin/magento setup:di:compile).






                      share|improve this answer


























                        2












                        2








                        2






                        found answer on git =>
                        "If you use redis, then first ==> redis-cli then ==> flushall".



                        P.S. If you also use env e.g. ansible (lxc - server). U'll need to do that command in conteiner. Plus I used next commands : clear var/generation and var/cache, enable Magento modules (bin/magento module:enable --all), compile DI (bin/magento setup:di:compile).






                        share|improve this answer














                        found answer on git =>
                        "If you use redis, then first ==> redis-cli then ==> flushall".



                        P.S. If you also use env e.g. ansible (lxc - server). U'll need to do that command in conteiner. Plus I used next commands : clear var/generation and var/cache, enable Magento modules (bin/magento module:enable --all), compile DI (bin/magento setup:di:compile).







                        share|improve this answer














                        share|improve this answer



                        share|improve this answer








                        edited Jun 1 '18 at 14:18

























                        answered Jun 1 '18 at 14:07









                        Gorr1995

                        212




                        212























                            1














                            In my case, I had to remove a module and I simply deleted the files of the module without following proper methods and then this error was on screen everywhere. After searching much I ended up to replace the files of the module back to same directory and deleted all required folders from var and ran the following commands.



                            php bin/magento setup:upgrade
                            php bin/magento setup:static-content:deploy


                            and all was fixed. I then followed proper ways to remove the module. Hope this saves someones time. :-)






                            share|improve this answer


























                              1














                              In my case, I had to remove a module and I simply deleted the files of the module without following proper methods and then this error was on screen everywhere. After searching much I ended up to replace the files of the module back to same directory and deleted all required folders from var and ran the following commands.



                              php bin/magento setup:upgrade
                              php bin/magento setup:static-content:deploy


                              and all was fixed. I then followed proper ways to remove the module. Hope this saves someones time. :-)






                              share|improve this answer
























                                1












                                1








                                1






                                In my case, I had to remove a module and I simply deleted the files of the module without following proper methods and then this error was on screen everywhere. After searching much I ended up to replace the files of the module back to same directory and deleted all required folders from var and ran the following commands.



                                php bin/magento setup:upgrade
                                php bin/magento setup:static-content:deploy


                                and all was fixed. I then followed proper ways to remove the module. Hope this saves someones time. :-)






                                share|improve this answer












                                In my case, I had to remove a module and I simply deleted the files of the module without following proper methods and then this error was on screen everywhere. After searching much I ended up to replace the files of the module back to same directory and deleted all required folders from var and ran the following commands.



                                php bin/magento setup:upgrade
                                php bin/magento setup:static-content:deploy


                                and all was fixed. I then followed proper ways to remove the module. Hope this saves someones time. :-)







                                share|improve this answer












                                share|improve this answer



                                share|improve this answer










                                answered Oct 17 '16 at 14:15









                                MTM

                                1,89611429




                                1,89611429























                                    0














                                    Run following command and check.



                                    rm -rf generated

                                    rm -rf var/*


                                    Worked for me.






                                    share|improve this answer


























                                      0














                                      Run following command and check.



                                      rm -rf generated

                                      rm -rf var/*


                                      Worked for me.






                                      share|improve this answer
























                                        0












                                        0








                                        0






                                        Run following command and check.



                                        rm -rf generated

                                        rm -rf var/*


                                        Worked for me.






                                        share|improve this answer












                                        Run following command and check.



                                        rm -rf generated

                                        rm -rf var/*


                                        Worked for me.







                                        share|improve this answer












                                        share|improve this answer



                                        share|improve this answer










                                        answered Oct 28 '18 at 9:47









                                        Kazim Noorani

                                        847523




                                        847523























                                            0














                                            Clear the cache
                                            rm -rf var/cache



                                            If redis enabled, clear redis db using command line:



                                            $> redis-cli
                                            $> flushall





                                            share|improve this answer


























                                              0














                                              Clear the cache
                                              rm -rf var/cache



                                              If redis enabled, clear redis db using command line:



                                              $> redis-cli
                                              $> flushall





                                              share|improve this answer
























                                                0












                                                0








                                                0






                                                Clear the cache
                                                rm -rf var/cache



                                                If redis enabled, clear redis db using command line:



                                                $> redis-cli
                                                $> flushall





                                                share|improve this answer












                                                Clear the cache
                                                rm -rf var/cache



                                                If redis enabled, clear redis db using command line:



                                                $> redis-cli
                                                $> flushall






                                                share|improve this answer












                                                share|improve this answer



                                                share|improve this answer










                                                answered yesterday









                                                Arvind07

                                                8451016




                                                8451016






























                                                    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.





                                                    Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                                                    Please pay close attention to the following guidance:


                                                    • 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%2f91294%2ffatal-error-cannot-instantiate-interface%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

                                                    1300-talet

                                                    1300-talet

                                                    Display a custom attribute below product name in the front-end Magento 1.9.3.8