Media library RuntimeException

Created on 2 July 2024, 6 months ago
Updated 17 July 2024, 5 months ago

Problem/Motivation

Cannot use newly uploaded image from within media library modal. The problem is similar to a bug I found reported for an older version, but the error in the logs is different, so I'm reporting it as a separate issue. ( https://www.drupal.org/project/gutenberg/issues/3189632 β†’ )

Steps to reproduce

- add image block
- click 'Media Library'
- click button under 'Add file' to select an image from your pc
- you successfully see a thumbnail preview
- You click insert, and you are taken back to the main screen to create the node, but there are no media inserted.
- Error in the logs shows:
RuntimeException: gutenberg.media_library.opener must be an instance of Drupal\media_library\MediaLibraryOpenerInterface in Drupal\media_library\OpenerResolver->get() (line 46 of /code/web/core/modules/media_library/src/OpenerResolver.php).

Proposed resolution

I'm sorry I can't suggest one.

πŸ› Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States marysalome

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

Comments & Activities

Production build 0.71.5 2024