Couldn't see an issue for this, but just updated to D9 with XMLsitemap 8.x-1.0-rc1 and getting the following error when going to the xmlsitemap admin screen (/admin/config/search/xmlsitemap):
You have requested a non-existent service "entity.manager"
Trace is:
Drupal\xmlsitemap\XmlSitemapListBuilder::createInstance(Object, Object) (Line: 285)
Drupal\Core\Entity\EntityTypeManager->createHandlerInstance('Drupal\xmlsitemap\XmlSitemapListBuilder', Object) (Line: 274)
Drupal\Core\Entity\EntityTypeManager->getHandler('xmlsitemap', 'list_builder') (Line: 215)
Drupal\Core\Entity\EntityTypeManager->getListBuilder('xmlsitemap') (Line: 23)
Drupal\Core\Entity\Controller\EntityListController->listing('xmlsitemap')
Comments
Comment #2
rasikap commentedTo fix this issue, you need to change line 57 in XmlSitemapListBuilder.php
from :
$container->get('entity.manager')->getStorage($entity_type->id()),
to:
$container->get('entity_type.manager')->getStorage($entity_type->id()),
This change is part of the repository when you do a git clone but currently not a part of 8.x-1.0-rc1 release.
Thanks!
Comment #3
rasikap commented