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.
Comment | File | Size | Author |
---|---|---|---|
#3 | styleguide-fix-help-page-3248027-3.patch | 1.04 KB | david.czinege |
Issue fork styleguide-3248027
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:
Comments
Comment #3
david.czinege CreditAttribution: david.czinege as a volunteer commentedI have fixed this issue. I created a patch file and a merge request also.