Problem/Motivation
When I try to add a new field in a content type, an error occurs.
Steps to reproduce
1: Install the "Constant Contact Module" using the following command:
composer require 'drupal/ik_constant_contact:^4.1'
2: Add a new field to any content type.
3: The following error appears:
AssertionError: "Constant Contact" must be defined in MODULE_NAME.field_type_categories.yml in assert() (line 183 of core\lib\Drupal\Core\Field\FieldTypePluginManager.php).
Note : I am using Drupal 11 with PHP 8.3.13 version.
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | upgrade.png | 45.87 KB | aman_lnwebworks |
| #9 | upgrade error.png | 88.26 KB | aman_lnwebworks |
| ik.png | 86.68 KB | aman_lnwebworks |
Issue fork ik_constant_contact-3513890
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 #2
rosemaryreilmanNew Drupal API Changes: New API for defining field type categories
Comment #4
rosemaryreilmanNew Drupal API Changes: New API for defining field type categories
I added a new MR that you can use the changes to see if that fixes your issue.
Comment #6
rosemaryreilmanCreated 4.2.0 for this and a few other bug fixes
Comment #7
aman_lnwebworks commentedHi @rosemaryreilman
I have applied your solution.
- First I created a new file "ik_constant_contact.field_type_categories.yml" and added the below code in this file
But issue is not resolved
Comment #8
aman_lnwebworks commentedComment #9
aman_lnwebworks commentedI @rosemaryreilman
I have upgraded the module with a new release version 4.2.0 but the issue still showing.
i have added screenshots please review it once.
Comment #11
rosemaryreilmanI created a new MR. I forgot to change the category value in the FieldType file. Let me know if that helps.
Comment #12
aman_lnwebworks commentedHi @rosemaryreilman
I have updated
category = "constant_contact"in the src/Plugin/Field/FieldType/ConstantContactListItem.php file .Now the issue has been fixed.
Thank you !!
Comment #14
rosemaryreilmanFix is in new release 4.2.1
Comment #15
rosemaryreilman