Exceptions
Exception
ErrorException
in
src/Controller/Front/Product/HotelController.php
(line 516)
{$hotel_id_elements = explode("|", $id);$xmlSourceId = $hotel_id_elements[0];// dd($xmlSourceId);$codeHotel = $hotel_id_elements[1];if ($xmlSourceId == 0) {$hotelDetails = $this->hotelApiService->hotelDetails($codeHotel, $request->getLocale());} else {$hotelDetails = $this->hotelApiService->hotelDetailsHUB($id);
in
vendor/symfony/http-kernel/HttpKernel.php
->
hotelDetail
(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 29)
$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 18:00:21 | request |
Matched route "_profiler". {
"route": "_profiler",
"route_parameters": {
"_route": "_profiler",
"_controller": "web_profiler.controller.profiler::panelAction",
"token": "428b95"
},
"request_uri": "http://sunazur.tn/_profiler/428b95?panel=exception",
"method": "GET"
}
|
| INFO 18:00:21 | doctrine |
Connecting with parameters {params} {
"params": {
"driver": "pdo_mysql",
"host": "10.10.100.100",
"port": 3306,
"user": "sunazur",
"password": "<redacted>",
"driverOptions": [],
"defaultTableOptions": [],
"dbname": "sf_db_sunazur",
"serverVersion": "8.0.36 - Source distribution",
"charset": "utf8"
}
}
|
| DEBUG 18:00:21 | doctrine |
Executing statement: SELECT t0.id AS id_1, t0.name AS name_2, t0.address AS address_3, t0.phone AS phone_4, t0.active AS active_5, t0.currency AS currency_6, t0.isDefault AS isDefault_7, t0.latitude AS latitude_8, t0.longitude AS longitude_9, t0.city_id AS city_id_10 FROM Agency t0 WHERE t0.id = ? (parameters: {params}, types: {types}) {
"sql": "SELECT t0.id AS id_1, t0.name AS name_2, t0.address AS address_3, t0.phone AS phone_4, t0.active AS active_5, t0.currency AS currency_6, t0.isDefault AS isDefault_7, t0.latitude AS latitude_8, t0.longitude AS longitude_9, t0.city_id AS city_id_10 FROM Agency t0 WHERE t0.id = ?",
"params": {
"1": 1
},
"types": {
"1": 1
}
}
|
Stack Trace
|
ErrorException
|
|---|
ErrorException:
Warning: Undefined array key 1
at src/Controller/Front/Product/HotelController.php:516
at App\Controller\Front\Product\HotelController->hotelDetail()
(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:29)
at require_once('/home/sunazur/public_html/vendor/autoload_runtime.php')
(public/index.php:5)
|