Problem/Motivation

On the help page (/admin/help/styleguide) there are two warning messages.

Warning: strpos() expects parameter 1 to be string, object given in Drupal\Component\Utility\UrlHelper::stripDangerousProtocols()

Warning: htmlspecialchars() expects parameter 1 to be string, object given in Drupal\Component\Utility\Html::escape()

Steps to reproduce

Visit the help page of the style guide module: /admin/help/styleguide

Proposed resolution

The problem can be found in the styleguide.module file's styleguide_help function.
The URL object needs to be converted to string.

Issue fork styleguide-3248027

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

david.czinege created an issue. See original summary.

david.czinege’s picture

Status: Active » Needs review
FileSize
1.04 KB

I have fixed this issue. I created a patch file and a merge request also.