After installation using "composer require drupal/background_image:2.0.x-dev@dev" navigate to config page and add background image using type: view, it throws a following error:

The website encountered an unexpected error. Try again later.

TypeError: htmlspecialchars(): Argument #1 ($string) must be of type string, Drupal\Core\Link given in htmlspecialchars() (line 437 of core\lib\Drupal\Component\Utility\Html.php).

CommentFileSizeAuthor
#4 after.PNG41.34 KBshruu_rao
#4 before.PNG219.51 KBshruu_rao
Background image.png77.01 KBPraveen rani
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:

Comments

praveen rani created an issue. See original summary.

Praveen rani’s picture

Assigned: Praveen rani » Unassigned
Status: Active » Needs review

hi @Nigel Cunningham, I have created MR for above issue. Please review it.

Thank you.

shruu_rao’s picture

StatusFileSize
new219.51 KB
new41.34 KB

Hi,
Tested the MR!8, the MR is applied successfully and error is resolved.

nigelcunningham’s picture

Status: Needs review » Fixed

Tested and merged. Thanks!

Crediting Slashrsm too from the duplicate issue 3368941.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.