Problem/Motivation
When I try to add a field to any entity type's bundle, I get this error:
AssertionError: "Field" must be defined in MODULE_NAME.field_type_categories.yml in assert() (line 195 of core/lib/Drupal/Core/Field/FieldTypePluginManager.php).
This seems to be caused by Patternkit's custom field named "Serialized field data".
Steps to reproduce
- Configure PHP's assert.active to be enabled, so that failed assert() calls throw exceptions.
- Install Drupal core 10.3 using Standard profile
- Install Patternkit 9.1.0-beta10
- Log in as admin
- Try to add a field to "Basic page" content type.
- Notice that you get the above-listed message (you may see it printed on the page or in the logs).
Proposed resolution
Remove the "Field" category from Patternkit's custom field, because this category does not exist.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | remove-field-category-Field-3489271-4.patch | 550 bytes | krisahil |
Issue fork patternkit-3489271
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
Comment #3
krisahil commentedComment #4
krisahil commentedThe MR is against latest 9.1.x. Here's a patch against release 9.1.0-beta10.
Comment #5
sluceroI was able to both reproduce this and confirm the fix. Good find and thanks for the fix!
Comment #7
sluceroMerged for inclusion in the 1.0. release.