After grabbing the latest code from http://drupalcode.org/project/media.git & http://drupalcode.org/project/media_gallery.git. When I goto turn on the media gallery. I get an error that says, Media (>=2.x) (incompatible with version 7.x-2.x-dev). I've tried with several combinations of older versions and newer versions to see if something would stick. If I used an older version of media, it would give me a different incompatibility error. Shouldn't the latest code work together thou?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Digital Fire’s picture

Issue summary: View changes
Moloc’s picture

Title: Latest Code throws incompatibilty error » media incompatible with version 7.x-2.x-dev - cannot install
FileSize
371 bytes

version_compare from php seems do not know the 'x'. 2.x-dev is lower than 2.x
we could use 2.x-dev to match any 2.x or higher branch, but drupal core is filtering the "-dev" out.
Therefore the only solution seems to be a check for > version 1.

The question is: do we still need the media version check. As there is now media_bulk_upload in use, we could go back to "media" without the version check?

Moloc’s picture

Status: Active » Needs review
FileSize
362 bytes

As stated before, i think we can remove the version check, as media_bulk_upload requires media 2.x

Moloc’s picture

This seems to be a dupplicate of https://www.drupal.org/node/2325539 which has the same patch.