Admin menu is one of the recommended modules appearing on the Commerce project page, and a long time favorite module of mine (thank you!) but we ran into a issue of the combination of both on a recent project.
Commerce requires Rules UI for it's Tax, Tax UI, and Cart Modules. Apparently Rules UI as part of the GUI for their shopping cart. (I spoke with one of their team and there's a plan to remove Rules UI dependency but is isn't going to happen very soon)
I was on a client's live site and enabled views UI to do a minor tweak and then hit. "Disable Development modules" when done. Predictably it disabled Rules UI, but didn't care about modules depending on it (commerce cart). So unfortunately the shopping cart and gave a white screen of death when you checkout.
Here's my proposed feature request. When a user clicks "Disable Development modules" - Check to see if the modules getting disabled have any dependencies. If they do add a dialogue notification. "Are you sure? Module(s) X,Y, and Z require Rules UI"
Also anyone else running into this problem the solution is simply to remove Rules UI from the list of modules disabled by admin menu in admin menu settings. "Developer modules to keep enabled " Check Rules UI.
Comment | File | Size | Author |
---|---|---|---|
#4 | 1516574-remove_rules_admin-6794318.patch | 315 bytes | bricel |
Comments
Comment #1
thetechguide CreditAttribution: thetechguide commentedI am using 7.x-3.0-rc3 of the Admin module, 7.x-1.2 of the devel module and 7.x-2.1 of the Rules UI module. I can confirm that when using the Admin Module to "disable devel modules" the rules UI module and any modules dependent on rules UI are also disabled along with devel and theme developer modules. As many of the commerce modules are dependent on rules UI, they are also disabled which of course breaks your site until you figure out to enable all the impacted modules again. Temporary fix of course is to manually disable the devel modules when finished with them instead of using the admin menu option to disable the modules.
Comment #2
joshbotnet CreditAttribution: joshbotnet commentedyep - see screenshot for example of modules (mainly commerce-related) switched off by Admin menu > Disable developer modules
seems you can avoid this via the "Developer modules to keep enabled" option at /admin/config/administration/admin_menu by keeping the UI-type modules switched on
Comment #3
bricel CreditAttribution: bricel commentedYes, this is a pretty dangerous behavior, since it's unexpected, and will break all commerce sites.
I think rules_admin should be removed from the list of modules disabled with this function.
Comment #4
bricel CreditAttribution: bricel commentedSee attached patch.
Comment #5
johnvThere should be a more generic way then remove this one module. Lots of sites won't have this problem, but will have problems with other modules.
See[#1996082] for a more generic approach