themable_forms_attach_form_id() is causing a fatal error when accessing the modules page:

[error] 1731#1731: *22478 FastCGI sent in stderr: "PHP message: Error: Cannot use string offset as an array in /var/www/html/web/core/themes/claro/claro.theme on line 752 #0 /var/www/html/web/core/lib/Drupal/Core/Theme/ThemeManager.php(449): claro_form_system_modules_alter(Array, Object(Drupal\Core\Form\FormState), 'system_modules')

Which led me to this core issue: https://www.drupal.org/project/drupal/issues/3204052

Confining the call to themable_forms_attach_form_id() to front end themes resolves the issue for me.

Comments

Dan.Ashdown created an issue. See original summary.

dan.ashdown’s picture

Status: Active » Needs review
StatusFileSize
new866 bytes
brandonratz’s picture

Status: Needs review » Reviewed & tested by the community

The patch helped me bypass an error where the call to themable_forms_attach_form_id() was undefined. This was not isolated to the modules pages, but all admin pages.