Upgrade to Drupal 9 from Drupal 8.8.x
Getting this error
Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: You have requested a non-existent service "entity.manager". in Drupal\Component\DependencyInjection\Container->get() (line 151 of core/lib/Drupal/Component/DependencyInjection/Container.php).
Drupal\taxonomy_entity_index\Plugin\views\argument\TaxonomyEntityIndexTidDepth::create(Object, Array, 'taxonomy_entity_index_tid_depth', Array) (Line: 21)
Drupal\Core\Plugin\Factory\ContainerFactory->createInstance('taxonomy_entity_index_tid_depth', Array) (Line: 76)
Drupal\Component\Plugin\PluginManagerBase->createInstance('taxonomy_entity_index_tid_depth', Array) (Line: 121)
Drupal\views\Plugin\ViewsHandlerManager->createInstance('taxonomy_entity_index_tid_depth', Array) (Line: 106)
Drupal\views\Plugin\ViewsHandlerManager->getHandler(Array, NULL) (Line: 889)
Drupal\views\Plugin\views\display\DisplayPluginBase->getHandlers('argument') (Line: 115)
Drupal\views\Plugin\Derivative\ViewsBlock->getDerivativeDefinitions(Array) (Line: 101)
Drupal\Component\Plugin\Discovery\DerivativeDiscoveryDecorator->getDerivatives(Array) (Line: 87)
Drupal\Component\Plugin\Discovery\DerivativeDiscoveryDecorator->getDefinitions() (Line: 284)
Drupal\Core\Plugin\DefaultPluginManager->findDefinitions() (Line: 175)
Drupal\Core\Plugin\DefaultPluginManager->getDefinitions() (Line: 22)
Drupal\Core\Plugin\DefaultPluginManager->getDefinition('system_branding_block') (Line: 16)
Drupal\Core\Plugin\Factory\ContainerFactory->createInstance('system_branding_block', Array) (Line: 76)
Drupal\Component\Plugin\PluginManagerBase->createInstance('system_branding_block', Array) (Line: 62)
Drupal\Core\Plugin\DefaultSingleLazyPluginCollection->initializePlugin('system_branding_block') (Line: 57)
Drupal\block\BlockPluginCollection->initializePlugin('system_branding_block') (Line: 80)
Drupal\Component\Plugin\LazyPluginCollection->get('system_branding_block') (Line: 45)
Drupal\block\BlockPluginCollection->get('system_branding_block') (Line: 83)
Drupal\Core\Plugin\DefaultSingleLazyPluginCollection->setConfiguration(Array) (Line: 99)
Drupal\Core\Plugin\DefaultSingleLazyPluginCollection->addInstanceId('system_branding_block', Array) (Line: 55)
Drupal\Core\Plugin\DefaultSingleLazyPluginCollection->__construct(Object, 'system_branding_block', Array) (Line: 34)
Drupal\block\BlockPluginCollection->__construct(Object, 'system_branding_block', Array, 'bootstrap4_branding') (Line: 156)
Drupal\block\Entity\Block->getPluginCollection() (Line: 145)
Drupal\block\Entity\Block->getPlugin() (Line: 118)
Drupal\block\BlockAccessControlHandler->checkAccess(Object, 'view', Object) (Line: 105)
Drupal\Core\Entity\EntityAccessControlHandler->access(Object, 'view', Object, 1) (Line: 314)
Drupal\Core\Entity\EntityBase->access('view', NULL, 1) (Line: 56)
Drupal\block\BlockRepository->getVisibleBlocksPerRegion(Array) (Line: 137)
Drupal\block\Plugin\DisplayVariant\BlockPageVariant->build() (Line: 259)
Drupal\Core\Render\MainContent\HtmlRenderer->prepare(Array, Object, Object) (Line: 117)
Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object, Object) (Line: 90)
Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object, 'kernel.view', Object) (Line: 78)
Symfony\Component\EventDispatcher\LegacyEventDispatcherProxy->dispatch(Object, 'kernel.view') (Line: 163)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 80)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 57)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 191)
Drupal\page_cache\StackMiddleware\PageCache->fetch(Object, 1, 1) (Line: 128)
Drupal\page_cache\StackMiddleware\PageCache->lookup(Object, 1, 1) (Line: 82)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 52)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 705)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)| Comment | File | Size | Author |
|---|---|---|---|
| #5 | interdiff_3-5.txt | 1.22 KB | narendra.rajwar27 |
| #5 | 3157064-5.patch | 2.15 KB | narendra.rajwar27 |
Comments
Comment #2
narendra.rajwar27Comment #3
narendra.rajwar27The
taxonomy_entity_indexmodule is not compatible with drupal9. Second thing theentity.managerservice is deprecated in drupal9 instead of this we can useentity_type.managerAdding a patch with these changes.
Comment #4
narendra.rajwar27Comment #5
narendra.rajwar27Updated patch for term storage namespace.
Comment #6
sharma.amitt16 commentedNice catch for the issue.
Thanks for patch @narendra.rajwar. Patch seems good and resolving the issue. In parallel to that, it makes the module drupal 9 ready.
Changing the status to RTBC.
Comment #8
larowlanCrediting @pratik_kamble from the duplicate at #3109740: Drupal 9 compatibility and Deprecation Report
Comment #10
larowlanAnd @karishmaamin from #3137830: Drupal 9 deprecated code report
Comment #11
larowlanThis is not critical, the module doesn't have a D9 release and should not be instalable with Drupal 9.
I'm guessing you may have hit #3152701: The composer facade wrongly assumes modules with no core version requirements are compatible with Drupal 8 and 9
Comment #13
larowlanThanks