Undefined index: #parents FormState.php

Created on 21 January 2019, over 6 years ago
Updated 21 September 2023, almost 2 years ago

Problem/Motivation

Notices appear when trying to save contend with missing required entity reference to media field.

Notice: Undefined index: #parents in Drupal\Core\Form\FormState->getError() (line 1112 of core/lib/Drupal/Core/Form/FormState.php).

Warning: Invalid argument supplied for foreach() in Drupal\Core\Form\FormState->getError() (line 1112 of core/lib/Drupal/Core/Form/FormState.php).

Proposed resolution

Apply Patch 25 to head of 9.3.x/9.4.x

Remaining tasks

Core maintainer approval

User interface changes

N/A

API changes

N/A

Data model changes

N/A

Release notes snippet

Core maintainer please review this.

🐛 Bug report
Status

Needs work

Version

11.0 🔥

Component
Form 

Last updated 3 days ago

Created by

🇧🇬Bulgaria nmitev

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

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

Production build 0.71.5 2024