paulmassen / grav-plugin-seo

Manage your site’s meta tags for display in search engine results or social media networks. Create and manage json-ld microdata. Includes an easy-to-use live preview feature.
MIT License
84 stars 21 forks source link

include-twig expressions in pages cause errors in the admin once the SEO Plugin is active #86

Open johBerlin opened 4 years ago

johBerlin commented 4 years ago

I have some pages running twig things. Those pages send an error when the SEO plugin is active. I turn it off: the pages render properly.

An example: In one page, I include a twig-file like that: {% include 'partials/contact-form.html.twig' %}

The page itself is still rendering properly. Just the admin interface does not work anymore.

The error that i am getting when entering the page in the admin is: An exception has been thrown during the rendering of a template ("Template "partials/contact-form.html.twig" is not defined.").

Any Idea to overcome this?

johBerlin commented 4 years ago

Update: maybe it was part of the twig-code I entered in that page. After some cleaning up it just vanished. 🤷‍♂️