Problem/Motivation

Getting this error after the recent update on /admin/config page.

The website encountered an unexpected error. Please try again later.
Error: Call to a member function getItemDefinition() on null in media_requirements() (line 141 of core/modules/media/media.install).

Steps to reproduce

Navigate to /admin/config page.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

CommentFileSizeAuthor
#2 3214732-2.patch1009 bytessaurabh-2k17

Comments

saurabh-2k17 created an issue. See original summary.

saurabh-2k17’s picture

Assigned: saurabh-2k17 » Unassigned
Status: Active » Needs review
StatusFileSize
new1009 bytes

Attaching a patch for the above problem.

phenaproxima’s picture

Status: Needs review » Closed (won't fix)
Related issues: +#3106659: Media types with missing source fields break the status report page

As far as I can tell, this is fixed in Drupal 9.1.x (and later) by #3106659: Media types with missing source fields break the status report page.

It didn't get backported to 8.9.x, presumably because 8.9.x is only accepting security fixes at this point. So, I'm going to close this issue out as "won't fix"; your patch is a perfectly good workaround until 8.9.x reaches its end-of-life. :)