Problem/Motivation

If media file is invalid, we got a PHP fatal error

The website encountered an unexpected error. Please try again later.
Error: Call to a member function getFileUri() on null in Drupal\media_duplicates\Plugin\MediaDuplicatesChecksum\File->getChecksumData() (line 27 of modules/contrib/media_duplicates/src/Plugin/MediaDuplicatesChecksum/File.php).

Steps to reproduce

Add media files size limit, and then create new media.

Comments

azenned created an issue. See original summary.

azenned’s picture

  • azenned authored 56b22c2 on 8.x-1.x
    Issue #3177683 by azenned: Media files validation error
    
nterbogt’s picture

Status: Active » Fixed

Thank you for picking this up, and the patch. This is now in 8.x-1.x-dev and I'll roll a new release within the week.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.