I build the Drupal installation with Composer, Core, Entity, Media, Media Entity, Video Embed Media , etc.
The Media module was already installed (marked as installed). Now after adding a media entity a url field is missing and I see that the Media is not installed any more. Trying to enable it with drush en media show this error message:

Module media cannot be enabled because it depends on entity  (>=8.x-1.0-alpha3) but  is[error]
available

The media module is marked as not installed. The installed Entity module is current 8.x-1.x-dev.

What can be done to make installation fo media module possible again?

Comments

ksi created an issue. See original summary.

slashrsm’s picture

Category: Bug report » Support request
Priority: Major » Normal
Issue tags: +D8Media

As your message suggests Entity module is either missing, of too old version or used in a form that prevents drupal from detecting its version (git checkout).

Please check if you have it in your project and of which version it is.

joseph.olstad’s picture

Dropzonejs requires the dropzone.min.js library. Download it (https://github.com/enyo/dropzone) and place it in the libraries folder (/libraries)

17 modules enabled : Media entity image, Video Embed Field, Video Embed Media, Media entity slideshow, Media entity Instagram, Media entity Twitter, Media entity document, Slick Media, Slick, Blazy, Entity Browser, Entity Browser IEF, Inline Entity Form, Entity Embed, Embed, ImageWidgetCrop, Crop API.

15 fichiers de traduction importés. 53 traductions ont été ajoutées, 213 traductions ont été mises à jour et 0 traductions ont été supprimées.

joseph.olstad’s picture

why so many mandatory dependencies?

interesting though.

joseph.olstad’s picture

The Slick library should be installed at /libraries/slick/slick/slick.min.js, or any path supported by libraries.module if installed.

Dropzonejs requires the dropzone.min.js library. Download it (https://github.com/enyo/dropzone) and place it in the libraries folder (/libraries)

joseph.olstad’s picture

Status: Active » Postponed (maintainer needs more info)

suggest you install the missing libraries

joseph.olstad’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)

Here are the modules you need to install that are required BEFORE installing media 8.x

17 modules enabled : Media entity image, Video Embed Field, Video Embed Media, Media entity slideshow, Media entity Instagram, Media entity Twitter, Media entity document, Slick Media, Slick, Blazy, Entity Browser, Entity Browser IEF, Inline Entity Form, Entity Embed, Embed, ImageWidgetCrop, Crop API.

The Slick library should be installed at /libraries/slick/slick/slick.min.js, or any path supported by libraries.module if installed.

Dropzonejs requires the dropzone.min.js library. Download it (https://github.com/enyo/dropzone) and place it in the libraries folder (/libraries)

caldenjacobs’s picture

In my case all of these dependencies have already been installed (including the Slick, Blazy, Easing, Cropper, and Dropzone libraries), and I'm still receiving the following error:

Unable to install Media, core.entity_form_display.media.image.default, core.entity_view_display.media.document.media_library have unmet dependencies.

caldenjacobs’s picture

Status: Closed (works as designed) » Active
joseph.olstad’s picture

ok, we'll have to wait for the 8.x people ring in.

joseph.olstad’s picture

caldenjacobs, are you using 8.3.x ? you should be using 8.2.x

remyyyyy’s picture

drush pm-uninstall media
drush pm-install media
drush en media

caldenjacobs’s picture

Status: Active » Closed (outdated)

@remyyyyy #12 and a drush cr for good measure had solved the problem for me. Thanks!