Skip to content

Comments

[BUGFIX:13.1] Catch InvalidArgumentException for missing site languages in GarbageHandler#4537

Open
dkd-kaehm wants to merge 1 commit intoTYPO3-Solr:release-13.1.xfrom
dkd-kaehm:port/4534_13.1
Open

[BUGFIX:13.1] Catch InvalidArgumentException for missing site languages in GarbageHandler#4537
dkd-kaehm wants to merge 1 commit intoTYPO3-Solr:release-13.1.xfrom
dkd-kaehm:port/4534_13.1

Conversation

@dkd-kaehm
Copy link
Collaborator

@dkd-kaehm dkd-kaehm commented Feb 19, 2026

When page records reference a sys_language_uid that is not configured in the site, Site::getLanguageById() throws an InvalidArgumentException. The existing catch only handles SiteNotFoundException. This adds InvalidArgumentException to the catch block so pages with unconfigured languages are treated as non-indexable instead of crashing.

Fixes: #4533
Ports: #4534

… GarbageHandler

When page records reference a sys_language_uid that is not configured
in the site, Site::getLanguageById() throws an InvalidArgumentException.
The existing catch only handles SiteNotFoundException. This adds
InvalidArgumentException to the catch block so pages with unconfigured
languages are treated as non-indexable instead of crashing.

Fixes: TYPO3-Solr#4533
Ports: TYPO3-Solr#4534
@dkd-kaehm dkd-kaehm changed the title [BUGFIX:13.1] Catch InvalidArgumentException for missing site languages in… [BUGFIX:13.1] Catch InvalidArgumentException for missing site languages in GarbageHandler Feb 19, 2026
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.

1 participant