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.
Problem/Motivation
Error on Drupal 9:
Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: You have requested a non-existent service "entity.manager". in Drupal\Component\DependencyInjection\Container->get() (line 151 of /var/www/web/core/lib/Drupal/Component/DependencyInjection/Container.php).
Steps to reproduce
Install module on drupal 9
Proposed resolution
Use entity_type.manager
instead of entity.manager
Related issue - https://www.drupal.org/project/menu_pager/issues/3121614
Issue fork menu_pager-3199722
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 #3
hamrant CreditAttribution: hamrant at Five Jars, Drupal Ukraine Community, Open Y for Drupal Ukraine Community commentedComment #4
Vasyl Manachynskyi CreditAttribution: Vasyl Manachynskyi at Five Jars commentedWork fine for me.
Comment #5
Vasyl Manachynskyi CreditAttribution: Vasyl Manachynskyi at Five Jars commentedComment #7
balajidharma