Description
Context
Contao version: 5.3.31
Bundle version: 3.0.1
PHP version: 8.2+
Description
TL_ROOT
was removed in Contao 5
In the current tag version 3.0.1
of contao-search-bundle
this constant is still used here:
Because of this the indexing of PDF files doesn't work in Contao 5 currently. When rebuilding the search index this error message comes in the crawl_debug_log.csv:
"Forwarded to the search indexer. Did not index because of the following reason: Could not add a search index entry: Undefined constant ""HeimrichHannot\SearchBundle\Indexer\TL_ROOT"""
It can be solved by replacing TL_ROOT
with System::getContainer()->getParameter('kernel.project_dir')
But I guess you've prepared another update already, because the source code in the current master branch looks different to the latest stable tag release?