networkteam / sentry_client

TYPO3 Extension for exception logging with sentry, see http://www.getsentry.com
33 stars 35 forks source link

Call to undefined method TypoScriptFrontendController::pageNotFoundAndExit() #43

Closed cweiske closed 3 years ago

cweiske commented 3 years ago

When throwing a TYPO3\CMS\Core\Error\Http\PageNotFoundException inside an extension, sentry_client wants to call the TSFE 404 page:

$GLOBALS['TSFE']->pageNotFoundAndExit($reason);

This method does not exist anymore in TYPO3v10: https://docs.typo3.org/c/typo3/cms-core/10.4/en-us/Changelog/9.2/Deprecation-83883-PageNotFoundAndErrorHandlingInFrontend.html


This happens with sentry_client 3.0.2 on TYPO3 v10.4.14

Error message:

Call to undefined method TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::pageNotFoundAndExit() in /var/www/site/htdocs/typo3conf/ext/sentry_client/Classes/Content/ProductionExceptionHandler.php line 63