Warning: htmlspecialchars()

Created on 9 August 2021, almost 3 years ago
Updated 14 May 2024, about 2 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

🇮🇱Israel Promo-IL

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.69.0 2024