Adding Module Causes Install Screen












0















[EDIT]



Added screenshot showing can't run any of the CLI commands being suggested:



CLI not working



[/EDIT]



Implemented add new table official learning module (http://devdocs.magento.com/videos/fundamentals/add-a-new-table-to-database/) with no issues.



Implemented add new product attribute official learning module (http://devdocs.magento.com/videos/fundamentals/add-new-product-attribute/), and the # magento setup:upgrade step yields:




magento_user@ubuntu:/var/www/html/magento.dev/app/code/Learning/ClothingMaterial/Setup#
magento setup:upgrade
Notice: Undefined index: websites in /var/www/html/magento.dev/vendor/magento/module-config/App/Config/Type/System.php
on line 248




Now I'm getting the install screen when I visit the store.




Welcome to Magento Admin, your online store headquarters. Click
'Agree and Set Up Magento' or read Getting Started to learn more.




Tried uninstalling the module # magento module:disable Learning_ClothingMaterial --clear-static-content and re-running # magento setup:upgrade amd # magento setup:di:compile but upgrade yields same error as above and compile yields:




[Exception] Warning: array_replace_recursive(): Argument #1 is not
an array in /var/www/html/magento.dev/vendor/magento/fram

ework/App/DeploymentConfig/Writer.php on line 135




It's impressive that following along with an official tutorial causes this level of destruction. Really hope there's an easy fix, as have had to re-install a half-dozen times now due to very similar issues.



Env: a vanilla composer CE 2.2 sandbox, on a bare metal Ubuntu 16 LAMP with PHP 7.1.










share|improve this question
















bumped to the homepage by Community 3 hours ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.




















    0















    [EDIT]



    Added screenshot showing can't run any of the CLI commands being suggested:



    CLI not working



    [/EDIT]



    Implemented add new table official learning module (http://devdocs.magento.com/videos/fundamentals/add-a-new-table-to-database/) with no issues.



    Implemented add new product attribute official learning module (http://devdocs.magento.com/videos/fundamentals/add-new-product-attribute/), and the # magento setup:upgrade step yields:




    magento_user@ubuntu:/var/www/html/magento.dev/app/code/Learning/ClothingMaterial/Setup#
    magento setup:upgrade
    Notice: Undefined index: websites in /var/www/html/magento.dev/vendor/magento/module-config/App/Config/Type/System.php
    on line 248




    Now I'm getting the install screen when I visit the store.




    Welcome to Magento Admin, your online store headquarters. Click
    'Agree and Set Up Magento' or read Getting Started to learn more.




    Tried uninstalling the module # magento module:disable Learning_ClothingMaterial --clear-static-content and re-running # magento setup:upgrade amd # magento setup:di:compile but upgrade yields same error as above and compile yields:




    [Exception] Warning: array_replace_recursive(): Argument #1 is not
    an array in /var/www/html/magento.dev/vendor/magento/fram

    ework/App/DeploymentConfig/Writer.php on line 135




    It's impressive that following along with an official tutorial causes this level of destruction. Really hope there's an easy fix, as have had to re-install a half-dozen times now due to very similar issues.



    Env: a vanilla composer CE 2.2 sandbox, on a bare metal Ubuntu 16 LAMP with PHP 7.1.










    share|improve this question
















    bumped to the homepage by Community 3 hours ago


    This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.


















      0












      0








      0








      [EDIT]



      Added screenshot showing can't run any of the CLI commands being suggested:



      CLI not working



      [/EDIT]



      Implemented add new table official learning module (http://devdocs.magento.com/videos/fundamentals/add-a-new-table-to-database/) with no issues.



      Implemented add new product attribute official learning module (http://devdocs.magento.com/videos/fundamentals/add-new-product-attribute/), and the # magento setup:upgrade step yields:




      magento_user@ubuntu:/var/www/html/magento.dev/app/code/Learning/ClothingMaterial/Setup#
      magento setup:upgrade
      Notice: Undefined index: websites in /var/www/html/magento.dev/vendor/magento/module-config/App/Config/Type/System.php
      on line 248




      Now I'm getting the install screen when I visit the store.




      Welcome to Magento Admin, your online store headquarters. Click
      'Agree and Set Up Magento' or read Getting Started to learn more.




      Tried uninstalling the module # magento module:disable Learning_ClothingMaterial --clear-static-content and re-running # magento setup:upgrade amd # magento setup:di:compile but upgrade yields same error as above and compile yields:




      [Exception] Warning: array_replace_recursive(): Argument #1 is not
      an array in /var/www/html/magento.dev/vendor/magento/fram

      ework/App/DeploymentConfig/Writer.php on line 135




      It's impressive that following along with an official tutorial causes this level of destruction. Really hope there's an easy fix, as have had to re-install a half-dozen times now due to very similar issues.



      Env: a vanilla composer CE 2.2 sandbox, on a bare metal Ubuntu 16 LAMP with PHP 7.1.










      share|improve this question
















      [EDIT]



      Added screenshot showing can't run any of the CLI commands being suggested:



      CLI not working



      [/EDIT]



      Implemented add new table official learning module (http://devdocs.magento.com/videos/fundamentals/add-a-new-table-to-database/) with no issues.



      Implemented add new product attribute official learning module (http://devdocs.magento.com/videos/fundamentals/add-new-product-attribute/), and the # magento setup:upgrade step yields:




      magento_user@ubuntu:/var/www/html/magento.dev/app/code/Learning/ClothingMaterial/Setup#
      magento setup:upgrade
      Notice: Undefined index: websites in /var/www/html/magento.dev/vendor/magento/module-config/App/Config/Type/System.php
      on line 248




      Now I'm getting the install screen when I visit the store.




      Welcome to Magento Admin, your online store headquarters. Click
      'Agree and Set Up Magento' or read Getting Started to learn more.




      Tried uninstalling the module # magento module:disable Learning_ClothingMaterial --clear-static-content and re-running # magento setup:upgrade amd # magento setup:di:compile but upgrade yields same error as above and compile yields:




      [Exception] Warning: array_replace_recursive(): Argument #1 is not
      an array in /var/www/html/magento.dev/vendor/magento/fram

      ework/App/DeploymentConfig/Writer.php on line 135




      It's impressive that following along with an official tutorial causes this level of destruction. Really hope there's an easy fix, as have had to re-install a half-dozen times now due to very similar issues.



      Env: a vanilla composer CE 2.2 sandbox, on a bare metal Ubuntu 16 LAMP with PHP 7.1.







      module magento2.2 exception






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 2 '17 at 16:03







      FlashJordan

















      asked Nov 1 '17 at 23:28









      FlashJordanFlashJordan

      315




      315





      bumped to the homepage by Community 3 hours ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







      bumped to the homepage by Community 3 hours ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
























          2 Answers
          2






          active

          oldest

          votes


















          0














          If you want to uninstall it:



          -> go to Database



          -> go to setup_module



          -> find Learning_ClothingMaterial



          -> delete row



          -> clear cache with php bin/magento cache:clean



          -> clear generated by deleting content of the folder /generated



          -> run setup upgrade with php bin/magento setup:upgrade



          -> recompile website with php bin/magento setup:static-content:deploy



          Update



          Not sure why you do not need to use php bin/magento because the magento commands should be in the bin folder.



          I can tell you in developer mode you need to add '-f' to the command like php bin/magento -f setup:static-content:deploy



          I can also tell you if its not the bin/magento and you are still getting the 'there are no commands defined in the ... namespace' it means that a class was not used (on top of you php file you need to include your classes by adding 'use Magento/.../..." or badly used in the __construct of your php files.



          You can just delete the module files and directories that you created , delete the setup_module and recompile.



          If you want to get the module working then you need to go and comment out every class that you used until it works.



          To provide more assistance on that i will need to see your code.






          share|improve this answer


























          • Deleted Learning_ClothingMaterial from setup_module table, and deleted content from /generated. # magento cache:clean fails: [SymfonyComponentConsoleExceptionCommandNotFoundException] There are no commands defined in the "cache" namespace.

            – FlashJordan
            Nov 2 '17 at 15:46













          • Added screenshot to OP showing CLI output for the commands you recommended.

            – FlashJordan
            Nov 2 '17 at 16:25











          • Updated my answer

            – SwAt.Be
            Nov 3 '17 at 3:47











          • Running export PATH=$PATH:/var/www/html/magento.dev/bin makes magento a shortcut for php bin/magento. Static content deployment fails with -f as well. All custmizations added were copy/pasted from this official magento tutorial, so if the usings or contructors are erroneous... Yes, I deleted all flat file content added for the tutorial. As such, there's no code for you to see... this was a functioning vanilla CE 2.2 sandbox with no customization apart from the two training modules noted in the OP.

            – FlashJordan
            Nov 3 '17 at 15:48



















          0














          Try this in your custom module module.xml file



          <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../lib/internal/Magento/Framework/Module/etc/module.xsd">
          <module name="Namespace_Modulename" setup_version="1.0.0">
          </module>







          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%2f199689%2fadding-module-causes-install-screen%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            If you want to uninstall it:



            -> go to Database



            -> go to setup_module



            -> find Learning_ClothingMaterial



            -> delete row



            -> clear cache with php bin/magento cache:clean



            -> clear generated by deleting content of the folder /generated



            -> run setup upgrade with php bin/magento setup:upgrade



            -> recompile website with php bin/magento setup:static-content:deploy



            Update



            Not sure why you do not need to use php bin/magento because the magento commands should be in the bin folder.



            I can tell you in developer mode you need to add '-f' to the command like php bin/magento -f setup:static-content:deploy



            I can also tell you if its not the bin/magento and you are still getting the 'there are no commands defined in the ... namespace' it means that a class was not used (on top of you php file you need to include your classes by adding 'use Magento/.../..." or badly used in the __construct of your php files.



            You can just delete the module files and directories that you created , delete the setup_module and recompile.



            If you want to get the module working then you need to go and comment out every class that you used until it works.



            To provide more assistance on that i will need to see your code.






            share|improve this answer


























            • Deleted Learning_ClothingMaterial from setup_module table, and deleted content from /generated. # magento cache:clean fails: [SymfonyComponentConsoleExceptionCommandNotFoundException] There are no commands defined in the "cache" namespace.

              – FlashJordan
              Nov 2 '17 at 15:46













            • Added screenshot to OP showing CLI output for the commands you recommended.

              – FlashJordan
              Nov 2 '17 at 16:25











            • Updated my answer

              – SwAt.Be
              Nov 3 '17 at 3:47











            • Running export PATH=$PATH:/var/www/html/magento.dev/bin makes magento a shortcut for php bin/magento. Static content deployment fails with -f as well. All custmizations added were copy/pasted from this official magento tutorial, so if the usings or contructors are erroneous... Yes, I deleted all flat file content added for the tutorial. As such, there's no code for you to see... this was a functioning vanilla CE 2.2 sandbox with no customization apart from the two training modules noted in the OP.

              – FlashJordan
              Nov 3 '17 at 15:48
















            0














            If you want to uninstall it:



            -> go to Database



            -> go to setup_module



            -> find Learning_ClothingMaterial



            -> delete row



            -> clear cache with php bin/magento cache:clean



            -> clear generated by deleting content of the folder /generated



            -> run setup upgrade with php bin/magento setup:upgrade



            -> recompile website with php bin/magento setup:static-content:deploy



            Update



            Not sure why you do not need to use php bin/magento because the magento commands should be in the bin folder.



            I can tell you in developer mode you need to add '-f' to the command like php bin/magento -f setup:static-content:deploy



            I can also tell you if its not the bin/magento and you are still getting the 'there are no commands defined in the ... namespace' it means that a class was not used (on top of you php file you need to include your classes by adding 'use Magento/.../..." or badly used in the __construct of your php files.



            You can just delete the module files and directories that you created , delete the setup_module and recompile.



            If you want to get the module working then you need to go and comment out every class that you used until it works.



            To provide more assistance on that i will need to see your code.






            share|improve this answer


























            • Deleted Learning_ClothingMaterial from setup_module table, and deleted content from /generated. # magento cache:clean fails: [SymfonyComponentConsoleExceptionCommandNotFoundException] There are no commands defined in the "cache" namespace.

              – FlashJordan
              Nov 2 '17 at 15:46













            • Added screenshot to OP showing CLI output for the commands you recommended.

              – FlashJordan
              Nov 2 '17 at 16:25











            • Updated my answer

              – SwAt.Be
              Nov 3 '17 at 3:47











            • Running export PATH=$PATH:/var/www/html/magento.dev/bin makes magento a shortcut for php bin/magento. Static content deployment fails with -f as well. All custmizations added were copy/pasted from this official magento tutorial, so if the usings or contructors are erroneous... Yes, I deleted all flat file content added for the tutorial. As such, there's no code for you to see... this was a functioning vanilla CE 2.2 sandbox with no customization apart from the two training modules noted in the OP.

              – FlashJordan
              Nov 3 '17 at 15:48














            0












            0








            0







            If you want to uninstall it:



            -> go to Database



            -> go to setup_module



            -> find Learning_ClothingMaterial



            -> delete row



            -> clear cache with php bin/magento cache:clean



            -> clear generated by deleting content of the folder /generated



            -> run setup upgrade with php bin/magento setup:upgrade



            -> recompile website with php bin/magento setup:static-content:deploy



            Update



            Not sure why you do not need to use php bin/magento because the magento commands should be in the bin folder.



            I can tell you in developer mode you need to add '-f' to the command like php bin/magento -f setup:static-content:deploy



            I can also tell you if its not the bin/magento and you are still getting the 'there are no commands defined in the ... namespace' it means that a class was not used (on top of you php file you need to include your classes by adding 'use Magento/.../..." or badly used in the __construct of your php files.



            You can just delete the module files and directories that you created , delete the setup_module and recompile.



            If you want to get the module working then you need to go and comment out every class that you used until it works.



            To provide more assistance on that i will need to see your code.






            share|improve this answer















            If you want to uninstall it:



            -> go to Database



            -> go to setup_module



            -> find Learning_ClothingMaterial



            -> delete row



            -> clear cache with php bin/magento cache:clean



            -> clear generated by deleting content of the folder /generated



            -> run setup upgrade with php bin/magento setup:upgrade



            -> recompile website with php bin/magento setup:static-content:deploy



            Update



            Not sure why you do not need to use php bin/magento because the magento commands should be in the bin folder.



            I can tell you in developer mode you need to add '-f' to the command like php bin/magento -f setup:static-content:deploy



            I can also tell you if its not the bin/magento and you are still getting the 'there are no commands defined in the ... namespace' it means that a class was not used (on top of you php file you need to include your classes by adding 'use Magento/.../..." or badly used in the __construct of your php files.



            You can just delete the module files and directories that you created , delete the setup_module and recompile.



            If you want to get the module working then you need to go and comment out every class that you used until it works.



            To provide more assistance on that i will need to see your code.







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Nov 3 '17 at 3:46

























            answered Nov 2 '17 at 3:25









            SwAt.BeSwAt.Be

            1,375624




            1,375624













            • Deleted Learning_ClothingMaterial from setup_module table, and deleted content from /generated. # magento cache:clean fails: [SymfonyComponentConsoleExceptionCommandNotFoundException] There are no commands defined in the "cache" namespace.

              – FlashJordan
              Nov 2 '17 at 15:46













            • Added screenshot to OP showing CLI output for the commands you recommended.

              – FlashJordan
              Nov 2 '17 at 16:25











            • Updated my answer

              – SwAt.Be
              Nov 3 '17 at 3:47











            • Running export PATH=$PATH:/var/www/html/magento.dev/bin makes magento a shortcut for php bin/magento. Static content deployment fails with -f as well. All custmizations added were copy/pasted from this official magento tutorial, so if the usings or contructors are erroneous... Yes, I deleted all flat file content added for the tutorial. As such, there's no code for you to see... this was a functioning vanilla CE 2.2 sandbox with no customization apart from the two training modules noted in the OP.

              – FlashJordan
              Nov 3 '17 at 15:48



















            • Deleted Learning_ClothingMaterial from setup_module table, and deleted content from /generated. # magento cache:clean fails: [SymfonyComponentConsoleExceptionCommandNotFoundException] There are no commands defined in the "cache" namespace.

              – FlashJordan
              Nov 2 '17 at 15:46













            • Added screenshot to OP showing CLI output for the commands you recommended.

              – FlashJordan
              Nov 2 '17 at 16:25











            • Updated my answer

              – SwAt.Be
              Nov 3 '17 at 3:47











            • Running export PATH=$PATH:/var/www/html/magento.dev/bin makes magento a shortcut for php bin/magento. Static content deployment fails with -f as well. All custmizations added were copy/pasted from this official magento tutorial, so if the usings or contructors are erroneous... Yes, I deleted all flat file content added for the tutorial. As such, there's no code for you to see... this was a functioning vanilla CE 2.2 sandbox with no customization apart from the two training modules noted in the OP.

              – FlashJordan
              Nov 3 '17 at 15:48

















            Deleted Learning_ClothingMaterial from setup_module table, and deleted content from /generated. # magento cache:clean fails: [SymfonyComponentConsoleExceptionCommandNotFoundException] There are no commands defined in the "cache" namespace.

            – FlashJordan
            Nov 2 '17 at 15:46







            Deleted Learning_ClothingMaterial from setup_module table, and deleted content from /generated. # magento cache:clean fails: [SymfonyComponentConsoleExceptionCommandNotFoundException] There are no commands defined in the "cache" namespace.

            – FlashJordan
            Nov 2 '17 at 15:46















            Added screenshot to OP showing CLI output for the commands you recommended.

            – FlashJordan
            Nov 2 '17 at 16:25





            Added screenshot to OP showing CLI output for the commands you recommended.

            – FlashJordan
            Nov 2 '17 at 16:25













            Updated my answer

            – SwAt.Be
            Nov 3 '17 at 3:47





            Updated my answer

            – SwAt.Be
            Nov 3 '17 at 3:47













            Running export PATH=$PATH:/var/www/html/magento.dev/bin makes magento a shortcut for php bin/magento. Static content deployment fails with -f as well. All custmizations added were copy/pasted from this official magento tutorial, so if the usings or contructors are erroneous... Yes, I deleted all flat file content added for the tutorial. As such, there's no code for you to see... this was a functioning vanilla CE 2.2 sandbox with no customization apart from the two training modules noted in the OP.

            – FlashJordan
            Nov 3 '17 at 15:48





            Running export PATH=$PATH:/var/www/html/magento.dev/bin makes magento a shortcut for php bin/magento. Static content deployment fails with -f as well. All custmizations added were copy/pasted from this official magento tutorial, so if the usings or contructors are erroneous... Yes, I deleted all flat file content added for the tutorial. As such, there's no code for you to see... this was a functioning vanilla CE 2.2 sandbox with no customization apart from the two training modules noted in the OP.

            – FlashJordan
            Nov 3 '17 at 15:48













            0














            Try this in your custom module module.xml file



            <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../lib/internal/Magento/Framework/Module/etc/module.xsd">
            <module name="Namespace_Modulename" setup_version="1.0.0">
            </module>







            share|improve this answer




























              0














              Try this in your custom module module.xml file



              <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../lib/internal/Magento/Framework/Module/etc/module.xsd">
              <module name="Namespace_Modulename" setup_version="1.0.0">
              </module>







              share|improve this answer


























                0












                0








                0







                Try this in your custom module module.xml file



                <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../lib/internal/Magento/Framework/Module/etc/module.xsd">
                <module name="Namespace_Modulename" setup_version="1.0.0">
                </module>







                share|improve this answer













                Try this in your custom module module.xml file



                <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../lib/internal/Magento/Framework/Module/etc/module.xsd">
                <module name="Namespace_Modulename" setup_version="1.0.0">
                </module>








                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Apr 16 '18 at 14:52









                Raviteja BhaskarabhatlaRaviteja Bhaskarabhatla

                11




                11






























                    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%2f199689%2fadding-module-causes-install-screen%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Magento 2 controller redirect on button click in phtml file

                    Polycentropodidae