Warning: htmlspecialchars()

Created on 9 August 2021, over 3 years ago
Updated 14 May 2024, 6 months ago

Warning: htmlspecialchars() expects parameter 1 to be string, array given in Drupal\Component\Utility\Html::escape() (line 424 of core/lib/Drupal/Component/Utility/Html.php).
It seems like https://www.drupal.org/project/bootstrap_barrio/issues/3122213

Drupal: 8.9.13 PHP:7.2,7.3

My solution
\src\RenderBuilder.php

            $link['attributes']['title'] = $this->t(
              'Current active @current language',
              //['@current' => $link_title]
              ['@current' => $link_title['#text']]
            );
            $url_options['fragment'] = '!';
🐛 Bug report
Status

Closed: cannot reproduce

Version

2.0

Component

Code

Created by

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024