typoscript_rendering icon indicating copy to clipboard operation
typoscript_rendering copied to clipboard

PHP8 error with content-type reading

Open liayn opened this issue 3 years ago • 1 comments

[WARNING] request="b2b9....." component="TYPO3.CMS.Core.Error.ErrorHandler": Core: Error handler (FE): PHP Warning: Undefined array key 0 in .../vendor/helhum/typoscript-rendering/Classes/Middleware/TypoScriptRenderingMiddleware.php line 76

This is here: https://github.com/helhum/typoscript_rendering/blob/main/Classes/Middleware/TypoScriptRenderingMiddleware.php#L76

I'm not yet sure, how this happens, but maybe a check there would make sense anyways?

(The access log tells me the causing request was done via IPv6, so maybe on our way through our extension this somehow matters.)

liayn avatar Oct 14 '22 08:10 liayn

I can now reproduce the problem. This happens, if an action does throw new PropagateResponseException(new RedirectResponse($redirect, 303), 16155538)

So we get a response that does not have a content-type indeed.

liayn avatar Oct 14 '22 15:10 liayn

Should be resolved with 2.4.1

helhum avatar Nov 22 '22 02:11 helhum