Magento2.1.0 showing error Required parameter 'theme_dir' was not passed while saving product in adminHow to set “theme_dir” error. Magento 2Magento 2 Required parameter 'theme_dir' was not passedRequired parameter 'theme_dir' was not passedMagento2 TypeError: cart is not a functionMagento2.1.0 Order Grid not displaying Search and Filter option in AdminMagento2.1.0 Checkout page Not redirecting to success or error page when order is made by Authorize.netGetting error when I try to add image to productMagento 2 Required parameter 'theme_dir' was not passedIn Magento 2, how to resolve “Required parameter 'theme_dir' was not passed” during migration from one server to another, without deleting the theme?Required parameter 'theme_dir' was not passed when adding redis configuration to env.phpRequired parameter ‘theme_dir’ was not passedMagento 2.3 - Required parameter 'theme_dir' was not passed after applying custom 'Blank' theme

Impedance ratio vs. SWR

SQL counting distinct over partition

How can electric fields be used to detect cracks in metals?

What's up with this leaf?

eval() in Lightning Web Components

How to forge a multi-part weapon?

How can I get an unreasonable manager to approve time off?

Why is only the fundamental frequency component said to give useful power?

Is it a problem if <h4>, <h5> and <h6> are smaller than regular text?

Grover algorithm for a database search: where is the quantum advantage?

Should I compare a std::string to "string" or "string"s?

Trapping Rain Water

When 2-pentene reacts with HBr, what will be the major product?

How did old MS-DOS games utilize various graphic cards?

Generate a Graeco-Latin square

Déjà vu, again?

Share calendar details request from manager's manager

Second (easy access) account in case my bank screws up

PhD - Well known professor or well known school?

What ways have you found to get edits from non-LaTeX users?

When stealing something do you need to roll stealth and sleight of hand?

Were Alexander the Great and Hephaestion lovers?

What do abbreviations in movie scripts stand for?

An average heaven where everyone has sexless golden bodies and is bored



Magento2.1.0 showing error Required parameter 'theme_dir' was not passed while saving product in admin


How to set “theme_dir” error. Magento 2Magento 2 Required parameter 'theme_dir' was not passedRequired parameter 'theme_dir' was not passedMagento2 TypeError: cart is not a functionMagento2.1.0 Order Grid not displaying Search and Filter option in AdminMagento2.1.0 Checkout page Not redirecting to success or error page when order is made by Authorize.netGetting error when I try to add image to productMagento 2 Required parameter 'theme_dir' was not passedIn Magento 2, how to resolve “Required parameter 'theme_dir' was not passed” during migration from one server to another, without deleting the theme?Required parameter 'theme_dir' was not passed when adding redis configuration to env.phpRequired parameter ‘theme_dir’ was not passedMagento 2.3 - Required parameter 'theme_dir' was not passed after applying custom 'Blank' theme






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








15















I am facing this error Required parameter 'theme_dir' was not passed when i try to save the product in admin. I checked the theme configuration it was assigned to the stores. Recently i have upgraded from 2.0.7 to 2.1.0.Also i have checked the theme directory registration.php file exists. Anyone came across this issue.










share|improve this question






























    15















    I am facing this error Required parameter 'theme_dir' was not passed when i try to save the product in admin. I checked the theme configuration it was assigned to the stores. Recently i have upgraded from 2.0.7 to 2.1.0.Also i have checked the theme directory registration.php file exists. Anyone came across this issue.










    share|improve this question


























      15












      15








      15


      7






      I am facing this error Required parameter 'theme_dir' was not passed when i try to save the product in admin. I checked the theme configuration it was assigned to the stores. Recently i have upgraded from 2.0.7 to 2.1.0.Also i have checked the theme directory registration.php file exists. Anyone came across this issue.










      share|improve this question
















      I am facing this error Required parameter 'theme_dir' was not passed when i try to save the product in admin. I checked the theme configuration it was assigned to the stores. Recently i have upgraded from 2.0.7 to 2.1.0.Also i have checked the theme directory registration.php file exists. Anyone came across this issue.







      magento2 admin theme products-management magento2.1.0






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jul 4 '17 at 12:07









      Fabian Schmengler

      55.2k21142357




      55.2k21142357










      asked Jul 13 '16 at 4:03







      user2520



























          4 Answers
          4






          active

          oldest

          votes


















          40














          This error appears when you remove a template folder, which is still referenced in the database. The simplest way to fix it is, go to the database, and in table 'theme', find the theme name which does not exist in app/design/frontend/package.



          DELETE the reference to the missing theme from the table.






          share|improve this answer

























          • This should be the accepted answer.

            – seanbreeden
            Sep 29 '17 at 15:45











          • PERFECT.. WORKED LIKE A CHARM

            – Zorox
            Sep 30 '18 at 7:21











          • This should be the accepted answer.

            – Daan van den Bergh
            Oct 25 '18 at 11:09


















          10














          I can confirm that the answer by Vu Anh works. Here's an explanation why this happens when products are saved, although the deleted theme is used nowhere:



          After saving a product, the image cache is regenerated for all themes. Each theme can have its own image size formats, defined in etc/view.xml and all of these will be generated.



          But instead of looking for the configured themes in all stores, Magento goes through all themes in the theme table.



          If you did not properly uninstall a theme and just removed the files, the orphaned entry refers to a nonexistent path and the described exception is thrown.






          share|improve this answer
































            2














            I have the same error Required parameter 'theme_dir' was not passed. I work with 2.1.0 from the beginning, not with updating. And I have one custom product attribute "style".



            The problem occurs when I try to save the new photo in the material. Without the image, the product saved normally.



            Fix with commenting the exception under the file:



            vendor/magento/framework/view/design/Fallbck/Rule/Simple.php 


            It worked for me. But I think it's a hack.






            share|improve this answer

























            • This is definitely a hack. Fix the problem instead of removing the exception.

              – Daan van den Bergh
              Oct 25 '18 at 10:50


















            -2














            Finally I fixed it by commenting out the exception under vendor/magento/framework/View/Design/Fallback/Rule/Simple.php.



            if (in_array($placeholder, $this->optionalParams)) 
            return [];
            else
            return [];
            //throw new InvalidArgumentException("Required parameter '$placeholder' was not passed");






            share|improve this answer




















            • 4





              But this doesn't fix the error, only doesn't show it anymore. (I think Vu Anh's solution is more a fix)

              – BvdVen
              Sep 30 '16 at 13:02






            • 3





              This is not the right way of fixing this issue! Check the answer from Vu Anh.

              – medina
              Oct 18 '16 at 5:03






            • 2





              This is not a best solution. Please don't do this

              – Ankit Shah
              Mar 27 '17 at 4:23











            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%2f125435%2fmagento2-1-0-showing-error-required-parameter-theme-dir-was-not-passed-while-s%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown
























            4 Answers
            4






            active

            oldest

            votes








            4 Answers
            4






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            40














            This error appears when you remove a template folder, which is still referenced in the database. The simplest way to fix it is, go to the database, and in table 'theme', find the theme name which does not exist in app/design/frontend/package.



            DELETE the reference to the missing theme from the table.






            share|improve this answer

























            • This should be the accepted answer.

              – seanbreeden
              Sep 29 '17 at 15:45











            • PERFECT.. WORKED LIKE A CHARM

              – Zorox
              Sep 30 '18 at 7:21











            • This should be the accepted answer.

              – Daan van den Bergh
              Oct 25 '18 at 11:09















            40














            This error appears when you remove a template folder, which is still referenced in the database. The simplest way to fix it is, go to the database, and in table 'theme', find the theme name which does not exist in app/design/frontend/package.



            DELETE the reference to the missing theme from the table.






            share|improve this answer

























            • This should be the accepted answer.

              – seanbreeden
              Sep 29 '17 at 15:45











            • PERFECT.. WORKED LIKE A CHARM

              – Zorox
              Sep 30 '18 at 7:21











            • This should be the accepted answer.

              – Daan van den Bergh
              Oct 25 '18 at 11:09













            40












            40








            40







            This error appears when you remove a template folder, which is still referenced in the database. The simplest way to fix it is, go to the database, and in table 'theme', find the theme name which does not exist in app/design/frontend/package.



            DELETE the reference to the missing theme from the table.






            share|improve this answer















            This error appears when you remove a template folder, which is still referenced in the database. The simplest way to fix it is, go to the database, and in table 'theme', find the theme name which does not exist in app/design/frontend/package.



            DELETE the reference to the missing theme from the table.







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Sep 18 '17 at 16:26









            Rafael Corrêa Gomes

            4,87523367




            4,87523367










            answered Sep 8 '16 at 14:27









            Vu AnhVu Anh

            81669




            81669












            • This should be the accepted answer.

              – seanbreeden
              Sep 29 '17 at 15:45











            • PERFECT.. WORKED LIKE A CHARM

              – Zorox
              Sep 30 '18 at 7:21











            • This should be the accepted answer.

              – Daan van den Bergh
              Oct 25 '18 at 11:09

















            • This should be the accepted answer.

              – seanbreeden
              Sep 29 '17 at 15:45











            • PERFECT.. WORKED LIKE A CHARM

              – Zorox
              Sep 30 '18 at 7:21











            • This should be the accepted answer.

              – Daan van den Bergh
              Oct 25 '18 at 11:09
















            This should be the accepted answer.

            – seanbreeden
            Sep 29 '17 at 15:45





            This should be the accepted answer.

            – seanbreeden
            Sep 29 '17 at 15:45













            PERFECT.. WORKED LIKE A CHARM

            – Zorox
            Sep 30 '18 at 7:21





            PERFECT.. WORKED LIKE A CHARM

            – Zorox
            Sep 30 '18 at 7:21













            This should be the accepted answer.

            – Daan van den Bergh
            Oct 25 '18 at 11:09





            This should be the accepted answer.

            – Daan van den Bergh
            Oct 25 '18 at 11:09













            10














            I can confirm that the answer by Vu Anh works. Here's an explanation why this happens when products are saved, although the deleted theme is used nowhere:



            After saving a product, the image cache is regenerated for all themes. Each theme can have its own image size formats, defined in etc/view.xml and all of these will be generated.



            But instead of looking for the configured themes in all stores, Magento goes through all themes in the theme table.



            If you did not properly uninstall a theme and just removed the files, the orphaned entry refers to a nonexistent path and the described exception is thrown.






            share|improve this answer





























              10














              I can confirm that the answer by Vu Anh works. Here's an explanation why this happens when products are saved, although the deleted theme is used nowhere:



              After saving a product, the image cache is regenerated for all themes. Each theme can have its own image size formats, defined in etc/view.xml and all of these will be generated.



              But instead of looking for the configured themes in all stores, Magento goes through all themes in the theme table.



              If you did not properly uninstall a theme and just removed the files, the orphaned entry refers to a nonexistent path and the described exception is thrown.






              share|improve this answer



























                10












                10








                10







                I can confirm that the answer by Vu Anh works. Here's an explanation why this happens when products are saved, although the deleted theme is used nowhere:



                After saving a product, the image cache is regenerated for all themes. Each theme can have its own image size formats, defined in etc/view.xml and all of these will be generated.



                But instead of looking for the configured themes in all stores, Magento goes through all themes in the theme table.



                If you did not properly uninstall a theme and just removed the files, the orphaned entry refers to a nonexistent path and the described exception is thrown.






                share|improve this answer















                I can confirm that the answer by Vu Anh works. Here's an explanation why this happens when products are saved, although the deleted theme is used nowhere:



                After saving a product, the image cache is regenerated for all themes. Each theme can have its own image size formats, defined in etc/view.xml and all of these will be generated.



                But instead of looking for the configured themes in all stores, Magento goes through all themes in the theme table.



                If you did not properly uninstall a theme and just removed the files, the orphaned entry refers to a nonexistent path and the described exception is thrown.







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Sep 18 '17 at 16:27









                Rafael Corrêa Gomes

                4,87523367




                4,87523367










                answered Jul 4 '17 at 12:06









                Fabian SchmenglerFabian Schmengler

                55.2k21142357




                55.2k21142357





















                    2














                    I have the same error Required parameter 'theme_dir' was not passed. I work with 2.1.0 from the beginning, not with updating. And I have one custom product attribute "style".



                    The problem occurs when I try to save the new photo in the material. Without the image, the product saved normally.



                    Fix with commenting the exception under the file:



                    vendor/magento/framework/view/design/Fallbck/Rule/Simple.php 


                    It worked for me. But I think it's a hack.






                    share|improve this answer

























                    • This is definitely a hack. Fix the problem instead of removing the exception.

                      – Daan van den Bergh
                      Oct 25 '18 at 10:50















                    2














                    I have the same error Required parameter 'theme_dir' was not passed. I work with 2.1.0 from the beginning, not with updating. And I have one custom product attribute "style".



                    The problem occurs when I try to save the new photo in the material. Without the image, the product saved normally.



                    Fix with commenting the exception under the file:



                    vendor/magento/framework/view/design/Fallbck/Rule/Simple.php 


                    It worked for me. But I think it's a hack.






                    share|improve this answer

























                    • This is definitely a hack. Fix the problem instead of removing the exception.

                      – Daan van den Bergh
                      Oct 25 '18 at 10:50













                    2












                    2








                    2







                    I have the same error Required parameter 'theme_dir' was not passed. I work with 2.1.0 from the beginning, not with updating. And I have one custom product attribute "style".



                    The problem occurs when I try to save the new photo in the material. Without the image, the product saved normally.



                    Fix with commenting the exception under the file:



                    vendor/magento/framework/view/design/Fallbck/Rule/Simple.php 


                    It worked for me. But I think it's a hack.






                    share|improve this answer















                    I have the same error Required parameter 'theme_dir' was not passed. I work with 2.1.0 from the beginning, not with updating. And I have one custom product attribute "style".



                    The problem occurs when I try to save the new photo in the material. Without the image, the product saved normally.



                    Fix with commenting the exception under the file:



                    vendor/magento/framework/view/design/Fallbck/Rule/Simple.php 


                    It worked for me. But I think it's a hack.







                    share|improve this answer














                    share|improve this answer



                    share|improve this answer








                    edited Sep 18 '17 at 16:21









                    Rafael Corrêa Gomes

                    4,87523367




                    4,87523367










                    answered Aug 30 '16 at 4:34









                    GalinaGalina

                    593




                    593












                    • This is definitely a hack. Fix the problem instead of removing the exception.

                      – Daan van den Bergh
                      Oct 25 '18 at 10:50

















                    • This is definitely a hack. Fix the problem instead of removing the exception.

                      – Daan van den Bergh
                      Oct 25 '18 at 10:50
















                    This is definitely a hack. Fix the problem instead of removing the exception.

                    – Daan van den Bergh
                    Oct 25 '18 at 10:50





                    This is definitely a hack. Fix the problem instead of removing the exception.

                    – Daan van den Bergh
                    Oct 25 '18 at 10:50











                    -2














                    Finally I fixed it by commenting out the exception under vendor/magento/framework/View/Design/Fallback/Rule/Simple.php.



                    if (in_array($placeholder, $this->optionalParams)) 
                    return [];
                    else
                    return [];
                    //throw new InvalidArgumentException("Required parameter '$placeholder' was not passed");






                    share|improve this answer




















                    • 4





                      But this doesn't fix the error, only doesn't show it anymore. (I think Vu Anh's solution is more a fix)

                      – BvdVen
                      Sep 30 '16 at 13:02






                    • 3





                      This is not the right way of fixing this issue! Check the answer from Vu Anh.

                      – medina
                      Oct 18 '16 at 5:03






                    • 2





                      This is not a best solution. Please don't do this

                      – Ankit Shah
                      Mar 27 '17 at 4:23















                    -2














                    Finally I fixed it by commenting out the exception under vendor/magento/framework/View/Design/Fallback/Rule/Simple.php.



                    if (in_array($placeholder, $this->optionalParams)) 
                    return [];
                    else
                    return [];
                    //throw new InvalidArgumentException("Required parameter '$placeholder' was not passed");






                    share|improve this answer




















                    • 4





                      But this doesn't fix the error, only doesn't show it anymore. (I think Vu Anh's solution is more a fix)

                      – BvdVen
                      Sep 30 '16 at 13:02






                    • 3





                      This is not the right way of fixing this issue! Check the answer from Vu Anh.

                      – medina
                      Oct 18 '16 at 5:03






                    • 2





                      This is not a best solution. Please don't do this

                      – Ankit Shah
                      Mar 27 '17 at 4:23













                    -2












                    -2








                    -2







                    Finally I fixed it by commenting out the exception under vendor/magento/framework/View/Design/Fallback/Rule/Simple.php.



                    if (in_array($placeholder, $this->optionalParams)) 
                    return [];
                    else
                    return [];
                    //throw new InvalidArgumentException("Required parameter '$placeholder' was not passed");






                    share|improve this answer















                    Finally I fixed it by commenting out the exception under vendor/magento/framework/View/Design/Fallback/Rule/Simple.php.



                    if (in_array($placeholder, $this->optionalParams)) 
                    return [];
                    else
                    return [];
                    //throw new InvalidArgumentException("Required parameter '$placeholder' was not passed");







                    share|improve this answer














                    share|improve this answer



                    share|improve this answer








                    edited Feb 16 '17 at 14:00









                    7ochem

                    5,90993770




                    5,90993770










                    answered Jul 15 '16 at 2:42







                    user2520














                    • 4





                      But this doesn't fix the error, only doesn't show it anymore. (I think Vu Anh's solution is more a fix)

                      – BvdVen
                      Sep 30 '16 at 13:02






                    • 3





                      This is not the right way of fixing this issue! Check the answer from Vu Anh.

                      – medina
                      Oct 18 '16 at 5:03






                    • 2





                      This is not a best solution. Please don't do this

                      – Ankit Shah
                      Mar 27 '17 at 4:23












                    • 4





                      But this doesn't fix the error, only doesn't show it anymore. (I think Vu Anh's solution is more a fix)

                      – BvdVen
                      Sep 30 '16 at 13:02






                    • 3





                      This is not the right way of fixing this issue! Check the answer from Vu Anh.

                      – medina
                      Oct 18 '16 at 5:03






                    • 2





                      This is not a best solution. Please don't do this

                      – Ankit Shah
                      Mar 27 '17 at 4:23







                    4




                    4





                    But this doesn't fix the error, only doesn't show it anymore. (I think Vu Anh's solution is more a fix)

                    – BvdVen
                    Sep 30 '16 at 13:02





                    But this doesn't fix the error, only doesn't show it anymore. (I think Vu Anh's solution is more a fix)

                    – BvdVen
                    Sep 30 '16 at 13:02




                    3




                    3





                    This is not the right way of fixing this issue! Check the answer from Vu Anh.

                    – medina
                    Oct 18 '16 at 5:03





                    This is not the right way of fixing this issue! Check the answer from Vu Anh.

                    – medina
                    Oct 18 '16 at 5:03




                    2




                    2





                    This is not a best solution. Please don't do this

                    – Ankit Shah
                    Mar 27 '17 at 4:23





                    This is not a best solution. Please don't do this

                    – Ankit Shah
                    Mar 27 '17 at 4:23

















                    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%2f125435%2fmagento2-1-0-showing-error-required-parameter-theme-dir-was-not-passed-while-s%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

                    Grendel Contents Story Scholarship Depictions Notes References Navigation menu10.1093/notesj/gjn112Berserkeree

                    Area configuration aggregation error after install Porto themeMagento 2.1 CE Installed but front/backend not loading/workingCSS not loading on page within Magento 2 pageCannot install module in Magento 2no commands defined in the “setup” namespace. in Magento2Magento 2: Static files are present but shows 404Why do i have to always run the commands to clean cache in Magento 2.1.8?Failure reason: 'Unable to unserialize value.'Error 500 after magento migrationIn production mode the site does not loadMagento 2 : Error 500 after installing

                    Middle Expansion Olielle Resaix Definition: Uttering songs of triumph shouting with joy triumphant exulting Sejunction Journal 붙다 달 고급 품목 외출 The stretch trades the screeching tin. Definition: The act of speaking with a drawl a drawl Cough Sand Definition: An uproar a quarrel a noisy outbreak Shake Iron Publicize Horse House Baby 사과 Resaix Flaggy Jelly Temporary Unequaled Puppet A drop in the bucket Shrew 성격 회원 성질 미팅 The burn frames the tacky quality. Materialistic The smoke reduces the way. Yammoe Nondescript Cheek 얼굴 배 약하다 날리다 타다 The illegal country shows the iron. Help Rule Drearien Smoke Teaching Meaty Wasp Abraham Lincoln Jaws 진심 수리하다 Size Cork Idea Convert Think Lark John Lennon 거울 청소 군 추천하다 아이스크림