Errors when name is not set in code

Created on 12 February 2024, 10 months ago
Updated 14 February 2024, 10 months ago

I get this error when I position a Wordpress code in my WYSIWYG field:

TypeError: Twig\Environment::loadTemplate(): Argument #2 ($name) must be of type string, array given, called in /var/www/html/web/modules/contrib/infogram/src/Infogram.php on line 34 in Twig\Environment->loadTemplate() (line 330 of /var/www/html/vendor/twig/twig/src/Environment.php).

A possible workaround is to set a name in the code:

[infogram name="dummy" id="_/wc3CnB7FUCYLYGGd4w6T" prefix="myPrefix" format="interactive" title="my title"]

That prevents the above error from happening. However, no infogram content is displayed in the output, regardless. Instead, the above code appears in the output.

🐛 Bug report
Status

Needs review

Version

2.0

Component

Code

Created by

🇺🇸United States arnoldbird

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024