Warning: Undefined array key [content type] in domain_fields_settings_form_node_form_alter(), line 31 and line 76

Created on 10 November 2022, about 2 years ago
Updated 2 February 2023, almost 2 years ago

Problem/Motivation

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

RTBC

Version

5.1

Component

Code

Created by

🇵🇹Portugal ricardofaria

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.

  • 🇵🇹Portugal joum Porto

    Can confirm the patch on #1 works correctly using Drupal Core version 9.5.2 and this module's version 5.1.0.

    When the module is first installed and there's no configuration available, a _lot_ of warnings are throw for each field access hook call. If, for example, a content type's entity form has any Ajax calls (for instance, autocomplete entity reference widgets) those don't work anymore because of the warnings reaching the Ajax response as well), so this is rather critical.

    The patch correctly introduces simple sanity checks when loading the module's configuration objects to check if those actually exist before proceeding to make changes.

    Changed priority to critical and moved the status to RTBC.

Production build 0.71.5 2024