AssertionError: "commerce" must be defined in MODULE_NAME.field_type_categories.yml

Created on 11 February 2025, 3 months ago

Problem/Motivation

AssertionError: "commerce" must be defined in MODULE_NAME.field_type_categories.yml in assert() (line 195 of core/lib/Drupal/Core/Field/FieldTypePluginManager.php).

Steps to reproduce

Adding a new field on a node. From the manage field page, click on the "Create new field" button.

Proposed resolution

Created a patch.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States themic8 USA

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

Comments & Activities

  • Issue created by @themic8
  • πŸ‡ΊπŸ‡ΈUnited States themic8 USA

    Patch attached.

  • πŸ‡ΊπŸ‡ΈUnited States themic8 USA
  • Issue was unassigned.
  • Status changed to Needs review 1 day ago
  • πŸ‡­πŸ‡ΊHungary djg_tram

    I can't seem to find a merge request that I could accept...

    Besides, actually, I have quite a few modifications in my local copy because I needed to add a few things in a site I actively work on. But I'm not really sure each of those is general enough to be included. maybe if I only uploaded them to a dev version...?

Production build 0.71.5 2024