grav-plugin-tntsearch
grav-plugin-tntsearch copied to clipboard
Looking for xxxxx.json.twig templates
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:
Which content is this:
When it tries to process this Twig file, take a look at this stack:
The problem is below... $extension
ends up being "json"
...
Anyways... I removed the .json
extension from the tntsearch.js
file and now it works.
Grav v1.5.7 Admin v1.8.15 TNT Search v2.0.4