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

Looking for xxxxx.json.twig templates #71

Open
duartealexf opened this issue Jun 11, 2019 · 1 comment
Open

Looking for xxxxx.json.twig templates #71

duartealexf opened this issue Jun 11, 2019 · 1 comment

Comments

@duartealexf
Copy link

I already investigated what happened and fixed it in my GravCMS instance.

When I tried to reindex from the admin page it only reindex 30 out of 600 pages. It turned out it was throwing an exception on the other pages. But that did not happen when running the reindex from the CLI. The exception message said that a 'xxxxx.json.twig' template did not exist.

Here's what happened...

When running the reindex from the admin page it sends a request to /admin.json/task:reindexTNTSearch.

This is the tntsearch.template used by all pages:

image

Which content is this:

image

When it tries to process this Twig file, take a look at this stack:

image

image

image

The problem is below... $extension ends up being "json"...

image

image

image

Anyways... I removed the .json extension from the tntsearch.js file and now it works.

image

@duartealexf
Copy link
Author

Grav v1.5.7
Admin v1.8.15
TNT Search v2.0.4

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

1 participant