Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUGFIX] Prevent exception in AccessComponent #3945

Conversation

dkd-friedrich
Copy link
Member

AccessComponent expects to find the TypoScriptFrontendController in $GLOBALS['TSFE'], and will cause an exception in CLI context.

To prevent this an additional check for TSFE in AccessComponent is added, similiar to other components like LastSearchesComponent.

Relates: #3675
Resolves: #3944

AccessComponent expects to find the TypoScriptFrontendController in
$GLOBALS['TSFE'], and will cause an exception in CLI context.

To prevent this an additional check for TSFE in AccessComponent is
added, similiar to other components like LastSearchesComponent.

Relates: TYPO3-Solr#3675
Resolves: TYPO3-Solr#3944
@dkd-friedrich dkd-friedrich merged commit 5e78ce8 into TYPO3-Solr:main Feb 6, 2024
8 checks passed
@dkd-friedrich dkd-friedrich deleted the bugfix/main/3944-prevent_exception_in_access_component branch February 6, 2024 13:29
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] Exception in AccessComponent when using solr in CLI context
2 participants