- Issue created by @johankleene
- 🇮🇳India shivam_tiwari
I checked this, but not getting any issue like this. Can you please provide here steps to reproduce of this issue?
- 🇮🇳India abhijeetsatpute
I was able to reproduce this issue on a Drupal 11 site using SVG Image 3.2.1.
The error occurs when switching the field formatter to Image (provided by svg_image → \src\Plugin\Field\FieldFormatter\SvgImageFormatter.php).
When checking the formatter configuration, I see the following:
Array ( [image_style] => convert_to_avif [svg_attributes] => [svg_render_as_image] => 1 [image_link] => [image_loading] => Array ( [attribute] => lazy ) )
Here svg_attributes is stored as an empty string, which leads to the error when accessed as an array.
The commit available in the issue branch resolves the problem. - 🇮🇳India sivaprasadc
sivaprasadc → changed the visibility of the branch 3512208-formatter-errors-because to hidden.