Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save enthus1ast/83ad4b23f7a35b0b1e9ef1e9eb30676b to your computer and use it in GitHub Desktop.
Save enthus1ast/83ad4b23f7a35b0b1e9ef1e9eb30676b to your computer and use it in GitHub Desktop.
Im trying to use boltforms,
if i follow the example and include a form
{{ boltforms('anonymous-comments') }}
in a template which also extends my base template i get:
Twig_Error_Runtime in Template.php (mysite/vendor/twig/twig/lib/Twig/Template.php) line 230:
An exception has been thrown during the rendering of a template
("A form of the name "anonymous-comments" has already been created.") in "contact.twig" at line 5.
If i import the template on the base template (which does not extends another template)
the template gets rendered.
I tried to make shure that my code is imported only once.
But maybe i missed something not obvious?
Any good advices?
Bolt Version:
version 3.4.7
Enabled extensions:
- Translate4.1.1animal/translate # maybe its translate?
- BoltFormsv4.2.0bolt/boltforms
- EmailSpoolerv3.1.0bolt/email-spooler
- Sitemap2.3.0bolt/sitemap
- google/recaptcha1.1.3google/recaptcha
- MinifyHtml0.1.2hellonico/minify-html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment