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.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | themable_forms-error-on-modules-page-3209846-2.patch | 866 bytes | dan.ashdown |
Comments
Comment #2
dan.ashdown commentedComment #3
brandonratz commentedThe 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.