TypeError: FieldTypePluginManager::createFieldItem() called in FieldStorageConfig.php

Created on 27 May 2024, 10 months ago

Problem/Motivation

While creating a list field of a custom entity, we face a WSOD screen with this error in logs -

TypeError: Drupal\Core\Field\FieldTypePluginManager::createFieldItem(): Argument #1 ($items) must be of type Drupal\Core\Field\FieldItemListInterface, null given, called in /web/core/modules/field/src/Entity/FieldStorageConfig.php on line 710 in Drupal\Core\Field\FieldTypePluginManager->createFieldItem() (line 89 of /web/core/lib/Drupal/Core/Field/FieldTypePluginManager.php).

This issue is occurred on 10.2.* version, works with no issues with <= 10.1.

In 10.2 version, there is new update for FieldStorageConfig.php file for getOptionsProvider function.

Steps to reproduce

Create a custom entity, and try creating a select list field. WSOD will be observed and above mentioned Error will be seen in Recent Logs.

๐Ÿ› Bug report
Status

Downport

Version

10.2 โœจ

Component
Fieldย  โ†’

Last updated about 10 hours ago

Created by

๐Ÿ‡ฎ๐Ÿ‡ณIndia lolmanKD

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

Comments & Activities

Production build 0.71.5 2024