Problem/Motivation
When having installed GDPR module and added all settings and all is fine, it turns out that when working with other content types, if trying to add field in the GUI, it crashes due to GDPR module is not sending correct info to
core/lib/Drupal/Component/Plugin/Discovery/DiscoveryTrait.php doGetDefinition
which then crash and in that situation makes the site unusable for further use.
The module is not possible to uninstall, except deleting the folder for the module.
After doing that, adding fields works again.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | 3522586-Adding-field-bug-1.patch | 2.11 KB | henk |
Issue fork gdpr-3522586
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
arne_hortell commentedReason for problem is field_type: gdpr_task_item
The field removal_log in module gdpr_tasks uses a fieldtype with ID gdpr_task_item which is not in the code at all.
That is the reason for "The plugin (GDPR) did not specify an instance class." in the above mentioned doGetDefinition.
I.e the use of gdpr_task_item exists but nothing is defining it like
(@FieldType(id = "gdpr_task_item"))
Comment #3
henk commentedReason is that in Drupal 11.x using a translatable string as a category for field type is deprecated, also field_category.yml is needed. I have same problem and preparing patch for it.
Comment #4
henk commentedHere is a patch
Comment #5
henk commentedError code:
Comment #6
henk commentedComment #7
henk commentedComment #8
henk commentedComment #9
arne_hortell commentedThanks!
Comment #13
rajeshreeputraMerged!
Comment #16
prashant.cSeems like the fix is not present in the latest release, we are still getting the same error on Drupal 11.2 , had to apply the patch provided in this.
Thankyou
Comment #17
sivaji_ganesh_jojodae commentedI confirm the fix is still not available in 3.1.2 as well.
https://git.drupalcode.org/project/gdpr/-/blob/3.1.2/modules/gdpr_consen...
https://git.drupalcode.org/project/gdpr/-/blob/3.1.2/modules/gdpr_tasks/...
Comment #18
rajeshreeputraReleased 3.1.3 version, thanks!