diff --git a/Classes/ExceptionHandler/ProductionExceptionHandler.php b/Classes/ExceptionHandler/ProductionExceptionHandler.php index 2f67f764..edd14d64 100755 --- a/Classes/ExceptionHandler/ProductionExceptionHandler.php +++ b/Classes/ExceptionHandler/ProductionExceptionHandler.php @@ -22,11 +22,11 @@ class ProductionExceptionHandler extends Typo3ProductionExceptionHandler */ public function echoExceptionWeb($exception) { + $this->sendStatusHeaders($exception); + if (isset($GLOBALS['TYPO3_AJAX']) && $GLOBALS['TYPO3_AJAX'] === true) { echo $exception->getCode(); } else { - $this->sendStatusHeaders($exception); - $this->writeLogEntries($exception, self::CONTEXT_WEB); $messageObj = GeneralUtility::makeInstance(