Error 500 Internal Server Error

GET https://www.devz9.com/flux/rhone/action/asynch/spatstec3/420

Forwarded to ErrorController (abf80c)

Exceptions

Warning: Undefined variable $result2

ErrorException

Show exception properties
0 of 0
ErrorException {#713 â–¼ #severity: E_WARNING }
  1.                 }
  2.         /*sauvegarde du fichier*/
  3.         $dir $this->getParameter('flux_directory');
  4.         $dateur $datenow->format('d-m-Y H:i');
  5.         $file $dir."/aconit_".$dateur.".txt";
  6.         file_put_contents($file$result2);
  7.         $message.= 'Création fichier log xml ok'."<br>";
  8.         $log->setMessage($message);
  9.         foreach($toanalyse as $result){
  10.                 $message.= $this->traitement_fiche($result$db$datenow$log);
in vendor/symfony/http-kernel/HttpKernel.php -> action_asynch (line 181)
  1.         $this->dispatcher->dispatch($eventKernelEvents::CONTROLLER_ARGUMENTS);
  2.         $controller $event->getController();
  3.         $arguments $event->getArguments();
  4.         // call controller
  5.         $response $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new ViewEvent($this$request$type$response$event);
  9.             $this->dispatcher->dispatch($eventKernelEvents::VIEW);
  1.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  2.         $this->requestStack->push($request);
  3.         $response null;
  4.         try {
  5.             return $response $this->handleRaw($request$type);
  6.         } catch (\Throwable $e) {
  7.             if ($e instanceof \Error && !$this->handleAllThrowables) {
  8.                 throw $e;
  9.             }
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request$type$catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
  1.     ) {
  2.     }
  3.     public function run(): int
  4.     {
  5.         $response $this->kernel->handle($this->request);
  6.         if (Kernel::VERSION_ID >= 60400) {
  7.             $response->send(false);
  8.             if (\function_exists('fastcgi_finish_request') && !$this->debug) {
in vendor/autoload_runtime.php -> run (line 29)
  1. $app $app(...$args);
  2. exit(
  3.     $runtime
  4.         ->getRunner($app)
  5.         ->run()
  6. );
require_once('/var/www/vhosts/devz9.com/vendor/autoload_runtime.php') in public/index.php (line 4)
  1. <?php
  2. use App\Kernel;
  3. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  4. return function (array $context) {
  5.     return new Kernel($context['APP_ENV'], true);
  6. };