What does module:disable actually do?Magento 2 grunt exec does not actually create symlinksWhat does this di.xml file have incorrect?getIdentities() what it does?Magento2 changes not deployedWhat does setup:upgrade actually do?What does each entry in index management actually do?What startSetup() and endSetup() methods actually does?What does product_data_storage do?What does Module Magento_InventoryConfigurableProduct do?Module written in 2.1.3 does not work in Magento 2.3.1

How can I safely determine the output voltage and current of a transformer?

Is Big Ben visible from the British museum?

How was the blinking terminal cursor invented?

Non-African Click Languages

Does a non-singular matrix have a large minor with disjoint rows and columns and full rank?

Do we see some Unsullied doing this in S08E05?

Would a "ring language" be possible?

What are the effects of eating many berries from the Goodberry spell per day?

What is the conversion rate for Sorcery Points to Spell Points?

AD: OU for system administrator accounts

How to handle professionally if colleagues has referred his relative and asking to take easy while taking interview

Is Precocious Apprentice enough for Mystic Theurge?

What would a Dragon have to exhale to cause rain?

Have there been any examples of re-usable rockets in the past?

Deleting the same lines from a list

Why do galaxies collide?

Would it be fair to use 1d30 (instead of rolling 2d20 and taking the higher die) for advantage rolls?

What do astronauts do with their trash on the ISS?

Is it standard for US-based universities to consider the ethnicity of an applicant during PhD admissions?

Failing students when it might cause them economic ruin

A person lacking money who shows off a lot

How could it be that 80% of townspeople were farmers during the Edo period in Japan?

Square spiral in Mathematica

Why would you put your input amplifier in front of your filtering for and ECG signal?



What does module:disable actually do?


Magento 2 grunt exec does not actually create symlinksWhat does this di.xml file have incorrect?getIdentities() what it does?Magento2 changes not deployedWhat does setup:upgrade actually do?What does each entry in index management actually do?What startSetup() and endSetup() methods actually does?What does product_data_storage do?What does Module Magento_InventoryConfigurableProduct do?Module written in 2.1.3 does not work in Magento 2.3.1






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








1















Background:



I seem to be having trouble disabling modules on my M2 2.3.1 store. Example: I had installed the CommerceBug development module but wanted to test my site without it so I ran module:disable Company_Commercebug.



Magento reported that the module was disabled. (I then ran the usual setup:upgrade, deleted all cache/generated/static directories and cleared all redis caches), but I found that the module was still outputting its CSS and JS files via the frontend.



This behaviour only stopped when I uninstalled the module using module:uninstall.



There is a good explanation of what module:uninstall does in the Magento Dev Docs but there is not an equivalent explanation for module:disable.



So what does module:disable actually do? Is it meant to prevent CSS/JS/etc. from being included? How does it differ from "Disable module output" in the admin panel?










