Needs work
Project:
Drupal core
Version:
main
Component:
theme system
Priority:
Major
Category:
Bug report
Assigned:
Reporter:
Created:
13 Feb 2024 at 05:29 UTC
Updated:
11 Aug 2025 at 11:28 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
vishal choudharyI 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.
Comment #3
cilefen commentedMay we see the temple that triggers the assertion failure?
Comment #5
mukesh-kumar3 commented@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 #2 above error resolved and site is working fine.
Comment #6
mukesh-kumar3 commentedComment #7
smustgrave commentedWas previously tagged as steps to reproduce but those are still missing in the issue summary.
Comment #8
himanshu rajThanks @vishal choudhary
I applied this patch #2 in my project and it resolved the attributes-related issue . Thanks to the contributors for fixing this!