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.
It does not appear that the current 8.x-1.x-dev version is working with Drupal 9 yet.
Some problems that I've found:
- Line 30 of termcase.module calls the non-existent "_termcase_vocabulary_termcase()" function.
- Line 151 of termcase.module calls the deprecated "getVocabularyId()" method (should be "bundle()").
-mike
Comment | File | Size | Author |
---|---|---|---|
#3 | 3227648-2.patch | 1.05 KB | Megha_kundar |
Issue fork termcase-3227648
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
Megha_kundar CreditAttribution: Megha_kundar at Material for Drupal Association commentedComment #3
Megha_kundar CreditAttribution: Megha_kundar at Material for Drupal Association commentedComment #4
Megha_kundar CreditAttribution: Megha_kundar at Material for Drupal Association commentedComment #5
vikashsoni CreditAttribution: vikashsoni as a volunteer and at Zyxware Technologies commented@Megha_kundar Patch applied successfully
Thanks for the patch
Comment #6
dabley CreditAttribution: dabley commentedPatch #3 works ok for me (with D9.3.2). It solves a problem we encountered after migrating to D9 (deprecated "getVocabularyId()" method).
Comment #7
dabley CreditAttribution: dabley commentedI find that patch #3 no longer applies successfully to D9.4.5. This is because the changes to fix point (2) are now already present. (Issue #3259542: Call to undefined method Drupal\taxonomy\Entity\Term::getVocabularyId() in termcase_taxonomy_term_presave() (line 151 is a duplicate of this point.)
The definition of function "_termcase_vocabulary_termcase() (point (1)) is not present (without the patch). However, from a quick test, I was not able to find a use-case where the absence of this function causes a problem (i.e. it seems that function termcase_form_taxonomy_form_term_alter does not get called.).
Can anyone else find a scenario where point 1 causes a problem?
I suggest that this issue is flagged as "Fixed", because the module is now D9 compatible. If there's a problem with the _termcase_vocabulary_termcase function, then that's not a D9 compatibility matter, and a separate issue ought to be raised about that.
Comment #8
dabley CreditAttribution: dabley commentedI've updated the issue title to reflect the outstanding problem more accurately.
Comment #9
dabley CreditAttribution: dabley as a volunteer and commentedComment #13
AstonVictor CreditAttribution: AstonVictor as a volunteer and at DevBranch commentedthanks for the patch.
Merged it for now. other fixes will be added to other issues.