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.
Issue fork responsive_preview-3568230
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
Comment #3
volkerk commentedSee #3543777: InvalidArgumentException: "attributes" is an invalid render array key with 11.x-dev.