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

Issue fork accorbis-3589921

Command icon 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

revathi.b created an issue. See original summary.

revathi.b’s picture

Priority: Normal » Major
Status: Active » Needs review

MR !1 fix this issue.

Thanks!

  • kevinwal committed 1b4e4b8e on 1.0.x
    Issue #3589921: Fix install errors on Drupal 10.3 / 11
    
    Two install-time...
kevinwal’s picture

Assigned: Unassigned » kevinwal
Status: Needs review » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

revathi.b’s picture

Status: Fixed » Needs review

Thanks for merging! Could you please add credit for me in the commit? I contributed the patch.