Error 500 Internal Server Error

GET https://referentiel.spontaneit.fr/fr/benchmark/reliable

Forwarded to ErrorController (513e72)

Exceptions

Call to a member function getCurrentSupplychain() on null

Exception

Error

  1.             return $a['critere_numero'] <=> $b['critere_numero'];
  2.         });
  3.         $result_moyenne $scoreEvaluationService->getMoyenne($module$supplychains);
  4.         $moyenne_sc $result_moyenne['moyenne'];
  5.         $eval $this->em->getRepository(EvaluationModule::class)->findOneBy(['module' => $module'supplychain' => $user->getCurrentSupplychain()]);
  6.         $current_moyenne $eval?->getScoreMesure();
  7.         $this->page_parameters['menu'] = 'benchmark';
  8.         $secteurs $this->em->getRepository(SecteurActivite::class)->findAll();
  9.         $marches $this->em->getRepository(Marche::class)->findAll();
in vendor/symfony/http-kernel/HttpKernel.php -> module_benchmark_detail (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.         if (!$this->handlingHttpCache) {
  2.             $this->resetServices true;
  3.         }
  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('/home/www/scm_referentiel/vendor/autoload_runtime.php') in public/index.php (line 5)
  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'], (bool) $context['APP_DEBUG']);
  6. };

Logs

Level Channel Message
INFO 17:21:14 request Matched route "_profiler".
{
    "route": "_profiler",
    "route_parameters": {
        "_route": "_profiler",
        "_controller": "web_profiler.controller.profiler::panelAction",
        "token": "latest"
    },
    "request_uri": "https://referentiel.spontaneit.fr/_profiler/latest?ip=57.141.0.19&type=request",
    "method": "GET"
}
INFO 17:21:14 deprecation User Deprecated: Since symfony/framework-bundle 6.4: The "annotations.cached_reader" service is deprecated without replacement.
{
    "exception": {}
}
INFO 17:21:14 deprecation User Deprecated: Since symfony/framework-bundle 6.4: The "annotations.reader" service is deprecated without replacement.
{
    "exception": {}
}
INFO 17:21:14 deprecation User Deprecated: Since symfony/framework-bundle 6.4: The "annotations.cache_adapter" service is deprecated without replacement.
{
    "exception": {}
}
INFO 17:21:14 deprecation User Deprecated: Since symfony/validator 6.4: Method "Symfony\Component\Validator\ValidatorBuilder::setDoctrineAnnotationReader()" is deprecated without replacement.
{
    "exception": {}
}
INFO 17:21:14 deprecation User Deprecated: In ORM 3.0, the AttributeDriver will report fields for the classes where they are declared. This may uncover invalid mapping configurations. To opt into the new mode today, set the "reportFieldsWhereDeclared" constructor parameter to true. (AttributeDriver.php:77 called by App_KernelDevDebugContainer.php:1878, https://github.com/doctrine/orm/pull/10455, package doctrine/orm)
{
    "exception": {}
}

Stack Trace

Error
Error:
Call to a member function getCurrentSupplychain() on null

  at src/Controller/MainController.php:1023
  at App\Controller\MainController->module_benchmark_detail()
     (vendor/symfony/http-kernel/HttpKernel.php:181)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
     (vendor/symfony/http-kernel/HttpKernel.php:76)
  at Symfony\Component\HttpKernel\HttpKernel->handle()
     (vendor/symfony/http-kernel/Kernel.php:208)
  at Symfony\Component\HttpKernel\Kernel->handle()
     (vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35)
  at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run()
     (vendor/autoload_runtime.php:29)
  at require_once('/home/www/scm_referentiel/vendor/autoload_runtime.php')
     (public/index.php:5)