share|improve this question




























    1















    Background:



    I seem to be having trouble disabling modules on my M2 2.3.1 store. Example: I had installed the CommerceBug development module but wanted to test my site without it so I ran module:disable Company_Commercebug.



    Magento reported that the module was disabled. (I then ran the usual setup:upgrade, deleted all cache/generated/static directories and cleared all redis caches), but I found that the module was still outputting its CSS and JS files via the frontend.



    This behaviour only stopped when I uninstalled the module using module:uninstall.



    There is a good explanation of what module:uninstall does in the Magento Dev Docs but there is not an equivalent explanation for module:disable.



    So what does module:disable actually do? Is it meant to prevent CSS/JS/etc. from being included? How does it differ from "Disable module output" in the admin panel?










    share|improve this question
























      1












      1








      1








      Background:



      I seem to be having trouble disabling modules on my M2 2.3.1 store. Example: I had installed the CommerceBug development module but wanted to test my site without it so I ran module:disable Company_Commercebug.



      Magento reported that the module was disabled. (I then ran the usual setup:upgrade, deleted all cache/generated/static directories and cleared all redis caches), but I found that the module was still outputting its CSS and JS files via the frontend.



      This behaviour only stopped when I uninstalled the module using module:uninstall.



      There is a good explanation of what module:uninstall does in the Magento Dev Docs but there is not an equivalent explanation for module:disable.



      So what does module:disable actually do? Is it meant to prevent CSS/JS/etc. from being included? How does it differ from "Disable module output" in the admin panel?










      share|improve this question














      Background:



      I seem to be having trouble disabling modules on my M2 2.3.1 store. Example: I had installed the CommerceBug development module but wanted to test my site without it so I ran module:disable Company_Commercebug.



      Magento reported that the module was disabled. (I then ran the usual setup:upgrade, deleted all cache/generated/static directories and cleared all redis caches), but I found that the module was still outputting its CSS and JS files via the frontend.



      This behaviour only stopped when I uninstalled the module using module:uninstall.



      There is a good explanation of what module:uninstall does in the Magento Dev Docs but there is not an equivalent explanation for module:disable.



      So what does module:disable actually do? Is it meant to prevent CSS/JS/etc. from being included? How does it differ from "Disable module output" in the admin panel?







      magento2 module frontend magento2.3.1






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked May 11 at 15:49









      WackGetWackGet

      417313




      417313




















          1 Answer
          1






          active

          oldest

          votes


















          1














          When you run php bin/magento module:disable Company_Commercebug, It will disable the module in app/etc/config.php



          <?php
          return [
          ...
          'Company_Commercebug' => 0,
          ...
          ]
          ];


          So once your extension will be disabled, you need to remove it's statis using below process:



          Remove following :



          pub/static - Do not delete .htaccess
          var/cache
          var/composer_home
          var/page_cache
          var/view_preprocessed
          generation/


          Now run: php bin/magento setup:static-content:deploy using -f if you are in developer mode.



          Alternativally, you can also use below command, it will create it's static content:



          php bin/magento module:disable Company_Commercebug --clear-static-content





          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%2f274266%2fwhat-does-moduledisable-actually-do%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            1














            When you run php bin/magento module:disable Company_Commercebug, It will disable the module in app/etc/config.php



            <?php
            return [
            ...
            'Company_Commercebug' => 0,
            ...
            ]
            ];


            So once your extension will be disabled, you need to remove it's statis using below process:



            Remove following :



            pub/static - Do not delete .htaccess
            var/cache
            var/composer_home
            var/page_cache
            var/view_preprocessed
            generation/


            Now run: php bin/magento setup:static-content:deploy using -f if you are in developer mode.



            Alternativally, you can also use below command, it will create it's static content:



            php bin/magento module:disable Company_Commercebug --clear-static-content





            share|improve this answer



























              1














              When you run php bin/magento module:disable Company_Commercebug, It will disable the module in app/etc/config.php



              <?php
              return [
              ...
              'Company_Commercebug' => 0,
              ...
              ]
              ];


              So once your extension will be disabled, you need to remove it's statis using below process:



              Remove following :



              pub/static - Do not delete .htaccess
              var/cache
              var/composer_home
              var/page_cache
              var/view_preprocessed
              generation/


              Now run: php bin/magento setup:static-content:deploy using -f if you are in developer mode.



              Alternativally, you can also use below command, it will create it's static content:



              php bin/magento module:disable Company_Commercebug --clear-static-content





              share|improve this answer

























                1












                1








                1







                When you run php bin/magento module:disable Company_Commercebug, It will disable the module in app/etc/config.php



                <?php
                return [
                ...
                'Company_Commercebug' => 0,
                ...
                ]
                ];


                So once your extension will be disabled, you need to remove it's statis using below process:



                Remove following :



                pub/static - Do not delete .htaccess
                var/cache
                var/composer_home
                var/page_cache
                var/view_preprocessed
                generation/


                Now run: php bin/magento setup:static-content:deploy using -f if you are in developer mode.



                Alternativally, you can also use below command, it will create it's static content:



                php bin/magento module:disable Company_Commercebug --clear-static-content





                share|improve this answer













                When you run php bin/magento module:disable Company_Commercebug, It will disable the module in app/etc/config.php



                <?php
                return [
                ...
                'Company_Commercebug' => 0,
                ...
                ]
                ];


                So once your extension will be disabled, you need to remove it's statis using below process:



                Remove following :



                pub/static - Do not delete .htaccess
                var/cache
                var/composer_home
                var/page_cache
                var/view_preprocessed
                generation/


                Now run: php bin/magento setup:static-content:deploy using -f if you are in developer mode.



                Alternativally, you can also use below command, it will create it's static content:



                php bin/magento module:disable Company_Commercebug --clear-static-content






                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered May 11 at 18:12









                Saphal JhaSaphal Jha

                1,032616




                1,032616



























                    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%2f274266%2fwhat-does-moduledisable-actually-do%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 거울 청소 군 추천하다 아이스크림