Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Drupal 8.0.2 on Pantheon
Environmental Indicator 3.x-dev (2015-Dec-14)
Steps to reproduce:
1. Enable module.
2. Go to /admin/config/development/environment-indicator.
3. Save the configuration.
Error message:
Warning: htmlspecialchars() expects parameter 1 to be string, object given in Drupal\Component\Utility\Html::escape() (line 407 of core/lib/Drupal/Component/Utility/Html.php).
Comment | File | Size | Author |
---|---|---|---|
#4 | d8-environment_indicator-warning_htmlspecialchars-2661742-4.patch | 4.09 KB | tibezh |
Comments
Comment #2
akeemw CreditAttribution: akeemw at OHO Interactive commentedIt looks like the returned URLs needed to be converted into strings. Attaching patch that worked for us.
Comment #3
ericduran CreditAttribution: ericduran at NBCUniversal commented@akeemw there is also another issue here. The variable`@permissions` should be changed to `:permissions` same goes for @settings.
Comment #4
tibezh CreditAttribution: tibezh at OPTASY, Drupal Ukraine Community commentedHere is a patch for the issue
Comment #5
e0ipsoThanks for contributing to move this module forward.