InvalidArgumentException: $string ("") must be a string

Created on 10 June 2025, 2 days ago

Problem/Motivation

After upgrading to the version 6.0.2, we got an error when try to visit the node edit, revision or delete pages

Steps to reproduce

  • Install radix as a base theme
  • Create custom theme
  • Put the editorial pages to use the custom theme
  • Create a node page > save page
  • Visit created page to try to edit or see the revisions

Proposed resolution

This is definitely related to the security fixes
It is needed to ensure that the variables passed to the twig templates, in this case to the
line 67 of the file menu.theme

function radix_preprocess_links__dropbutton
'text' => htmlspecialchars_decode(Xss::filter($link['text'])),

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

6.0

Component

Code

Created by

🇨🇴Colombia epalomino

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024