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,73293668




5,73293668










asked Nov 24 '15 at 2:32









Filipe Sá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










7 Answers
7






active

oldest

votes


















5














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














If you use redis, run:






redis-cli flushall







If you also use an environment like ansible (lxc - server), you'll need to do that command in container. Plus I did the following:




  • Clear var/generation

  • Clear var/cache

  • Enable Magento modules: bin/magento module:enable --all

  • Compile DI bin/magento setup:di:compile






share|improve this answer


























  • there were so many misleading solutions out there and this worked right away

    – Wolfe
    Jan 8 at 8:15



















2














This worked for me :



 sudo apt-get install php-intl

sudo service apache2 reload





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































          0














          php bin/magento c:c
          php bin/magento setup:di:compile


          will fix your issue





          share








          New contributor




          Vato 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%2f91294%2ffatal-error-cannot-instantiate-interface%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            7 Answers
            7






            active

            oldest

            votes








            7 Answers
            7






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            5














            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
















            5














            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














            5












            5








            5







            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 CreangaClaudiu Creanga

            4,24512775




            4,24512775













            • 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













            4














            If you use redis, run:






            redis-cli flushall







            If you also use an environment like ansible (lxc - server), you'll need to do that command in container. Plus I did the following:




            • Clear var/generation

            • Clear var/cache

            • Enable Magento modules: bin/magento module:enable --all

            • Compile DI bin/magento setup:di:compile






            share|improve this answer


























            • there were so many misleading solutions out there and this worked right away

              – Wolfe
              Jan 8 at 8:15
















            4














            If you use redis, run:






            redis-cli flushall







            If you also use an environment like ansible (lxc - server), you'll need to do that command in container. Plus I did the following:




            • Clear var/generation

            • Clear var/cache

            • Enable Magento modules: bin/magento module:enable --all

            • Compile DI bin/magento setup:di:compile






            share|improve this answer


























            • there were so many misleading solutions out there and this worked right away

              – Wolfe
              Jan 8 at 8:15














            4












            4








            4







            If you use redis, run:






            redis-cli flushall







            If you also use an environment like ansible (lxc - server), you'll need to do that command in container. Plus I did the following:




            • Clear var/generation

            • Clear var/cache

            • Enable Magento modules: bin/magento module:enable --all

            • Compile DI bin/magento setup:di:compile






            share|improve this answer















            If you use redis, run:






            redis-cli flushall







            If you also use an environment like ansible (lxc - server), you'll need to do that command in container. Plus I did the following:




            • Clear var/generation

            • Clear 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 Jan 7 at 18:39









            bassplayer7

            1,5091119




            1,5091119










            answered Jun 1 '18 at 14:07









            Gorr1995Gorr1995

            412




            412













            • there were so many misleading solutions out there and this worked right away

              – Wolfe
              Jan 8 at 8:15



















            • there were so many misleading solutions out there and this worked right away

              – Wolfe
              Jan 8 at 8:15

















            there were so many misleading solutions out there and this worked right away

            – Wolfe
            Jan 8 at 8:15





            there were so many misleading solutions out there and this worked right away

            – Wolfe
            Jan 8 at 8:15











            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









                abahetabahet

                1211




                1211























                    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









                        MTMMTM

                        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 NooraniKazim Noorani

                                9371623




                                9371623























                                    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 Jan 5 at 10:23









                                        Arvind07Arvind07

                                        8651016




                                        8651016























                                            0














                                            php bin/magento c:c
                                            php bin/magento setup:di:compile


                                            will fix your issue





                                            share








                                            New contributor




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

























                                              0














                                              php bin/magento c:c
                                              php bin/magento setup:di:compile


                                              will fix your issue





                                              share








                                              New contributor




                                              Vato 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







                                                php bin/magento c:c
                                                php bin/magento setup:di:compile


                                                will fix your issue





                                                share








                                                New contributor




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










                                                php bin/magento c:c
                                                php bin/magento setup:di:compile


                                                will fix your issue






                                                share








                                                New contributor




                                                Vato 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




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









                                                answered 9 mins ago









                                                VatoVato

                                                1




                                                1




                                                New contributor




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





                                                New contributor





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






                                                Vato 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%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

                                                    What other Star Trek series did the main TNG cast show up in?

                                                    Berlina muro

                                                    Berlina aerponto