Fatal error on help page. Argument #2 ($name) must be of type string, array given.

Created on 3 January 2024, 11 months ago
Updated 25 July 2024, 4 months ago

Problem/Motivation

Help page showing error :

The website encountered an unexpected error. Try again later.

TypeError: Drupal\user\ModulePermissionsLinkHelper::getModulePermissionsLink(): Argument #2 ($name) must be of type string, array given, called in /var/www/html/docroot/core/modules/system/system.module on line 992 in Drupal\user\ModulePermissionsLinkHelper->getModulePermissionsLink() (line 47 of core/modules/user/src/ModulePermissionsLinkHelper.php).
system_get_module_admin_tasks('address', Array) (Line: 70)
Drupal\readmehelp\Controller\ReadmeHelpController->helpPage('address')
call_user_func_array(Array, Array) (Line: 123)

Steps to reproduce

Install the module on Drupal 10.2.0
open the configuration page and select any module.
Try to open the help page of that module.

Proposed resolution

Fix deprecation o\in Drupal\readmehelp\Controller\ReadmeHelpController->helpPage('address')
https://www.drupal.org/node/3038972
system_get_module_admin_tasks($name, $info);

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

RTBC

Component

Code

Created by

🇮🇳India keshavv India

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

Comments & Activities

Production build 0.71.5 2024