Hi,

I tried to install this module on a site without the Media module.

Got this error:

Unable to install Image Alt Fallback due to unmet dependencies: views.view.media_alts (media)

I am guessing the module itself does not require Media, but a required View does.

Thanks.

CommentFileSizeAuthor
#5 image_alt_fallback.patch284 bytesduckydan
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

duckydan created an issue. See original summary.

dkmishra made their first commit to this issue’s fork.

dkmishra’s picture

Status: Active » Needs review

I have created a merge request for this issue.

Changes included:
Added missing `media` and `image` module dependencies in `image_alt_fallback.info.yml`
Moved `views.view.media_alts.yml` from `config/install` to `config/optional` to avoid installation failures caused by unmet Media/View dependencies

This fixes the `UnmetDependenciesException` during module installation.

duckydan’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new284 bytes

Hi,

I made the attached patch to make these changes, and the installation worked great.

Thank you!

It seems to make media a requirement. I don't use the Media module, so I was not able to check the functionality, but it installed in my local environment and I was able to get to the config page fine.

  • d125875b committed on 1.0.x
    Issue #3592040: Move media_alts view to optional config and add missing...
alejandro cabarcos’s picture

Status: Reviewed & tested by the community » Fixed

Merged!

Thanks @dkmishra and @duckydan.

Will be included in the next release.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.