If you do not have the "help" (core) module installed you get fatal errors after installing this module:

[Tue Oct 25 14:43:30.768661 2022] [php7:notice] [pid 19384] [client 127.0.0.1:50535] Uncaught PHP Exception Symfony\\Component\\Routing\\Exception\\RouteNotFoundException: "Route "help.page" does not exist." at /.../core/lib/Drupal/Core/Routing/RouteProvider.php line 206, referer: https://.../admin/config

I suggest to check for the modules existence before trying to output help-url's.

Please review attached patch.

CommentFileSizeAuthor
config_token-remove-help-dependency.patch853 bytesweseze

Comments

weseze created an issue. See original summary.

  • marcelovani committed fd2738a on 3317370-check-module-exists
    Issue #3317370 by weseze: Remove (undefined) dependency on the help...

  • marcelovani committed fd2738a on 8.x-1.x
    Issue #3317370 by weseze: Remove (undefined) dependency on the help...
marcelovani’s picture

Status: Active » Fixed

Thanks for pointing out and helping with a patch.
I updated the code to use dependency injection.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.