In Drupal 11, template_preprocess_item_list() is deprecated and automatically called via the theme registry's 'initial preprocess' system. The manual call in responsive_preview_preprocess_item_list__responsive_preview() causes items to be processed twice, converting attributes to an Attribute object. When Element::children() runs again, it fails with: "attributes" is an invalid render array key. Value should be an array but got a object.

This breaks the entire page rendering for authenticated users, causing empty tags and missing CSS/JS.

Fix: Remove/comment out the manual template_preprocess_item_list($variables) call at line 56.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

hamzadwaya created an issue. See original summary.

volkerk’s picture

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.