You have requested a non-existent service ".abstract.instanceof.Drupal\entity_usage\EntityUsageBatchManager"

Created on 28 March 2025, 2 months ago

Problem/Motivation

Upon enabling the module via drush:

$ drush en entity_usage
> 
> In Container.php line 159:
>                                                                                
>   You have requested a non-existent service ".abstract.instanceof.Drupal\enti  
>   ty_usage\EntityUsageBatchManager".                                           
>                                                                                
> 

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Component

Code

Created by

🇧🇪Belgium baikho Antwerp, BE

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @baikho
  • 🇧🇪Belgium baikho Antwerp, BE
  • 🇧🇪Belgium baikho Antwerp, BE
  • 🇪🇸Spain marcoscano Barcelona, Spain

    After upgrading code to newer versions, you always need to run drush updatedb before doing anything else. Can you confirm if doing this after bumping to the new version fixes the issue for you?
    Or alternatively, can you reproduce this in an installation where this module has never been enabled?
    Thanks!

  • 🇧🇪Belgium baikho Antwerp, BE

    #4

    It's a new installation:

    $ composer require drupal/entity_usage
    ...
    www-data@2a078b834d81:/docroot$ drush en paragraphs_library
    The following module(s) will be enabled: paragraphs_library, entity_usage
    ...
    
  • 🇪🇸Spain marcoscano Barcelona, Spain

    That's odd, I can't really reproduce it on a new installation. The first output you pasted in the issue summary made me think the code was being upgraded instead of installed for the first time.
    Do you have anything particular about your project that may be interfering?

Production build 0.71.5 2024