Exceptions
Exception
TypeError
in
src/Repository/OrganizationRepository.php
(line 58)
->setParameter('in_territories', $in_territory_ids);}$r = $results->getQuery()->getResult();return $r;}public function getOrganisation(int $id): mixed{return $this->createQueryBuilder('o')->select('o')->where('o.id = :id')->setParameter('id', $id)
}#[Route(path: '/organisation/{id}', name: 'organisation_detail')]public function detail_organisation(Request $request, mixed $id): mixed{$organisation = $this->em->getRepository(Organization::class)->getOrganisation($id);$this->params['organisation'] = $organisation;$this->params['referer'] = $request->headers->get('referer');$type = null;$type_id = $organisation->getTypeOrganisation()->getId();/*switch ($type_id) {
in
vendor/symfony/http-kernel/HttpKernel.php
->
detail_organisation
(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 21:31:23 | 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=4.227.36.30&method=GET",
"method": "GET"
}
|
Stack Trace
|
TypeError
|
|---|
TypeError:
App\Repository\OrganizationRepository::getOrganisation(): Argument #1 ($id) must be of type int, string given, called in /home/www/nordinfo/src/Controller/Nordinfo/MainController.php on line 1894
at src/Repository/OrganizationRepository.php:58
at App\Repository\OrganizationRepository->getOrganisation()
(src/Controller/Nordinfo/MainController.php:1894)
at App\Controller\Nordinfo\MainController->detail_organisation()
(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)
|