Clicking on Browse Button of Media Browser throws error on Drupal Core 10.3.0.

Created on 26 June 2024, 5 months ago
Updated 12 July 2024, 4 months ago

Problem/Motivation

Clicking the Browse button of the Media Browser throws following error on Drupal Core 10.3.0.

Uncaught PHP Exception RuntimeException: "media_library.opener.cohesion must be an instance of Drupal\media_library\MediaLibraryOpenerInterface" at /site1/docroot/core/modules/media_library/src/OpenerResolver.php line 46

Starting from Drupal Core 10.3.0, the media_library.opener_resolver service is converted to a service collector with the tag media_library.opener. Therefore, any custom media_library opener must be tagged with media_library.opener, or else it will result in an error. Currently, the Site Studio module provides a media_library opener that is not tagged, causing this error.
See: 📌 Convert OpenerResolver to use a service locator Fixed

Steps to reproduce

  • Download and set up Drupal Core 10.3.0.
  • Export Site Studio API & Organization keys.
  • Download and install the Acquia CMS Site Studio module.
  • Install the Media Library and Site Studio Component modules.
  • Create a new component with a Media Browser field.
  • Click the Browse button of the Media Browser to upload media and you'll see above error.
🐛 Bug report
Status

Closed: outdated

Version

1.0

Component

Code

Created by

🇮🇳India vishalkhode

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024