Problem/Motivation

When using this module with Drupal 11, I encountered a fatal error when attempting to add a new field to a content type:
"Reference" must be defined in MODULE_NAME.field_type_categories.yml

This seems to be a result of using the label for the category instead of the machine name, in the field's metadata.

Also, I think it makes sense to follow the lead of the core image field and set the category for the base SVG field as file_upload, since that's how it works.

Proposed resolution

Update the field metadata.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

mandclu created an issue. See original summary.

  • mandclu committed 3b6be8a3 on 2.3.x
    Issue #3448486 by mandclu: [error] "Reference" must be defined in...
mandclu’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.