Error: Call to a member function uuid() on null in Drupal\media_library\MediaLibraryEditorOpener->getSelectionResponse() (line 72 of /app/docroot/core/modules/media_library/src/MediaLibraryEditorOpener.php)

Created on 16 August 2022, almost 2 years ago
Updated 10 April 2024, 3 months ago

Problem/Motivation

This error occurs when we click on 'Insert Selected' button from the media library without selecting or uploading a media.

Steps to reproduce

  • Go to any add/edit node page with body field.
  • Click on the media library button from the CKeditor
  • Click on the 'Insert Media' button from the image media type tab

It won't show any error in the frontend but logs an error message in watchdog and in browser console.
We see the 'No items selected' message only after switching media tabs.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

🐛 Bug report
Status

Needs work

Version

11.0 🔥

Component
Media 

Last updated about 6 hours ago

Created by

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

  • Needs issue summary update

    Issue summaries save everyone time if they are kept up-to-date. See Update issue summary task instructions.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024