Skip to content

Conversation

@sfroemkenjw
Copy link
Collaborator

In setups without sys_template records, indexing failed with #1637339439 The closest page with active template ... could not be resolved.

This patch adjusts getPidToUseForTsfeInitialization() to check site configuration before falling back to ConfigurationPageResolver. If the page belongs to a site with a TypoScript root defined, the site’s root page ID is used directly, avoiding unnecessary sys_template lookups.

Fixes #4369

…nitialization

In setups without `sys_template` records, indexing failed with
`#1637339439 The closest page with active template ... could not be resolved`.

This patch adjusts `getPidToUseForTsfeInitialization()` to check site
configuration before falling back to `ConfigurationPageResolver`.
If the page belongs to a site with a TypoScript root defined, the
site’s root page ID is used directly, avoiding unnecessary sys_template lookups.

Fixes TYPO3-Solr#4369
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

Successfully merging this pull request may close these issues.

[BUG] Indexing records with no sys_template records impossible due to exception

1 participant