Open trackleft opened 2 years ago
We encountered issues with the inline SVG functionality again while testing #2968
TypeError: array_intersect_key(): Argument #1 ($array) must be of type array, string given in array_intersect_key() (line 348 of core/lib/Drupal/Core/Render/Renderer.php)
Problem/Motivation
While troubleshooting a website that was unuseable on the front-end WSOD
Saw this error
Narrowed the error down to the az_barrio theme setting for inlining SVGs
Inline logo SVG (Experimental) If logo is SVG image then inline it content in the page instead of using image tag to render it. This is useful when you need to control SVG logo with theme CSS.
If I uncheck the box it goes away.
Describe the bug
Improper render array passed to the renderer.
To Reproduce
Steps to reproduce the behavior:
Proposed resolution
Fix the render array. Possibly something similar this patch https://www.drupal.org/files/issues/2021-12-18/3254973-4.patch