From d39a8d67169c7ef2eb0597474430950b07e7fb48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=BCneyt=20=C5=9Eent=C3=BCrk?= Date: Tue, 24 Sep 2024 13:42:39 +0100 Subject: [PATCH] fixed 500 exception missing class issue ; Symfony's Debug component, which included the FatalThrowableError class, was deprecated and removed in favor of Symfony's newer error handling mechanisms starting with Symfony 5.0. The Debug component itself has been replaced by the ErrorHandler component. --- app/Exceptions/Handler.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Exceptions/Handler.php b/app/Exceptions/Handler.php index e3cf290b7..861ebaa23 100644 --- a/app/Exceptions/Handler.php +++ b/app/Exceptions/Handler.php @@ -13,7 +13,7 @@ use Illuminate\Http\Response; use Illuminate\Support\Str; use Illuminate\Validation\ValidationException; use Illuminate\View\ViewException; -use Symfony\Component\Debug\Exception\FatalThrowableError; +use Symfony\Component\ErrorHandler\Error\FatalError; use Symfony\Component\HttpKernel\Exception\HttpExceptionInterface; use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; use Symfony\Component\Mailer\Exception\HttpTransportException as MailerHttpTransportException; @@ -167,7 +167,7 @@ class Handler extends ExceptionHandler } } - if ($exception instanceof FatalThrowableError) { + if ($exception instanceof FatalError) { // ajax 500 json feedback if ($request->ajax()) { return response()->json([