-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Disable Modules Output - everything appears enabled #7418
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Same here in 2.1.2. The only way you can change these values is through MySQL client directly. |
Is this feature any useful for you BTW? I remember it was planned to be removed at some point but either the plan was changed or it is simply a low priority task. |
Same here in 2.1.2. @sjovanig You can still disable module module using command line in project root I tested this in a freshly installed magento 2.1.2. The behaviour is a little bit different. |
Executing "module:disable" you are completely disabling a module and that can breaks your site. "Disable Modules Output" does not disable modules, only their output. For example, module Magento_Review cannot be easily disabled cause its dependences, try it. The only way is forcing it with "--force" parameter. So this functionality is broken and has to be fixed. |
Module:Disable does not get rid of DI on those modules - only after removing the code does the DI dependencies go away! This should not be the case! |
@sjovanig
This can happen only for poorly written module.
Surely, core modules mostly cannot be disabled, there is only a small subset of disableable core modules like Do you know any valid real-world use case for Disable Module Output feature? |
same on 2.1.1 |
Still an issue in 2.1.3, please fix this. "Do you know any valid real-world use case for Disable Module Output feature?" Yes! There are many features that I don't want to use on my site. I can't disable the modules because of dependencies, but disabling the output so they don't appear on any pages is very useful. The function itself used to work, but when you go back to the admin page everything appears as "Enabled", even if they are disabled. Now in 2.1.3 it seems to not work at all. edit: To add on to that point, I was just trying to remove any reference to newsletters throughout the site. In numerous template files there is a function call to isNewsletterEnabled(). This function checks if the module output is disabled. But, since this isn't working, I have to edit all the templates and possibly cause problems with future updates. edit: I'm thinking this may be related: #7949 edit: Eureka! I changed the "scope" value in the database from "websites" to "default" and both of the issues were fixed. Unfortunately, updating any values from the admin still set the "websites" value so I need to resort to editing the database directly instead. |
In 2.1.3, I'm not able to disable module output in single store mode, but I can with single store mode disabled. I just disable the modules with single store mode disabled then turn it back on. |
Same issue in 2.1.4. Any workarounds that don't involve needing to manually edit the database? |
Hooray! This poor feature is deprecated since 2.2.0.
I do agree that this is a real pain with some Magento 1 legacy code but in process of time developers shall create their extensions with modularity in mind so that disabling module does not break the site. In Magento 2 core there are some disableable modules already, like Disabling output for any nondisableable module could be achieved pretty easily by template customization. |
@garrypark, Thanks for reporting this issue |
@garrypark, thank you for your report. |
the issue not resolve in Magento 2.2.3. I tried create custom module. In this module the layout I add custom link in block name "customer_account_navigation". Module disabled but it showing. |
@xanka please read 2.2 release notes more carefully. "Disable Module Output" feature is deprecated, you're supposed to disable module if you don't need it instead of disabling just output. |
@orlangur You are comparing two different features. Disabling a module can potentially break your site, if there are dependencies. |
No. Dependencies should be properly declared.
It leaves hidden dependencies pretending to just hide the undesired output. Features should be written in such a way that disabling module does not break anything. |
Advanced/Advanced/Configuration -- Disable Modules Output - everything appears enabled
Magento version, 2.1.2,
Expected result
Actual result when saved
Some modules are disabled even though they appear enabled in the Advanced/Advanced/Configuration page
The text was updated successfully, but these errors were encountered: