Error: Object of class Drupal\node\Entity\Node could not be converted to string

Created on 15 March 2025, 22 days ago

Problem/Motivation

When an administrator visits a node, they encounter the error "The website encountered an unexpected error. Try again later."

Normal users can access the node page without any problems.
When I disable "Data field" module, the problem disappears and the admin can access the node page, too.

Any idea, please ? Thanks

Here's the dblog record.

Error: Object of class Drupal\node\Entity\Node could not be converted to string in Drupal\Component\Render\HtmlEscapedText->__construct() (line 31 of /var/www/html/d11site/web/core/lib/Drupal/Component/Render/HtmlEscapedText.php).
💬 Support request
Status

Active

Version

2.0

Component

Code

Created by

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

Comments & Activities

Production build 0.71.5 2024