TypeError: uasort(): Argument #1 ($array) must be of type array, null given in uasort()

Created on 27 February 2025, 4 days ago

Problem/Motivation

TypeError: uasort(): Argument #1 ($array) must be of type array, null given in uasort() (line 66 of /var/www/html/docroot/core/lib/Drupal/Core/Entity/EntityReferenceSelection/SelectionPluginManager.php) #0 /var/www/html/docroot/core/lib/Drupal/Core/Entity/EntityReferenceSelection/SelectionPluginManager.php(66): uasort(NULL, Array)

#1 /var/www/html/docroot/core/modules/field/field.module(418): Drupal\Core\Entity\EntityReferenceSelection\SelectionPluginManager->getPluginId('ingredient', 'ingredient')
#2 /var/www/html/docroot/core/modules/field/field.module(431): field_field_config_create(Object(Drupal\field\Entity\FieldConfig))

Proposed resolution

Create a patch

🐛 Bug report
Status

Active

Version

10.4

Component

plugin system

Created by

🇩🇪Germany onfire84

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

Comments & Activities

Production build 0.71.5 2024