Error when attempting to Download and sync assets

Created on 1 July 2025, 11 days ago

Problem/Motivation

When a user choose to serve media from local instead of embedding, the following error is thrown during batch process:
Error: Call to a member function getFileUri() on null in Drupal\media\Entity\Media->getThumbnailUri() (line 275 of /var/www/html/docroot/core/modules/media/src/Entity/Media.php)

Steps to reproduce

For certain cases it produces error

Proposed resolution

Might need to update the condition with appropriate value here

🐛 Bug report
Status

Active

Version

1.1

Component

Code

Created by

🇮🇳India chandu7929 Pune

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024