- Issue created by @socketwench
When calling file_get_file_references() in media_entity_download_count_file_access(), the module doesn't check if the returned value is empty. Without this, the following call occurs with empty variables, resulting in a BSOD:
$download_entity = $entity_type_manager
->getStorage($entity_type)
->load($entity_id)
->bundle();
In one site, this was replicated by having an authenticated user (with no other roles) upload a new profile picture and save their profile.
Add checking for empty on either of the two variables. If empty, return.
Create patch.
None.
None.
None.
Active
1.0
Code