Hit a number of issues trying to get this module working for Drupal 9.
Uncaught PHP Exception Symfony\\Component\\DependencyInjection\\Exception\\ServiceNotFoundException: "You have requested a non-existent service "entity.manager"." at /app/web/core/lib/Drupal/Component/DependencyInjection/Container.php line 151
Also:
Error: Call to undefined method Drupal\\Component\\Utility\\Unicode::mb_substr() in /app/web/modules/custom/private_taxonomy/src/Plugin/Field/FieldWidget/PrivateTaxonomyAutocompleteWidget.php on line 149
After I patched these, the errors seemed to go away.
I'm not sure if these changes work for Drupal 8.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | multiple-drupal-9-errors-3163859-4.patch | 4.54 KB | trobey |
| #2 | 3163859-multiple-drupal-9-errors-2.patch | 1.89 KB | trevorbradley |
Comments
Comment #2
trevorbradley commentedComment #3
trevorbradley commentedComment #4
trobey commentedI have already been working on the first issue mentioned. The problem is more extensive than the current patch addresses. The second issue was probably because I misread the deprecation notice and replaced Unicode::substr() with Unicode::mb_substr() instead of just mb_substr(). I have test this patch on Drupal 8 but have not figured out how to run tests locally for Drupal 9. It also probably requires some manual testing but I have not been able to find time to do.
Comment #6
trobey commented