Deprecation: #83883 - Page Not Found And Error handling in Frontend¶
See forge#83883
Description¶
The following methods have been marked as deprecated:
TYPO3\
CMS\ Frontend\ Controller\ Typo Script Frontend Controller->page Unavailable And Exit () TYPO3\
CMS\ Frontend\ Controller\ Typo Script Frontend Controller->page Not Found And Exit () TYPO3\
CMS\ Frontend\ Controller\ Typo Script Frontend Controller->check Page Unavailable Handler () TYPO3\
CMS\ Frontend\ Controller\ Typo Script Frontend Controller->page Unavailable Handler () TYPO3\
CMS\ Frontend\ Controller\ Typo Script Frontend Controller->page Not Found Handler () TYPO3\
CMS\ Frontend\ Controller\ Typo Script Frontend Controller->page Error Handler ()
These methods have been commonly used by third-party extensions to show that a page is not found, a page is unavailable due to misconfiguration or the access to a page was denied.
Impact¶
Calling any of the methods above will trigger a deprecation warning.
Affected Installations¶
Any installation with third-party PHP extension code calling these methods.
Migration¶
Use the new Error
with its custom actions unavailable
, page
and
access
.
Instead of exiting the currently running script, a proposed PSR-7-compliant response is returned which can be handled by the third-party extension to enrich, return or customize exiting the script.