Skip to content

fix: replace deprecated getIndpEnv() in UserIntegration - #128

Open
lolli42 wants to merge 1 commit into
networkteam:mainfrom
lolli42:fix/125-getindpenv
Open

lolli42 wants to merge 1 commit into
networkteam:mainfrom
lolli42:fix/125-getindpenv

Conversation

@lolli42

@lolli42 lolli42 commented Sep 10, 2026

Copy link
Copy Markdown

GeneralUtility::getIndpEnv() is deprecated since TYPO3 v14.3 and will be removed in v15.0. Because the event processor runs whenever an event is captured, the notice is emitted on ordinary requests, and with display_errors on it is printed before the payload - which corrupts backend AJAX responses.

Read the remote address from the request's normalizedParams instead and skip it when there is no request, which also keeps the CLI path quiet. NormalizedParams has existed since TYPO3 9.2, so no supported version is affected.

Fixes #125

GeneralUtility::getIndpEnv() is deprecated since TYPO3 v14.3 and will be
removed in v15.0. Because the event processor runs whenever an event is
captured, the notice is emitted on ordinary requests, and with
display_errors on it is printed before the payload - which corrupts
backend AJAX responses.

Read the remote address from the request's normalizedParams instead and
skip it when there is no request, which also keeps the CLI path quiet.
NormalizedParams has existed since TYPO3 9.2, so no supported version is
affected.

Fixes networkteam#125
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.

UserIntegration uses GeneralUtility::getIndpEnv(), deprecated in TYPO3 v14.3 — corrupts backend AJAX responses when display_errors is on

2 participants