While installing the accorbis module on Drupal 10/11, the installation fails with dependency injection and cron event subscriber errors.
Encountered errors:
Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException:
The service "accorbis.collector" has a dependency on a non-existent service "module_extension_list".
and
Error: Class "Drupal\Core\Cron\CronEvents" not found
in Drupal\accorbis\EventSubscriber\CronSubscriber::getSubscribedEvents()
The issue appears to be caused by:
Usage of the removed/deprecated module_extension_list service
Reference to Drupal\Core\Cron\CronEvents, which does not exist in newer Drupal core versions
| Comment | File | Size | Author |
|---|---|---|---|
| Screenshot 2026-05-13 184259.png | 32.47 KB | revathi.b | |
| Screenshot 2026-05-13 160851.png | 74.15 KB | revathi.b |
Issue fork accorbis-3589921
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
revathi.b commentedMR !1 fix this issue.
Thanks!
Comment #5
kevinwal commentedComment #7
revathi.b commentedThanks for merging! Could you please add credit for me in the commit? I contributed the patch.