I'm new to Drupal, so apologies in advance if I'm missing something obvious. Until last night I was running:

Media 7.x-1.0-beta5 (http://drupal.org/project/media)
Media Gallery 7.x-1.0-beta6 (http://drupal.org/project/media_gallery)

A link popped up on the Modules screen saying an update was available, so I dutifully installed it. Well, I started to, anyway. When it got to the DB script portion, it stopped and told me there is an unresolved dependency: Media Gallery requires Media (Version 1.0-beta5), but Media is now version 1.0-rc1.

I'd like to disable and uninstall Media Gallery so I can complete the update to Media, but the check box next to Media Gallery on the Modules screen is grayed out, so I cannot disable it. From what is reported on the Modules screen, it doesn't look like anything is dependent on it - why is it grayed out?

Media: Provides the core Media API
Requires: File Entity (enabled), Field (enabled), Field SQL storage (enabled), Chaos tools (enabled), Image (enabled), File (enabled)
Required by: Drupal (Field type(s) in use - see Field list), Media Gallery (enabled), Media Internet Sources (disabled), Rotating banner (disabled)

Media Gallery: A flexible gallery of media.
Requires: List (enabled), Field (enabled), Field SQL storage (enabled), Options (enabled), Number (enabled), Media (1.0-beta5) (incompatible with version 7.x-1.0-rc1), File Entity (enabled), Chaos tools (enabled), Image (enabled), File (enabled), Taxonomy (enabled), Multiple forms (enabled)

How do I uninstall Media Gallery?

Thanks in advance,

David

Comments

bmx269’s picture

Sub

bmx269’s picture

As per the other issue, remove the version dependency from the info file of the gallery module. Works great.

donok’s picture

As far as I can tell, Media Gallery will not let you disable it because it is being used by some active/published/something galleries. Normally the checkbox goes grey when another module requires the module you want to disable, and you have to disable the dependent module first, but this doesn't list any "required bys". Just my guess... don't quote me.

-- Don

davidrmo’s picture

#2 solved it! Thank you for taking time to suggest it. I don't know why it was the way it was, but it's nice to be past it (and to have learned a new trick.)

Thanks again,

David

Kallen5k’s picture

This does not give enough information to resolve the problem. I went to media gallery's info file removed one line, did not solve the problem, unable to remove media gallery.

Kallen5k’s picture

I've tried what I know, and this issue has blocked my access to my live site, I'd like an answer for how to remove media gallery so i can get back to work.

bmx269’s picture

Do you have drush or database access?

Kallen5k’s picture

thanks, I figured out how to find the tool to change the value via IRC #Mysql assistance.
Using PhpMyAdmin:

SELECT name,status FROM system WHERE type='module'

UPDATE system SET status='0' WHERE name='module_name';

pazap47’s picture

Yes same problem. Comment #2 also worked for me. Remember to empty drupal cache when doing this otherwise no go.

prston’s picture

I understand the problem come from the info file which require v1.0-beta5 of Media.

But is Media Gallery really incompatible with Media 1.0-rc1 ?
Or is it just that the info file was written prior to the Media 1.0-rc1 release ? The rc1 release notes http://drupal.org/node/1290660 shows mainly bugfixes...

David_Rothstein’s picture

Subscribing.

Sounds like there might be a Drupal core bug here? (with the way version dependencies are handled by the UI during updates)

Per discussion at #1291054: Release Media Gallery beta7 that is compatible with Media 7.x-1.x RCs and stables people are apparently finding that the latest Media Gallery code does work fine with Media 1.0-rc1. However, the release was only tested with 1.0-beta5 (since 1.0-rc1 didn't exist yet!) and with modules that are under development like this and don't have stable APIs or releases, we can't be sure beforehand that that will be the case.

prston’s picture

After doing some tests on my own on a brand new dev platform, I also got Media Gallery 7.x-1.0-beta6 working with Media 7.x-1.0-rc1.

lsolesen’s picture

Status: Active » Fixed

Marking this as fixed as it seems to have been resolved.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.