Currently, the embed config prevents media_directories_editor module to be installed if trying to do site install, because it depends on media types but these don't exist by the time it tries to install it.

Comments

rang501 created an issue. See original summary.

ytsurk’s picture

Status: Needs review » Postponed (maintainer needs more info)

How to reproduce this?

I tried drush si, and drush en media_directories_editor (on 8.8.2) - and all worked fine ..

Also, I would not make the config optional. The module shall not be enabled, when it gets enabled the button should be made.
If we cannot make the button, we should check via hook_requirements, so users to necessary steps first to finally successfully install the editor sub-module ...

rang501’s picture

I had a problem with site install when using a custom profile that didn't install media types (config inside submodule). Maybe something to do with dependencies.
It does work with the Standard profile.

Maybe this config should be created programmatically on module install, we could then check if standard media types are available or not? If not available, notify user about it.

ytsurk’s picture

I just would not let install the module if no media type is enabled (via hook_requirements).

ytsurk’s picture

Status: Postponed (maintainer needs more info) » Needs work
ytsurk’s picture

Status: Needs work » Closed (duplicate)
Related issues: +#3117564: Remove media type dependencies from embed button config