We went from Lightning 2.1.8 to 3.0.1 and got this error when running database updates,

Before continuing, please make sure all modules that provide plugins for Media Entity (or depend on it) have their code updated to their respective 2.x branches. Note that you will probably need to revert to the 1.x branch of the Media Entity module if you want to uninstall existing plugin modules. The following modules depend on media entity and need to be either upgraded or uninstalled: lightning_media, media_entity_instagram, media_entity_twitter, video_embed_media.

This is because the new stand alone modules are 1.x versions when they used to be 2.x versions when included in Lightning. Maybe change the stand alone versions or update that update hook, or ... make people go to the last 2.x version of Lightning first (which is what we're doing).

Comments

pandaeskimo created an issue. See original summary.

balsama’s picture

That's really interesting. Using "magic" branch names to determine if a module is compatible is so brittle. But I don't know what other choice Media had.

Anyway, you would have to update to the 2.2.x branch before jumping to the 3.0.x branch anyway since there are other updates which have since been removed as part of #2927527: Remove unused/deprecated modules from codebase.

I think your last suggestion is the right one (make people update to 2.2.7 before switching to 3.0.1). I'm not sure where else we could document that though.

balsama’s picture

Status: Active » Closed (outdated)

Later versions of the 3.0.x branch fixed the upgrade problem with media.