Problem/Motivation

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

Comments

Vishal Choudhary created an issue. See original summary.

vishal choudhary’s picture

StatusFileSize
new1.1 KB

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.

cilefen’s picture

Status: Active » Postponed (maintainer needs more info)
Issue tags: +Needs steps to reproduce

May we see the temple that triggers the assertion failure?

Version: 10.1.x-dev » 11.x-dev

Drupal core is moving towards using a “main” branch. As an interim step, a new 11.x branch has been opened, as Drupal.org infrastructure cannot currently fully support a branch named main. New developments and disruptive changes should now be targeted for the 11.x branch. For more information, see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

mukesh-kumar3’s picture

@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.

mukesh-kumar3’s picture

Status: Postponed (maintainer needs more info) » Needs review
smustgrave’s picture

Status: Needs review » Needs work
Issue tags: +Needs issue summary update

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

himanshu raj’s picture

StatusFileSize
new232.54 KB
new84.77 KB

Thanks @vishal choudhary

I applied this patch #2 in my project and it resolved the attributes-related issue . Thanks to the contributors for fixing this!

Version: 11.x-dev » main

Drupal core is now using the main branch as the primary development branch. New developments and disruptive changes should now be targeted to the main branch.

Read more in the announcement.