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;
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
add a comment |
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
add a comment |
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
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
magento2 module frontend magento2.3.1
asked May 11 at 15:49
WackGetWackGet
417313
417313
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
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
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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
add a comment |
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
add a comment |
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
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
answered May 11 at 18:12
Saphal JhaSaphal Jha
1,032616
1,032616
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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