Dependency on Help module causing crash

Created on 25 September 2025, about 1 month ago

Problem/Motivation

Rebuilding the cache (with drush) for on a site that has disabled Help module causes error:

In EntityResolverManager.php line 135:

  Class "\Drupal\help\Controller\HelpController" does not exist  

This is due to the following route added in 2.1 version (it was not happening in 2.0):

taxonomy_import.help:
  path: '/admin/config/content/taxonomy_import'
  defaults:
    _controller: '\Drupal\help\Controller\HelpController::helpPage'
    _route: 'help.page'
    name: 'taxonomy_import'
    _title: 'Taxonomy Import'
  requirements:
    _permission: 'administer taxonomy import'
  options:
    _admin_route: TRUE

Steps to reproduce

1. Disable the help module
2. Clear the cache.

Proposed resolution

Add proper depencencies in .info.yml file:

dependencies:
  - drupal:taxonomy
  - drupal:help

and/or refactor module's routing definition to include taxonomy_import.help only if help module is enabled.

Remaining tasks

N/A

User interface changes

N/A

API changes

N/A

Data model changes

N/A

🐛 Bug report
Status

Active

Version

2.1

Component

Code

Created by

🇷🇴Romania abautu

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

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024