[error] "Reference" must be defined in MODULE_NAME.field_type_categories.yml

Created on 21 May 2024, 7 months ago
Updated 4 June 2024, 7 months ago

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.

🐛 Bug report
Status

Fixed

Version

2.3

Component

Code

Created by

🇨🇦Canada mandclu

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024