} return new Response(''); } protected function setCalendarScripts(): void{ echo $this->requestedScrtipts['calendar']['accommodation']; die; if(isset($this->requestedScrtipts['calendar'])){ if(isset($this->requestedScrtipts['calendar']['accommodation']) && $this->requestedScrtipts['calendar']['accommodation']){ $accommodations = $this->accommodationRepository->findBy(['project' => $this->project->getId(), 'includeHash' => $this->requestedScrtipts['calendar']['accommodation']]); }else{ } if(!isset($this->requestedScrtipts['phone_click']['selector'])){ $this->requestedScrtipts['phone_click']['selector'] = 'a.phone'; } } $this->setCalendarScripts(); if($this->requestedScrtipts){ $response = $this->render('include/include_scripts.html.twig', [ 'include_scripts' => $this->requestedScrtipts, 'project_hash' => $this->project->getIncludeHash(), $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); $this->dispatcher->dispatch($event, KernelEvents::VIEW); public function handle(Request $request, int $type = HttpKernelInterface::MASTER_REQUEST, bool $catch = true) { $request->headers->set('X-Php-Ob-Level', (string) ob_get_level()); try { return $this->handleRaw($request, $type); } catch (\Exception $e) { if ($e instanceof RequestExceptionInterface) { $e = new BadRequestHttpException($e->getMessage(), $e); } if (false === $catch) {// $request = Request::create('/', 'GET', [], $_COOKIE, $_FILES, $_SERVER); } $addQueryParams['include_base_path'] = BASE; $request->query->add($addQueryParams);// try{ $response = $this->kernel->handle($request);// }catch(Exception $ex){// echo '<pre>';// print_r($ex->getMessage());// die;// } */ public function getRequestResponseContent(?Request $request = null, array $addQueryParams = [], bool $modifyHeaders = true): ?string{ if(!INCLUDE_KEY){ return null; } $request = $this->getRequestResponse($request, $addQueryParams); $content = $request->getContent(); /** * add basepath on /admin/build/-urls */ * load symony connect */require_once './admin/SymfonyConnect.php';$connect = SymfonyConnect::get();$request = $connect->createRequest('include/include-scripts', isset($symfonyRequestParam) && $symfonyRequestParam ? $symfonyRequestParam : []);$content = $connect->getRequestResponseContent($request);echo $content;?>
<meta property="og:url" content="https://ferienhaeuser-hellmich.de/404.php"> <meta property="og:site_name" content="ferienhaeuser-hellmich.de"> <meta property="og:image" content="https://ferienhaeuser-hellmich.de/images/og/impressum.jpg"> <link rel="canonical" href="https://ferienhaeuser-hellmich.de/404.php"> <?php include("include/css-data.php"); ?> <?php include("include/js-data.php"); ?> <?php include("include/fav-tiles.php"); ?></head> <body class="impressum"> <div id="wellen"></div> <div class="container">No log messages
ErrorException |
|---|
ErrorException:
Warning: Undefined array key "calendar"
at src/Controller/Page/PageIncludeController.php:197
at App\Controller\Page\PageIncludeController->setCalendarScripts()
(src/Controller/Page/PageIncludeController.php:183)
at App\Controller\Page\PageIncludeController->includeScripts()
(vendor/symfony/http-kernel/HttpKernel.php:157)
at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
(vendor/symfony/http-kernel/HttpKernel.php:79)
at Symfony\Component\HttpKernel\HttpKernel->handle()
(vendor/symfony/http-kernel/Kernel.php:196)
at Symfony\Component\HttpKernel\Kernel->handle()
(/var/www/vhosts/ferienhaeuser-hellmich.de/httpdocs/admin/SymfonyConnect.php:108)
at SymfonyConnect->getRequestResponse()
(/var/www/vhosts/ferienhaeuser-hellmich.de/httpdocs/admin/SymfonyConnect.php:131)
at SymfonyConnect->getRequestResponseContent()
(/var/www/vhosts/ferienhaeuser-hellmich.de/httpdocs/include/js-data.php:11)
at include('/var/www/vhosts/ferienhaeuser-hellmich.de/httpdocs/include/js-data.php')
(/var/www/vhosts/ferienhaeuser-hellmich.de/httpdocs/404.php:20)
|