Call to a member function getItemDefinition() on null in FileUpload.php on line 252 #0

Created on 7 May 2021, over 3 years ago
Updated 31 October 2023, about 1 year ago

Problem/Motivation

Getting the following error after recent update of the lightning profile:
Call to a member function getItemDefinition() on null in /mnt/www/html/univeastlonddev/docroot/modules/contrib/lightning_media/src/Plugin/EntityBrowser/Widget/FileUpload.php on line 252 #0 [internal function]: Drupal\lightning_media\Plugin\EntityBrowser\Widget\FileUpload->isAllowedType(Object(Drupal\media\Entity\MediaType))

Steps to reproduce

  • Navigate to entity browser of the media image entity
  • Add new media item
  • Encounter the above reported error

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

๐Ÿ› Bug report
Status

Needs review

Version

4.0

Component

Code

Created by

๐Ÿ‡ฎ๐Ÿ‡ณIndia Ankit Agrawal

Live updates comments and jobs are added and updated live.
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.71.5 2024