Deletion of an entity crashes when file does not exist

Created on 12 October 2023, about 1 year ago
Updated 17 October 2023, about 1 year ago

An error occurred when an entity has been deleted but with the local file having been deleted prior to the entity. The error is

Got error 'PHP message: Uncaught PHP Exception TypeError: "Drupal\\file\\FileUsage\\DatabaseFileUsageBackend::delete(): Argument #1 ($file) must be of type Drupal\\file\\FileInterface, null given, called in /var/www/html/web/modules/contrib/file_url/src/Plugin/Field/FieldType/FileUrlFieldItemList.php on line 152" at /var/www/html/web/core/modules/file/src/FileUsage/DatabaseFileUsageBackend.php line 66 
.
.
πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡¬πŸ‡·Greece idimopoulos

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

Comments & Activities

Production build 0.71.5 2024