Before enabling Media Gallery it is possible to enable and then disable the Media module.

But, if Media Gallery is enabled (and later disabled and fully uninstalled); it is not then possible to disable Media module.

Very easy to replicate.

- With no media modules enabled - enable Media Gallery - dependant modules are also then enabled.
- Disable Media Gallery (and uninstall if you wish)
- Try to disable Media module.

I am currently using 7.x-1.0-beta8+10-dev but I am also needing to patch it with http://drupal.org/node/1939186#comment-7165574 to deal with double browser bug. I also find the issue without this patch

Comments

ranvel’s picture

Version: 7.x-1.x-dev » 7.x-1.0-beta8
Priority: Normal » Major

I'm having this same issue with the same (latest) version. The problem is more severe for me since it added an unremovable (for me) navigation block.

What happens is when you install the Media Gallery, it locks the fields that you use for for the Media module (I think rightly so), but then when you go to disable it, it doesn't give up the control and the lock remains.

mikeohara’s picture

Bump

The only fix I've found was to go into the database under the system table look for sites/all/modules/media/media.module and set the status column to 0 which disables the module. Once you've done that you can enable it again or disable it from the modules page

tierso’s picture

I have the same problem and reported it as a Media bug as I had long since removed Media Gallery when I discovered that I could neither disable nor uninstall Media. Only difference from this case is that I had 7.x-1.0-beta8 (before uninstalling, and it was the only version ever installed).

tierso’s picture

Posted by mikeohara on October 21, 2013 at 6:42am
The only fix I've found was to go into the database under the system table look for sites/all/modules/media/media.module and set the status column to 0 which disables the module. Once you've done that you can enable it again or disable it from the modules page

Did not work for me. Sure the module is now reported as disabled, but the check box is still grayed out, so I can't choose to enable/disable it from the module manager. Well, I cleared the cache, and the check box was no longer grayed out. But if I enable the module from the module manager, the box is grayed out again with the same requirement reason as before:
Required by: Drupal (Fields pending deletion), Media Internet Sources (disabled)
After I had disabled it from the database and cleared the cache (so that the box was tickable) it only said
Required by: Media Internet Sources (disabled).

ParisLiakos’s picture

ivnish’s picture

Status: Active » Closed (outdated)