Symfony 4 Undefined Function Error Enhancer not found

After the upgrade from Symfony 4.2 to 4.4, the Debugger Class showed me, that I should change from

use SymfonyComponentDebugDebug;

to

use SymfonyComponentErrorHandlerDebug;

But after this, the ErrorHandler does not work, instead it gives a the strange message

What can be the reason for such a behaviour?

PHP Fatal error: Uncaught Error: Class
‘SymfonyComponentErrorHandlerErrorEnhancerUndefinedFunctionErrorEnhancer’
not found in
/mnt/web208/c0/48/52070748/htdocs/suite_concept12_de/vendor/symfony/error-handler/ErrorHandler.php:720

29.09.2020 15:45:44 wst.concept12.de [client 2003:d0:1f00::] Stack trace:
29.09.2020 15:45:44 wst.concept12.de [client 2003:d0:1f00::] #0 /mnt/web208/c0/48/52070748/htdocs/suite_concept12_de/vendor/symfony/error-handler/ErrorHandler.php(572):
SymfonyComponentErrorHandlerErrorHandler->getErrorEnhancers()
29.09.2020 15:45:44 wst.concept12.de [client 2003:d0:1f00::] #1 /mnt/web208/c0/48/52070748/htdocs/suite_concept12_de/vendor/symfony/error-handler/ErrorHandler.php(677):
SymfonyComponentErrorHandlerErrorHandler->handleException(Object(SymfonyComponentErrorHandlerErrorFatalError))
29.09.2020 15:45:44 wst.concept12.de [client 2003:d0:1f00::] #2 [internal function]:
SymfonyComponentErrorHandlerErrorHandler::handleFatalError()
29.09.2020 15:45:44 wst.concept12.de [client 2003:d0:1f00::] #3 {main}
29.09.2020 15:45:44 wst.concept12.de [client 2003:d0:1f00::] thrown in /mnt/web208/c0/48/52070748/htdocs/suite_concept12_de/vendor/symfony/error-handler/ErrorHandler.php
on line 720

Source: Symfony Questions

Was this helpful?

0 / 0

Leave a Reply 0

Your email address will not be published. Required fields are marked *