Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #2
slashrsm CreditAttribution: slashrsm at MD Systems GmbH commentedAs 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.
Comment #3
joseph.olstadDropzonejs 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.
Comment #4
joseph.olstadwhy so many mandatory dependencies?
interesting though.
Comment #5
joseph.olstadComment #6
joseph.olstadsuggest you install the missing libraries
Comment #7
joseph.olstadHere are the modules you need to install that are required BEFORE installing media 8.x
Comment #8
caldenjacobs CreditAttribution: caldenjacobs commentedIn 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.
Comment #9
caldenjacobs CreditAttribution: caldenjacobs commentedComment #10
joseph.olstadok, we'll have to wait for the 8.x people ring in.
Comment #11
joseph.olstadcaldenjacobs, are you using 8.3.x ? you should be using 8.2.x
Comment #12
remyyyyydrush pm-uninstall media
drush pm-install media
drush en media
Comment #13
caldenjacobs CreditAttribution: caldenjacobs commented@remyyyyy #12 and a drush cr for good measure had solved the problem for me. Thanks!