Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Server Error when I use "% include" #63

Open
timbo-lino opened this issue May 29, 2018 · 4 comments
Open

Server Error when I use "% include" #63

timbo-lino opened this issue May 29, 2018 · 4 comments

Comments

@timbo-lino
Copy link

Hey,

a very nice plugin. But it break site creation when I include a partial into my sites

{% include 'partials/example.html.twig' %}

leads to:

Server Error
Sorry, something went terribly wrong!

0 - An exception has been thrown during the rendering of a template ("Template "partials/example.html.twig" is not defined.").
@paulmassen
Copy link
Owner

Hmm, it's not related to the plugin. it looks like it can't find the partials template.

You sure you have the file user/themes/yourtheme/templates/partials/example.html.twig ?

@timbo-lino
Copy link
Author

As soon as I disable the SEO plugin it works fine

@paulmassen
Copy link
Owner

I'm sorry, but I need more info. Where do you use that include? in which template? are you using an existing theme?

@timbo-lino
Copy link
Author

Okay!

  1. I use that include line ( {% include 'partials/example.html.twig' %} ) in default.md, not in a template. I do this because on some pages I want to embed an image, which is defined in expample.html.twig. As soon as I enable SEO Plugin I can not edit this pages with this include part in the backend (admin-panel). Frontend rendering works fine. Only backend rendering seems to the issue

  2. Theme does not matter. Tried it with Pinpress, Antimatter and Bootstrap.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants