Fix Error: Object of class Drupal\Core\Link could not be converted to string in Html::escape()

Created on 25 July 2024, 5 months ago
Updated 11 August 2024, 4 months ago

Problem/Motivation

Facing a fatal error when in appearance page

Steps to reproduce

  1. Navigate to the /admin/appearance page.
  2. Click on the "Settings" link for the default theme.
  3. Observe the error message:
    Error: Object of class Drupal\Core\Link could not be converted to string in Drupal\Component\Utility\Html::escape() (line 440 of core/lib/Drupal/Component/Utility/Html.php).

Proposed resolution

Convert to string

Remaining tasks

  • ✅ File an issue about this project
  • ✅ Addition/Change/Update/Fix to this project
  • ✅ Testing to ensure no regression
  • ➖ Automated unit/functional testing coverage
  • ➖ Developer Documentation support on feature change/addition
  • ➖ User Guide Documentation support on feature change/addition
  • ➖ UX/UI designer responsibilities
  • ➖ Accessibility and Readability
  • ✅ Code review from 1 Varbase core team member
  • ✅ Full testing and approval
  • ✅ Credit contributors
  • ✅ Review with the product owner
  • ✅ Update Release Notes and Update Helper on new feature change/addition
  • ✅ Release vartheme-8.x-6.13

Varbase update type

  • ✅ No Update
  • ➖ Optional Update
  • ➖ Forced Update
  • ➖ Forced Update if Unchanged

User interface changes

  • N/A

API changes

  • N/A

Data model changes

  • N/A

Release notes snippet

🐛 Bug report
Status

Fixed

Version

6.0

Component

Code

Created by

🇯🇴Jordan mohammad faqeh

Live updates comments and jobs are added and updated live.
  • PHP 8.2

    The issue particularly affects sites running on PHP version 8.2.0 or later.

Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024