Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Got this error when trying to add new element to form:
Error: Class 'Drupal\taxonomy\Entity\Vocabulary' not found in Drupal\webform\Plugin\WebformElement\WebformTermCheckboxes->preview() (line 27 of /var/app/current/web/modules/contrib/webform/src/Plugin/WebformElement/WebformTermReferenceTrait.php) #0
When I enabled Taxonomy module, it started working again. So is Taxonomy dependency of Webforms? If so then it should be in the .info file.
Comment | File | Size | Author |
---|---|---|---|
#5 | 2937258-5.patch | 786 bytes | jrockowitz |
| |||
#4 | webform-make_taxonomy_as_dependency-2937258-4.patch | 339 bytes | hkirsman |
#3 | webform-make_taxonomy_as_dependency-2937258-3.patch | 278 bytes | hkirsman |
Comments
Comment #2
hkirsman CreditAttribution: hkirsman commentedComment #3
hkirsman CreditAttribution: hkirsman commentedAdding patch
Comment #4
hkirsman CreditAttribution: hkirsman commentedwebform-make_taxonomy_as_dependency-2937258-3.patch is for latest dev release. I need patch for the rc1 which I'll add here
Comment #5
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedWebformTermCheckboxes element is missing its dependencies in its annotation.
Comment #7
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedComment #8
hkirsman CreditAttribution: hkirsman commentedSo the Taxonomy module doesn't need to be active with this kind of code?
Comment #9
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedYes, any taxonomy related webform elements are completely disabled if the taxonomy.module is not installed.