Postponed (maintainer needs more info)
Project:
Drupal core
Version:
11.3.x-dev
Component:
entity system
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
23 Jun 2026 at 19:43 UTC
Updated:
25 Jun 2026 at 10:37 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
jons commentedThe data issue can most-likely be resolved by clearing the cache tables eg cache_entity;
The code (
core/lib/Drupal/Core/Entity/EntityDisplayModeBase.php) can be fixed with changing$type_order = strnatcasecmp($a_type, $b_type);to
$type_order = strnatcmp(mb_strtolower($a_type), mb_strtolower($b_type));Comment #3
dcam commentedThis was an issue resulting from badly corrupted configuration, one that was potentially caused by human tampering as I explained in #3605760: On cache-clear: [warning] Undefined array key 1 EntityDisplayRepository.php:115. The source of this issue is the
targetEntityTypekey of the configuration was NULL. That's something that shouldn't happen in the first place because that key is not nullable per its schema.Deleting the offending configuration is the correct course of action.
Comment #5
jons commentedpatch for existing core code issue attached
Comment #6
smustgrave commentedAs mentioned in #3 this appears to be user error so not sure there’s anything to actually fix here.
Comment #7
jons commentedHi @smustgrave - its because, irrespective of the way it manifested itself, there is deprecated code here which is fixed in patch