In drupal 10 AssertionError: $attributes, if set, must be an array or object of type \Drupal\Core\Template\Attribute in assert() giving site encountered error

Created on 13 February 2024, 10 months ago
Updated 22 April 2024, 8 months ago

Problem/Motivation

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

🐛 Bug report
Status

Needs work

Version

11.0 🔥

Component
Theme 

Last updated 5 days ago

Created by

🇮🇳India Vishal Choudhary Dharmshala

Live updates comments and jobs are added and updated live.
  • Needs issue summary update

    Issue summaries save everyone time if they are kept up-to-date. See Update issue summary task instructions.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • Issue created by @Vishal Choudhary
  • 🇮🇳India Vishal Choudhary Dharmshala

    I have Upgraded a Drupal 9 site to Drupal 10.1.18, giving a core error and site break on local. To fix this Issue I have created a patch and attached it in files.

  • last update 10 months ago
    29,722 pass
  • Status changed to Postponed: needs info 10 months ago
  • May we see the temple that triggers the assertion failure?

  • 🇮🇳India mukesh-kumar3 Dharmshala

    @Vishal you are right there is problem in ddev and platformsh sites when upgrading from drupal 9.5.11 to drupal 10.1.18 there is Error in core/lib/Drupal/Core/Template/TwigExtension.php on public function getLink assertition error and site can encounter an unexpected error with error message $attributes, if set, must be an array or object of type \Drupal\Core\Template\Attribute in assert() after applying patch above error resolved and site is working fine.

  • Status changed to Needs review 8 months ago
  • Status changed to Needs work 8 months ago
  • 🇺🇸United States smustgrave

    Was previously tagged as steps to reproduce but those are still missing in the issue summary.

Production build 0.71.5 2024