Problem/Motivation
Upgrading to PHP 8.5 revealed a bunch of warnings on the admin/content/media page:
Deprecated function: Using null as an array offset is deprecated, use an empty string instead in Drupal\Core\Entity\ContentEntityBase->hasTranslation() (line 984 of core/lib/Drupal/Core/Entity/ContentEntityBase.php)
Steps to reproduce
Generally, it is due to rather awkward config, when the site is multilingual, but media is untranslatable and in default language.
Proposed resolution
Add a check for not null in template.
Issue fork gin-3591598
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
gease