ErrorException {#1688 #severity: E_WARNING }
$count = $equipment->count_;
if($returnValue)
$equipmentList[$category][$equipment->translations['value'][$locale]] = $count;
else
$equipmentList[$category][$equipment->translations['name'][$locale]] = $count;
}
else
$equipmentList[$category][] = $equipment;
}
$info['location'] = $item->getLonLat();
$info['modified'] = $item->getModified();
$info['exclusive'] = $item->getExclusive();
$info['useplatefields'] = $item->getUseplatefields();
$info['reservable'] = $this->getReservable($item);
$info['equipments'] = $this->getItemEquipments($item, $locale, true);
// If fetching price fails, show minimum price
try {
if($datesFromSession) {
$info['fullprice'] = $this->priceService->getPrice($item, $start, $end, $visitors, $combinedPrice);
if(!$item->getPublished() and !$this->itemService->checkOwnership($item)) {
return $this->responseService->redirectItemNotFound();
}
// Get basic information
$info = $this->itemService->getItemInformation($item, $request->getLocale(), true, true);
$userPreferences = $this->accessories->getUserPreferences();
// Get price
$pricesJSON = array();
$length = "";
$this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
$controller = $event->getController();
$arguments = $event->getArguments();
// call controller
$response = $controller(...$arguments);
// view
if (!$response instanceof Response) {
$event = new ViewEvent($this, $request, $type, $response, $event);
$this->dispatcher->dispatch($event, KernelEvents::VIEW);
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
$this->requestStack->push($request);
$response = null;
try {
return $response = $this->handleRaw($request, $type);
} catch (\Throwable $e) {
if ($e instanceof \Error && !$this->handleAllThrowables) {
throw $e;
}
$this->boot();
++$this->requestStackSize;
$this->resetServices = true;
try {
return $this->getHttpKernel()->handle($request, $type, $catch);
} finally {
--$this->requestStackSize;
}
}
) {
}
public function run(): int
{
$response = $this->kernel->handle($this->request);
if (Kernel::VERSION_ID >= 60400) {
$response->send(false);
if (\function_exists('fastcgi_finish_request') && !$this->debug) {
$app = $app(...$args);
exit(
$runtime
->getRunner($app)
->run()
);
$_SERVER['HTTPS'] = 'on';
$_SERVER['SERVER_PORT'] = 443;
}
}
require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
return function (array $context) {
return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
};
ErrorException
|
---|
ErrorException: Warning: Undefined array key "ru" at src/Service/ItemService.php:877 at App\Service\ItemService->getItemEquipments(object(RsItem), 'ru', true) (src/Service/ItemService.php:1003) at App\Service\ItemService->getItemInformation(object(RsItem), 'ru', true, true) (src/Controller/ItemController.php:636) at App\Controller\ItemController->show(object(Request), '14', -1, -1, -1, -1, -1) (vendor/symfony/http-kernel/HttpKernel.php:181) at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1) (vendor/symfony/http-kernel/HttpKernel.php:76) at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true) (vendor/symfony/http-kernel/Kernel.php:197) at Symfony\Component\HttpKernel\Kernel->handle(object(Request)) (vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35) at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run() (vendor/autoload_runtime.php:29) at require_once('/app/vendor/autoload_runtime.php') (public/index.php:13) |