Exceptions
Exception
ErrorException
in
src/Controller/Nordinfo/MainController.php
(line 3073)
if ($date_json >= $current_date) {array_push($dates_multiples, $d);}}$nombre_date = count($dates_multiples);$ics_date_debut = $dates_multiples[0];$ics_date_fin = $dates_multiples[0];if ($json_horaires['datesMultiple']['modeHours'] == 'simple') {$date = null;if ($nombre_date == 1) {$date1 = date_create_from_format('d/m/Y', $dates_multiples[0]);
$this->params['openGraph'] = ["url" => "https://info.lenord.fr/" . $post->getSlug(), "type" => "article", "title" => $post->getTitle(), "image" => "https://info.lenord.fr/upload/images/" . $post->getIllustrationFilName(), "description" => $content_post];$this->params['twitter_card'] = ["card" => "summary", "site" => "@info.lenord.fr"];$this->params['articleSchema'] = [];$this->params['placement_image'] = 'placement2';if ($post->getType()?->getType() === 'event') {$json_convert_dates = $this->formatDateAgendaJson($post->getJson());$this->params['ics_date_debut'] = $json_convert_dates['ics_date_debut'];$this->params['ics_date_fin'] = $json_convert_dates['ics_date_fin'];$this->params['event_date'] = $json_convert_dates['date_string'];$this->params['event_heures'] = $json_convert_dates['heure_string'];$this->params['event_lieu'] = null;
in
vendor/symfony/http-kernel/HttpKernel.php
->
detail_post
(line 163)
$this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);$controller = $event->getController();$arguments = $event->getArguments();// call controller$response = $controller(...$arguments);// viewif (!$response instanceof Response) {$event = new ViewEvent($this, $request, $type, $response);$this->dispatcher->dispatch($event, KernelEvents::VIEW);
in
vendor/symfony/http-kernel/HttpKernel.php
->
handleRaw
(line 75)
{$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());$this->requestStack->push($request);try {return $this->handleRaw($request, $type);} catch (\Exception $e) {if ($e instanceof RequestExceptionInterface) {$e = new BadRequestHttpException($e->getMessage(), $e);}if (false === $catch) {
in
vendor/symfony/http-kernel/Kernel.php
->
handle
(line 202)
$this->boot();++$this->requestStackSize;$this->resetServices = true;try {return $this->getHttpKernel()->handle($request, $type, $catch);} finally {--$this->requestStackSize;}}
in
vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php
->
handle
(line 35)
$this->request = $request;}public function run(): int{$response = $this->kernel->handle($this->request);$response->send();if ($this->kernel instanceof TerminableInterface) {$this->kernel->terminate($this->request, $response);}
in
vendor/autoload_runtime.php
->
run
(line 35)
$app = $app(...$args);exit($runtime->getRunner($app)->run());
<?phpuse App\Kernel;require_once dirname(__DIR__).'/vendor/autoload_runtime.php';return function (array $context) {return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);};
Logs
| Level | Channel | Message |
|---|---|---|
| INFO 16:25:31 | request |
Matched route "_profiler". {
"route": "_profiler",
"route_parameters": {
"_route": "_profiler",
"_controller": "web_profiler.controller.profiler::panelAction",
"token": "latest"
},
"request_uri": "https://nordinfo.spontaneit.fr/_profiler/latest?ip=216.73.216.209",
"method": "GET"
}
|
Stack Trace
|
ErrorException
|
|---|
ErrorException:
Warning: Undefined array key 0
at src/Controller/Nordinfo/MainController.php:3073
at App\Controller\Nordinfo\MainController->formatDateAgendaJson()
(src/Controller/Nordinfo/MainController.php:2721)
at App\Controller\Nordinfo\MainController->detail_post()
(vendor/symfony/http-kernel/HttpKernel.php:163)
at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
(vendor/symfony/http-kernel/HttpKernel.php:75)
at Symfony\Component\HttpKernel\HttpKernel->handle()
(vendor/symfony/http-kernel/Kernel.php:202)
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:35)
at require_once('/home/www/nordinfo/vendor/autoload_runtime.php')
(public/index.php:5)
|