[WXT5.4-dev][10.4] Still seeing the: Disallowed or malformed HTML in a translation string during installation

Created on 14 February 2025, about 2 months ago

Problem/Motivation

I was testing the installation today and I still see the "Malformed HTML string" that I though we fixed in a patch before: https://www.drupal.org/project/wxt/issues/3377588 💬 [D10] - Disallowed or malformed HTML in a translation string. Fixed

Steps to reproduce

Install latest 5.4.0 or 5.4.x-dev, you'll see the warning at the end of the installation

Proposed resolution

- It seems like that issue was already addressed in a bootstrap issue: https://www.drupal.org/project/bootstrap/issues/3249470 📌 Error generated when importing translation Closed: won't fix

diff --git a/src/Bootstrap.php b/src/Bootstrap.php
index 7c683e3..97e0909 100644
--- a/src/Bootstrap.php
+++ b/src/Bootstrap.php
@@ -606,7 +606,7 @@ class Bootstrap {
     }
 
     // Log message and accompanying backtrace.
-    \Drupal::logger('bootstrap')->warning('<div>@message</div><pre><code>@backtrace

', [
+ \Drupal::logger('bootstrap')->warning('

@message

@backtrace

', [
'@message' => $message,
'@backtrace' => Markup::create(print_r($backtrace, TRUE)),
]);

Remaining tasks

I believe the patch is still listed in the wxt's composer.json file

"patches": {
            "drupal/block_content_permissions": {
                "2920739 - Allow accessing the 'Custom block library' page without 'Administer blocks' permission":
                "https://www.drupal.org/files/issues/2022-07-26/2920739-55.access_listing_page.patch"
            },
            "drupal/bootstrap": {
                "3249470 - Error generated when importing translation":
                "https://www.drupal.org/files/issues/2021-11-17/3249470-3.patch"
},

So the patch is not applied for some reason? I know it's not a big issue, but I'm intrigued about this.

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

5.4

Component

Code

Created by

🇨🇦Canada web247 Toronto

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

Comments & Activities

Production build 0.71.5 2024