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, about 2 years ago
Updated 4 September 2024, 2 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 19 minutes 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

Merge Requests

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.71.5 2024