Notice : Undefined index: base_plugin_label dans Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem->fieldSettingsForm()

Created on 6 February 2017, almost 8 years ago
Updated 9 April 2024, 9 months ago

I have a Entity Reference field and sometimes when I try to edit the field I see this message:

Notice : Undefined index: base_plugin_label dans Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem->fieldSettingsForm() (ligne 332 de /Users/adriancid/Sites/misyte/web/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php). => Array
(
    [23: Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem->fieldSettingsForm()] => Array
        (
            [file] => core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:332
            [args] => Array
🐛 Bug report
Status

Closed: cannot reproduce

Version

9.5

Component
Entity 

Last updated about 16 hours ago

Created by

🇨🇦Canada adriancid Montreal, Canada

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇳🇿New Zealand quietone

    As stated 8 months ago, we need steps to reproduce this, starting from install Drupal core, to investigate this. Because none have been provided I think it is time to close this issue.

  • 🇬🇷Greece kostask

    I had the same warning and in my case the problem was in my custom code.
    The base_plugin_label was missing from the @EntityReferenceSelection annotation.
    Adding it and clearing the caches resolved the issue.

  • 🇨🇦Canada joelpittet Vancouver

    @kostask Thanks for the note, that fixed it for me as well, I was missing something in my custom entity's annotation.

Production build 0.71.5 2024