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.

Comments

TrevorBradley created an issue. See original summary.

trevorbradley’s picture

StatusFileSize
new1.89 KB
trevorbradley’s picture

Status: Active » Needs review
trobey’s picture

StatusFileSize
new4.54 KB

I 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.

  • trobey committed 77f4afb on 8.x-2.x
    Issue #3163859 by TrevorBradley, trobey: Multiple Drupal 9 errors
    
trobey’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.