Templavoila indexing doesn't work properly
In some cases $GLOBALS['TSFE']->config['config'] is not properly initialized and thus the TSFE should be initialized before running the TV indexer. Also, there is a problem when kesearch tries to index TV element that contain plugins. So far I haven't found a way to render content plugins from the backend and thus the indexer should handle the occurring exceptions.
The attached patch solves both issues.
This was tested with Typo3 4.7.8.
#2 Updated by Morton Jonuschat about 6 years ago
Found the same problem when indexing FCEs containing images and came up with more or less the same solution as Mato - i've attached a slightly different patch with the main differences being:
1) TSFE will be fully initialized when the TemplaVoila Indexer gets instantiated
2) Catch all kinds of exceptions when rendering plugins/fce, better safe than sorry
3) Fixed indentation to conform to ke_search coding standards
The checking for contentElementUids has been merged from the patch Mato submitted.
#6 Updated by Morton Jonuschat over 5 years ago
Sorry, didn't find the time yet to test the trunk version. Tried to look at the diff and test the patch in isolation but somehow the diff from Forge was due to replace the whole indexer, so I held back from that too. Will try to look into it this week.
#7 Updated by Christian Buelter over 2 years ago
- Status changed from Accepted to Closed
I'm closing this since it is a rather old issue.
If you think this bug still exists please open a new issue.
Please use https://github.com/teaminmedias-pluswerk/ke_search/issues in that case.