Symfony Exception

RuntimeError

HTTP 500 Internal Server Error

Impossible to access an attribute ("imageUrl") on a null variable.

Exception

Twig\Error\ RuntimeError

Warning: is_file(): open_basedir restriction in effect. File(/web/nylonbor/templates/front/homepage/index-animation.html.twig) is not within the allowed path(s): (/var/www/clients/client16/web43/web:/var/www/clients/client16/web43/private:/var/www/clients/client16/web43/tmp:/var/www/nylonbor.pl/web:/srv/www/nylonbor.pl/web:/usr/share/php5:/usr/share/php:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin) (500 Internal Server Error)

Symfony Exception

Warning: is_file(): open_basedir restriction in effect. File(/web/nylonbor/templates/front/homepage/index-animation.html.twig) is not within the allowed path(s): (/var/www/clients/client16/web43/web:/var/www/clients/client16/web43/private:/var/www/clients/client16/web43/tmp:/var/www/nylonbor.pl/web:/srv/www/nylonbor.pl/web:/usr/share/php5:/usr/share/php:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin)

Exceptions 2

ErrorException

  1.      * @param int    $line       The selected line number
  2.      * @param int    $srcContext The number of displayed lines around or -1 for the whole file
  3.      */
  4.     private function fileExcerpt(string $fileint $lineint $srcContext 3): string
  5.     {
  6.         if (is_file($file) && is_readable($file)) {
  7.             // highlight_file could throw warnings
  8.             // see https://bugs.php.net/25725
  9.             $code = @highlight_file($filetrue);
  10.             // remove main code/span tags
  11.             $code preg_replace('#^<code.*?>\s*<span.*?>(.*)</span>\s*</code>#s''\\1'$code);
  1.         </span>
  2.     <?php ?>
  3. </div>
  4. <?php if ($trace['file']) { ?>
  5.     <div id="trace-html-<?= $prefix.'-'.$i?>" class="trace-code sf-toggle-content">
  6.         <?= strtr($this->fileExcerpt($trace['file'], $trace['line'], 5), [
  7.             'var(--highlight-string)' => 'var(--highlight-string)',
  8.             'var(--highlight-keyword)' => 'var(--highlight-keyword)',
  9.             'var(--highlight-default)' => 'var(--highlight-default)',
  10.             'var(--highlight-comment)' => 'var(--highlight-comment)',
  11.         ]); ?>
  1.     private function include(string $name, array $context = []): string
  2.     {
  3.         extract($context\EXTR_SKIP);
  4.         ob_start();
  5.         include is_file(\dirname(__DIR__).'/Resources/'.$name) ? \dirname(__DIR__).'/Resources/'.$name $name;
  6.         return trim(ob_get_clean());
  7.     }
  8.     /**
  1.             <div class="trace-line <?= $isVendorTrace 'trace-from-vendor' ''?>">
  2.                 <?= $this->include('views/trace.html.php', [
  3.                     'prefix' => $index,
  4.                     'i' => $i,
  5.                     'trace' => $trace,
  6.                     'style' => $isVendorTrace 'compact' : ($displayCodeSnippet 'expanded' ''),
  7.                 ]); ?>
  8.             </div>
  9.             <?php
  10.         ?>
  11.         </div>
  1.     private function include(string $name, array $context = []): string
  2.     {
  3.         extract($context\EXTR_SKIP);
  4.         ob_start();
  5.         include is_file(\dirname(__DIR__).'/Resources/'.$name) ? \dirname(__DIR__).'/Resources/'.$name $name;
  6.         return trim(ob_get_clean());
  7.     }
  8.     /**
  1.                 <?php
  2.                 foreach ($exceptionAsArray as $i => $e) {
  3.                     echo $this->include('views/traces.html.php', [
  4.                         'exception' => $e,
  5.                         'index' => $i 1,
  6.                         'expand' => in_array($i$exceptionWithUserCodetrue) || ([] === $exceptionWithUserCode && === $i),
  7.                     ]);
  8.                 }
  9.                 ?>
  10.             </div>
  11.         </div>
  1.     private function include(string $name, array $context = []): string
  2.     {
  3.         extract($context\EXTR_SKIP);
  4.         ob_start();
  5.         include is_file(\dirname(__DIR__).'/Resources/'.$name) ? \dirname(__DIR__).'/Resources/'.$name $name;
  6.         return trim(ob_get_clean());
  7.     }
  8.     /**
  1.                     </div>
  2.                 </div>
  3.             </header>
  4.         <?php ?>
  5.         <?= $this->include('views/exception.html.php'$context); ?>
  6.         <script>
  7.             <?= $this->include('assets/js/exception.js'); ?>
  8.         </script>
  9.     </body>
  1.     private function include(string $name, array $context = []): string
  2.     {
  3.         extract($context\EXTR_SKIP);
  4.         ob_start();
  5.         include is_file(\dirname(__DIR__).'/Resources/'.$name) ? \dirname(__DIR__).'/Resources/'.$name $name;
  6.         return trim(ob_get_clean());
  7.     }
  8.     /**
  1.             'exception' => $exception,
  2.             'exceptionMessage' => $exceptionMessage,
  3.             'statusText' => $statusText,
  4.             'statusCode' => $statusCode,
  5.             'logger' => $this->logger instanceof DebugLoggerInterface $this->logger null,
  6.             'currentContent' => \is_string($this->outputBuffer) ? $this->outputBuffer : ($this->outputBuffer)(),
  7.         ]);
  8.     }
  9.     private function formatArgs(array $args): string
  10.     {
  1.             $headers['X-Debug-Exception-File'] = rawurlencode($exception->getFile()).':'.$exception->getLine();
  2.         }
  3.         $exception FlattenException::createFromThrowable($exceptionnull$headers);
  4.         return $exception->setAsString($this->renderException($exception));
  5.     }
  6.     /**
  7.      * Gets the HTML content associated with the given exception.
  8.      */
  1.     /**
  2.      * {@inheritdoc}
  3.      */
  4.     public function render(\Throwable $exception): FlattenException
  5.     {
  6.         $exception $this->fallbackErrorRenderer->render($exception);
  7.         $debug \is_bool($this->debug) ? $this->debug : ($this->debug)($exception);
  8.         if ($debug || !$template $this->findTemplate($exception->getStatusCode())) {
  9.             return $exception;
  10.         }
  1.                 'exception' => $exception,
  2.                 'debug' => $debug,
  3.             ]))
  4.             ->setHeaders($flattenException->getHeaders() + $headers);
  5.         } catch (NotEncodableValueException $e) {
  6.             return $this->fallbackErrorRenderer->render($exception);
  7.         }
  8.     }
  9.     public static function getPreferredFormat(RequestStack $requestStack): \Closure
  10.     {
  1.         $this->errorRenderer $errorRenderer;
  2.     }
  3.     public function __invoke(\Throwable $exception): Response
  4.     {
  5.         $exception $this->errorRenderer->render($exception);
  6.         return new Response($exception->getAsString(), $exception->getStatusCode(), $exception->getHeaders());
  7.     }
  8.     public function preview(Request $requestint $code): Response
  1.         $this->dispatcher->dispatch($eventKernelEvents::CONTROLLER_ARGUMENTS);
  2.         $controller $event->getController();
  3.         $arguments $event->getArguments();
  4.         // call controller
  5.         $response $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new ViewEvent($this$request$type$response);
  9.             $this->dispatcher->dispatch($eventKernelEvents::VIEW);
  1.     public function handle(Request $requestint $type HttpKernelInterface::MAIN_REQUESTbool $catch true): Response
  2.     {
  3.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  4.         try {
  5.             return $this->handleRaw($request$type);
  6.         } catch (\Exception $e) {
  7.             if ($e instanceof RequestExceptionInterface) {
  8.                 $e = new BadRequestHttpException($e->getMessage(), $e);
  9.             }
  10.             if (false === $catch) {
  1.         $throwable $event->getThrowable();
  2.         $request $this->duplicateRequest($throwable$event->getRequest());
  3.         try {
  4.             $response $event->getKernel()->handle($requestHttpKernelInterface::SUB_REQUESTfalse);
  5.         } catch (\Exception $e) {
  6.             $f FlattenException::createFromThrowable($e);
  7.             $this->logException($esprintf('Exception thrown when handling an exception (%s: %s at %s line %s)'$f->getClass(), $f->getMessage(), $e->getFile(), $e->getLine()));
  1.         $this->called true;
  2.         $this->priority $dispatcher->getListenerPriority($eventName$this->listener);
  3.         $e $this->stopwatch->start($this->name'event_listener');
  4.         ($this->optimizedListener ?? $this->listener)($event$eventName$dispatcher);
  5.         if ($e->isStarted()) {
  6.             $e->stop();
  7.         }
  1.         foreach ($listeners as $listener) {
  2.             if ($stoppable && $event->isPropagationStopped()) {
  3.                 break;
  4.             }
  5.             $listener($event$eventName$this);
  6.         }
  7.     }
  8.     /**
  9.      * Sorts the internal list of listeners for the given event by priority.
  1.         } else {
  2.             $listeners $this->getListeners($eventName);
  3.         }
  4.         if ($listeners) {
  5.             $this->callListeners($listeners$eventName$event);
  6.         }
  7.         return $event;
  8.     }
  1.         try {
  2.             $this->beforeDispatch($eventName$event);
  3.             try {
  4.                 $e $this->stopwatch->start($eventName'section');
  5.                 try {
  6.                     $this->dispatcher->dispatch($event$eventName);
  7.                 } finally {
  8.                     if ($e->isStarted()) {
  9.                         $e->stop();
  10.                     }
  11.                 }
  1.      * @throws \Exception
  2.      */
  3.     private function handleThrowable(\Throwable $eRequest $requestint $type): Response
  4.     {
  5.         $event = new ExceptionEvent($this$request$type$e);
  6.         $this->dispatcher->dispatch($eventKernelEvents::EXCEPTION);
  7.         // a listener might have replaced the exception
  8.         $e $event->getThrowable();
  9.         if (!$event->hasResponse()) {
in vendor/symfony/http-kernel/HttpKernel.php -> handleThrowable (line 85)
  1.                 $this->finishRequest($request$type);
  2.                 throw $e;
  3.             }
  4.             return $this->handleThrowable($e$request$type);
  5.         }
  6.     }
  7.     /**
  8.      * {@inheritdoc}
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request$type$catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
  1.         $this->request $request;
  2.     }
  3.     public function run(): int
  4.     {
  5.         $response $this->kernel->handle($this->request);
  6.         $response->send();
  7.         if ($this->kernel instanceof TerminableInterface) {
  8.             $this->kernel->terminate($this->request$response);
  9.         }
in vendor/autoload_runtime.php -> run (line 29)
  1. $app $app(...$args);
  2. exit(
  3.     $runtime
  4.         ->getRunner($app)
  5.         ->run()
  6. );
require_once('/var/www/clients/client16/web43/web/nylonbor/vendor/autoload_runtime.php') in public/index.php (line 5)
  1. <?php
  2. use App\Kernel;
  3. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  4. return function (array $context) {
  5.     return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  6. };

Twig\Error\ RuntimeError

Impossible to access an attribute ("imageUrl") on a null variable.

Warning: is_file(): open_basedir restriction in effect. File(/web/nylonbor/templates/front/homepage/index-animation.html.twig) is not within the allowed path(s): (/var/www/clients/client16/web43/web:/var/www/clients/client16/web43/private:/var/www/clients/client16/web43/tmp:/var/www/nylonbor.pl/web:/srv/www/nylonbor.pl/web:/usr/share/php5:/usr/share/php:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin) (500 Internal Server Error)

Symfony Exception

Warning: is_file(): open_basedir restriction in effect. File(/web/nylonbor/templates/front/homepage/index-animation.html.twig) is not within the allowed path(s): (/var/www/clients/client16/web43/web:/var/www/clients/client16/web43/private:/var/www/clients/client16/web43/tmp:/var/www/nylonbor.pl/web:/srv/www/nylonbor.pl/web:/usr/share/php5:/usr/share/php:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin)

Exceptions 3

ErrorException

  1.      * @param int    $line       The selected line number
  2.      * @param int    $srcContext The number of displayed lines around or -1 for the whole file
  3.      */
  4.     private function fileExcerpt(string $fileint $lineint $srcContext 3): string
  5.     {
  6.         if (is_file($file) && is_readable($file)) {
  7.             // highlight_file could throw warnings
  8.             // see https://bugs.php.net/25725
  9.             $code = @highlight_file($filetrue);
  10.             // remove main code/span tags
  11.             $code preg_replace('#^<code.*?>\s*<span.*?>(.*)</span>\s*</code>#s''\\1'$code);
  1.         </span>
  2.     <?php ?>
  3. </div>
  4. <?php if ($trace['file']) { ?>
  5.     <div id="trace-html-<?= $prefix.'-'.$i?>" class="trace-code sf-toggle-content">
  6.         <?= strtr($this->fileExcerpt($trace['file'], $trace['line'], 5), [
  7.             'var(--highlight-string)' => 'var(--highlight-string)',
  8.             'var(--highlight-keyword)' => 'var(--highlight-keyword)',
  9.             'var(--highlight-default)' => 'var(--highlight-default)',
  10.             'var(--highlight-comment)' => 'var(--highlight-comment)',
  11.         ]); ?>
  1.     private function include(string $name, array $context = []): string
  2.     {
  3.         extract($context\EXTR_SKIP);
  4.         ob_start();
  5.         include is_file(\dirname(__DIR__).'/Resources/'.$name) ? \dirname(__DIR__).'/Resources/'.$name $name;
  6.         return trim(ob_get_clean());
  7.     }
  8.     /**
  1.             <div class="trace-line <?= $isVendorTrace 'trace-from-vendor' ''?>">
  2.                 <?= $this->include('views/trace.html.php', [
  3.                     'prefix' => $index,
  4.                     'i' => $i,
  5.                     'trace' => $trace,
  6.                     'style' => $isVendorTrace 'compact' : ($displayCodeSnippet 'expanded' ''),
  7.                 ]); ?>
  8.             </div>
  9.             <?php
  10.         ?>
  11.         </div>
  1.     private function include(string $name, array $context = []): string
  2.     {
  3.         extract($context\EXTR_SKIP);
  4.         ob_start();
  5.         include is_file(\dirname(__DIR__).'/Resources/'.$name) ? \dirname(__DIR__).'/Resources/'.$name $name;
  6.         return trim(ob_get_clean());
  7.     }
  8.     /**
  1.                 <?php
  2.                 foreach ($exceptionAsArray as $i => $e) {
  3.                     echo $this->include('views/traces.html.php', [
  4.                         'exception' => $e,
  5.                         'index' => $i 1,
  6.                         'expand' => in_array($i$exceptionWithUserCodetrue) || ([] === $exceptionWithUserCode && === $i),
  7.                     ]);
  8.                 }
  9.                 ?>
  10.             </div>
  11.         </div>
  1.     private function include(string $name, array $context = []): string
  2.     {
  3.         extract($context\EXTR_SKIP);
  4.         ob_start();
  5.         include is_file(\dirname(__DIR__).'/Resources/'.$name) ? \dirname(__DIR__).'/Resources/'.$name $name;
  6.         return trim(ob_get_clean());
  7.     }
  8.     /**
  1.                     </div>
  2.                 </div>
  3.             </header>
  4.         <?php ?>
  5.         <?= $this->include('views/exception.html.php'$context); ?>
  6.         <script>
  7.             <?= $this->include('assets/js/exception.js'); ?>
  8.         </script>
  9.     </body>
  1.     private function include(string $name, array $context = []): string
  2.     {
  3.         extract($context\EXTR_SKIP);
  4.         ob_start();
  5.         include is_file(\dirname(__DIR__).'/Resources/'.$name) ? \dirname(__DIR__).'/Resources/'.$name $name;
  6.         return trim(ob_get_clean());
  7.     }
  8.     /**
  1.             'exception' => $exception,
  2.             'exceptionMessage' => $exceptionMessage,
  3.             'statusText' => $statusText,
  4.             'statusCode' => $statusCode,
  5.             'logger' => $this->logger instanceof DebugLoggerInterface $this->logger null,
  6.             'currentContent' => \is_string($this->outputBuffer) ? $this->outputBuffer : ($this->outputBuffer)(),
  7.         ]);
  8.     }
  9.     private function formatArgs(array $args): string
  10.     {
  1.             $headers['X-Debug-Exception-File'] = rawurlencode($exception->getFile()).':'.$exception->getLine();
  2.         }
  3.         $exception FlattenException::createFromThrowable($exceptionnull$headers);
  4.         return $exception->setAsString($this->renderException($exception));
  5.     }
  6.     /**
  7.      * Gets the HTML content associated with the given exception.
  8.      */
  1.     /**
  2.      * {@inheritdoc}
  3.      */
  4.     public function render(\Throwable $exception): FlattenException
  5.     {
  6.         $exception $this->fallbackErrorRenderer->render($exception);
  7.         $debug \is_bool($this->debug) ? $this->debug : ($this->debug)($exception);
  8.         if ($debug || !$template $this->findTemplate($exception->getStatusCode())) {
  9.             return $exception;
  10.         }
  1.                 'exception' => $exception,
  2.                 'debug' => $debug,
  3.             ]))
  4.             ->setHeaders($flattenException->getHeaders() + $headers);
  5.         } catch (NotEncodableValueException $e) {
  6.             return $this->fallbackErrorRenderer->render($exception);
  7.         }
  8.     }
  9.     public static function getPreferredFormat(RequestStack $requestStack): \Closure
  10.     {
  1.         $this->errorRenderer $errorRenderer;
  2.     }
  3.     public function __invoke(\Throwable $exception): Response
  4.     {
  5.         $exception $this->errorRenderer->render($exception);
  6.         return new Response($exception->getAsString(), $exception->getStatusCode(), $exception->getHeaders());
  7.     }
  8.     public function preview(Request $requestint $code): Response
  1.         $this->dispatcher->dispatch($eventKernelEvents::CONTROLLER_ARGUMENTS);
  2.         $controller $event->getController();
  3.         $arguments $event->getArguments();
  4.         // call controller
  5.         $response $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new ViewEvent($this$request$type$response);
  9.             $this->dispatcher->dispatch($eventKernelEvents::VIEW);
  1.     public function handle(Request $requestint $type HttpKernelInterface::MAIN_REQUESTbool $catch true): Response
  2.     {
  3.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  4.         try {
  5.             return $this->handleRaw($request$type);
  6.         } catch (\Exception $e) {
  7.             if ($e instanceof RequestExceptionInterface) {
  8.                 $e = new BadRequestHttpException($e->getMessage(), $e);
  9.             }
  10.             if (false === $catch) {
  1.         $throwable $event->getThrowable();
  2.         $request $this->duplicateRequest($throwable$event->getRequest());
  3.         try {
  4.             $response $event->getKernel()->handle($requestHttpKernelInterface::SUB_REQUESTfalse);
  5.         } catch (\Exception $e) {
  6.             $f FlattenException::createFromThrowable($e);
  7.             $this->logException($esprintf('Exception thrown when handling an exception (%s: %s at %s line %s)'$f->getClass(), $f->getMessage(), $e->getFile(), $e->getLine()));
  1.         $this->called true;
  2.         $this->priority $dispatcher->getListenerPriority($eventName$this->listener);
  3.         $e $this->stopwatch->start($this->name'event_listener');
  4.         ($this->optimizedListener ?? $this->listener)($event$eventName$dispatcher);
  5.         if ($e->isStarted()) {
  6.             $e->stop();
  7.         }
  1.         foreach ($listeners as $listener) {
  2.             if ($stoppable && $event->isPropagationStopped()) {
  3.                 break;
  4.             }
  5.             $listener($event$eventName$this);
  6.         }
  7.     }
  8.     /**
  9.      * Sorts the internal list of listeners for the given event by priority.
  1.         } else {
  2.             $listeners $this->getListeners($eventName);
  3.         }
  4.         if ($listeners) {
  5.             $this->callListeners($listeners$eventName$event);
  6.         }
  7.         return $event;
  8.     }
  1.         try {
  2.             $this->beforeDispatch($eventName$event);
  3.             try {
  4.                 $e $this->stopwatch->start($eventName'section');
  5.                 try {
  6.                     $this->dispatcher->dispatch($event$eventName);
  7.                 } finally {
  8.                     if ($e->isStarted()) {
  9.                         $e->stop();
  10.                     }
  11.                 }
  1.      * @throws \Exception
  2.      */
  3.     private function handleThrowable(\Throwable $eRequest $requestint $type): Response
  4.     {
  5.         $event = new ExceptionEvent($this$request$type$e);
  6.         $this->dispatcher->dispatch($eventKernelEvents::EXCEPTION);
  7.         // a listener might have replaced the exception
  8.         $e $event->getThrowable();
  9.         if (!$event->hasResponse()) {
  1.     {
  2.         if (!$request $request ?: $this->requestStack->getMainRequest()) {
  3.             throw $exception;
  4.         }
  5.         $response $this->handleThrowable($exception$requestself::MAIN_REQUEST);
  6.         $response->sendHeaders();
  7.         $response->sendContent();
  8.         $this->terminate($request$response);
  1.                         if ($hasRun) {
  2.                             throw $e;
  3.                         }
  4.                         $hasRun true;
  5.                         $kernel->terminateWithException($e$request);
  6.                     };
  7.                 }
  8.             } elseif ($event instanceof ConsoleEvent && $app $event->getCommand()->getApplication()) {
  9.                 $output $event->getOutput();
  10.                 if ($output instanceof ConsoleOutputInterface) {
in /var/www/clients/client16/web43/web/nylonbor/vendor/symfony/error-handler/ErrorHandler.php :: Symfony\Component\HttpKernel\EventListener\{closure} (line 541)
  1.             $this->exceptionHandler null;
  2.         }
  3.         try {
  4.             if (null !== $exceptionHandler) {
  5.                 return $exceptionHandler($exception);
  6.             }
  7.             $handlerException $handlerException ?: $exception;
  8.         } catch (\Throwable $handlerException) {
  9.         }
  10.         if ($exception === $handlerException && null === $this->exceptionHandler) {
ErrorHandler->handleException()

ErrorException

Warning: is_file(): open_basedir restriction in effect. File(/web/nylonbor/templates/front/homepage/index-animation.html.twig) is not within the allowed path(s): (/var/www/clients/client16/web43/web:/var/www/clients/client16/web43/private:/var/www/clients/client16/web43/tmp:/var/www/nylonbor.pl/web:/srv/www/nylonbor.pl/web:/usr/share/php5:/usr/share/php:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin)

  1.      * @param int    $line       The selected line number
  2.      * @param int    $srcContext The number of displayed lines around or -1 for the whole file
  3.      */
  4.     private function fileExcerpt(string $fileint $lineint $srcContext 3): string
  5.     {
  6.         if (is_file($file) && is_readable($file)) {
  7.             // highlight_file could throw warnings
  8.             // see https://bugs.php.net/25725
  9.             $code = @highlight_file($filetrue);
  10.             // remove main code/span tags
  11.             $code preg_replace('#^<code.*?>\s*<span.*?>(.*)</span>\s*</code>#s''\\1'$code);
  1.         </span>
  2.     <?php ?>
  3. </div>
  4. <?php if ($trace['file']) { ?>
  5.     <div id="trace-html-<?= $prefix.'-'.$i?>" class="trace-code sf-toggle-content">
  6.         <?= strtr($this->fileExcerpt($trace['file'], $trace['line'], 5), [
  7.             'var(--highlight-string)' => 'var(--highlight-string)',
  8.             'var(--highlight-keyword)' => 'var(--highlight-keyword)',
  9.             'var(--highlight-default)' => 'var(--highlight-default)',
  10.             'var(--highlight-comment)' => 'var(--highlight-comment)',
  11.         ]); ?>
  1.     private function include(string $name, array $context = []): string
  2.     {
  3.         extract($context\EXTR_SKIP);
  4.         ob_start();
  5.         include is_file(\dirname(__DIR__).'/Resources/'.$name) ? \dirname(__DIR__).'/Resources/'.$name $name;
  6.         return trim(ob_get_clean());
  7.     }
  8.     /**
  1.             <div class="trace-line <?= $isVendorTrace 'trace-from-vendor' ''?>">
  2.                 <?= $this->include('views/trace.html.php', [
  3.                     'prefix' => $index,
  4.                     'i' => $i,
  5.                     'trace' => $trace,
  6.                     'style' => $isVendorTrace 'compact' : ($displayCodeSnippet 'expanded' ''),
  7.                 ]); ?>
  8.             </div>
  9.             <?php
  10.         ?>
  11.         </div>
  1.     private function include(string $name, array $context = []): string
  2.     {
  3.         extract($context\EXTR_SKIP);
  4.         ob_start();
  5.         include is_file(\dirname(__DIR__).'/Resources/'.$name) ? \dirname(__DIR__).'/Resources/'.$name $name;
  6.         return trim(ob_get_clean());
  7.     }
  8.     /**
  1.                 <?php
  2.                 foreach ($exceptionAsArray as $i => $e) {
  3.                     echo $this->include('views/traces.html.php', [
  4.                         'exception' => $e,
  5.                         'index' => $i 1,
  6.                         'expand' => in_array($i$exceptionWithUserCodetrue) || ([] === $exceptionWithUserCode && === $i),
  7.                     ]);
  8.                 }
  9.                 ?>
  10.             </div>
  11.         </div>
  1.     private function include(string $name, array $context = []): string
  2.     {
  3.         extract($context\EXTR_SKIP);
  4.         ob_start();
  5.         include is_file(\dirname(__DIR__).'/Resources/'.$name) ? \dirname(__DIR__).'/Resources/'.$name $name;
  6.         return trim(ob_get_clean());
  7.     }
  8.     /**
  1.                     </div>
  2.                 </div>
  3.             </header>
  4.         <?php ?>
  5.         <?= $this->include('views/exception.html.php'$context); ?>
  6.         <script>
  7.             <?= $this->include('assets/js/exception.js'); ?>
  8.         </script>
  9.     </body>
  1.     private function include(string $name, array $context = []): string
  2.     {
  3.         extract($context\EXTR_SKIP);
  4.         ob_start();
  5.         include is_file(\dirname(__DIR__).'/Resources/'.$name) ? \dirname(__DIR__).'/Resources/'.$name $name;
  6.         return trim(ob_get_clean());
  7.     }
  8.     /**
  1.             'exception' => $exception,
  2.             'exceptionMessage' => $exceptionMessage,
  3.             'statusText' => $statusText,
  4.             'statusCode' => $statusCode,
  5.             'logger' => $this->logger instanceof DebugLoggerInterface $this->logger null,
  6.             'currentContent' => \is_string($this->outputBuffer) ? $this->outputBuffer : ($this->outputBuffer)(),
  7.         ]);
  8.     }
  9.     private function formatArgs(array $args): string
  10.     {
  1.             $headers['X-Debug-Exception-File'] = rawurlencode($exception->getFile()).':'.$exception->getLine();
  2.         }
  3.         $exception FlattenException::createFromThrowable($exceptionnull$headers);
  4.         return $exception->setAsString($this->renderException($exception));
  5.     }
  6.     /**
  7.      * Gets the HTML content associated with the given exception.
  8.      */
  1.     /**
  2.      * {@inheritdoc}
  3.      */
  4.     public function render(\Throwable $exception): FlattenException
  5.     {
  6.         $exception $this->fallbackErrorRenderer->render($exception);
  7.         $debug \is_bool($this->debug) ? $this->debug : ($this->debug)($exception);
  8.         if ($debug || !$template $this->findTemplate($exception->getStatusCode())) {
  9.             return $exception;
  10.         }
  1.                 'exception' => $exception,
  2.                 'debug' => $debug,
  3.             ]))
  4.             ->setHeaders($flattenException->getHeaders() + $headers);
  5.         } catch (NotEncodableValueException $e) {
  6.             return $this->fallbackErrorRenderer->render($exception);
  7.         }
  8.     }
  9.     public static function getPreferredFormat(RequestStack $requestStack): \Closure
  10.     {
  1.         $this->errorRenderer $errorRenderer;
  2.     }
  3.     public function __invoke(\Throwable $exception): Response
  4.     {
  5.         $exception $this->errorRenderer->render($exception);
  6.         return new Response($exception->getAsString(), $exception->getStatusCode(), $exception->getHeaders());
  7.     }
  8.     public function preview(Request $requestint $code): Response
  1.         $this->dispatcher->dispatch($eventKernelEvents::CONTROLLER_ARGUMENTS);
  2.         $controller $event->getController();
  3.         $arguments $event->getArguments();
  4.         // call controller
  5.         $response $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new ViewEvent($this$request$type$response);
  9.             $this->dispatcher->dispatch($eventKernelEvents::VIEW);
  1.     public function handle(Request $requestint $type HttpKernelInterface::MAIN_REQUESTbool $catch true): Response
  2.     {
  3.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  4.         try {
  5.             return $this->handleRaw($request$type);
  6.         } catch (\Exception $e) {
  7.             if ($e instanceof RequestExceptionInterface) {
  8.                 $e = new BadRequestHttpException($e->getMessage(), $e);
  9.             }
  10.             if (false === $catch) {
  1.         $throwable $event->getThrowable();
  2.         $request $this->duplicateRequest($throwable$event->getRequest());
  3.         try {
  4.             $response $event->getKernel()->handle($requestHttpKernelInterface::SUB_REQUESTfalse);
  5.         } catch (\Exception $e) {
  6.             $f FlattenException::createFromThrowable($e);
  7.             $this->logException($esprintf('Exception thrown when handling an exception (%s: %s at %s line %s)'$f->getClass(), $f->getMessage(), $e->getFile(), $e->getLine()));
  1.         $this->called true;
  2.         $this->priority $dispatcher->getListenerPriority($eventName$this->listener);
  3.         $e $this->stopwatch->start($this->name'event_listener');
  4.         ($this->optimizedListener ?? $this->listener)($event$eventName$dispatcher);
  5.         if ($e->isStarted()) {
  6.             $e->stop();
  7.         }
  1.         foreach ($listeners as $listener) {
  2.             if ($stoppable && $event->isPropagationStopped()) {
  3.                 break;
  4.             }
  5.             $listener($event$eventName$this);
  6.         }
  7.     }
  8.     /**
  9.      * Sorts the internal list of listeners for the given event by priority.
  1.         } else {
  2.             $listeners $this->getListeners($eventName);
  3.         }
  4.         if ($listeners) {
  5.             $this->callListeners($listeners$eventName$event);
  6.         }
  7.         return $event;
  8.     }
  1.         try {
  2.             $this->beforeDispatch($eventName$event);
  3.             try {
  4.                 $e $this->stopwatch->start($eventName'section');
  5.                 try {
  6.                     $this->dispatcher->dispatch($event$eventName);
  7.                 } finally {
  8.                     if ($e->isStarted()) {
  9.                         $e->stop();
  10.                     }
  11.                 }
  1.      * @throws \Exception
  2.      */
  3.     private function handleThrowable(\Throwable $eRequest $requestint $type): Response
  4.     {
  5.         $event = new ExceptionEvent($this$request$type$e);
  6.         $this->dispatcher->dispatch($eventKernelEvents::EXCEPTION);
  7.         // a listener might have replaced the exception
  8.         $e $event->getThrowable();
  9.         if (!$event->hasResponse()) {
  1.                 $this->finishRequest($request$type);
  2.                 throw $e;
  3.             }
  4.             return $this->handleThrowable($e$request$type);
  5.         }
  6.     }
  7.     /**
  8.      * {@inheritdoc}
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request$type$catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
  1.         $this->request $request;
  2.     }
  3.     public function run(): int
  4.     {
  5.         $response $this->kernel->handle($this->request);
  6.         $response->send();
  7.         if ($this->kernel instanceof TerminableInterface) {
  8.             $this->kernel->terminate($this->request$response);
  9.         }
  1. $app $app(...$args);
  2. exit(
  3.     $runtime
  4.         ->getRunner($app)
  5.         ->run()
  6. );
require_once('/var/www/clients/client16/web43/web/nylonbor/vendor/autoload_runtime.php') in /var/www/clients/client16/web43/web/nylonbor/public/index.php (line 5)
  1. <?php
  2. use App\Kernel;
  3. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  4. return function (array $context) {
  5.     return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  6. };

Twig\Error\ RuntimeError

Impossible to access an attribute ("imageUrl") on a null variable.


( ! ) Fatal error: Uncaught ErrorException: Warning: is_file(): open_basedir restriction in effect. File(/web/nylonbor/templates/front/homepage/index-animation.html.twig) is not within the allowed path(s): (/var/www/clients/client16/web43/web:/var/www/clients/client16/web43/private:/var/www/clients/client16/web43/tmp:/var/www/nylonbor.pl/web:/srv/www/nylonbor.pl/web:/usr/share/php5:/usr/share/php:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin) in /var/www/clients/client16/web43/web/nylonbor/vendor/symfony/error-handler/ErrorRenderer/HtmlErrorRenderer.php on line 251
( ! ) ErrorException: Warning: is_file(): open_basedir restriction in effect. File(/web/nylonbor/templates/front/homepage/index-animation.html.twig) is not within the allowed path(s): (/var/www/clients/client16/web43/web:/var/www/clients/client16/web43/private:/var/www/clients/client16/web43/tmp:/var/www/nylonbor.pl/web:/srv/www/nylonbor.pl/web:/usr/share/php5:/usr/share/php:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin) in /var/www/clients/client16/web43/web/nylonbor/vendor/symfony/error-handler/ErrorRenderer/HtmlErrorRenderer.php on line 251
Call Stack
#TimeMemoryFunctionLocation
10.12964499168Symfony\Component\ErrorHandler\ErrorHandler->handleException( $exception = class ErrorException { protected $message = 'Warning: is_file(): open_basedir restriction in effect. File(/web/nylonbor/templates/front/homepage/index-animation.html.twig) is not within the allowed path(s): (/var/www/clients/client16/web43/web:/var/www/clients/client16/web43/private:/var/www/clients/client16/web43/tmp:/var/www/nylonbor.pl/web:/srv/www/nylonbor.pl/web:/usr/share/php5:/usr/share/php:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin)'; private ${Exception}string = ''; protected $code = 0; protected $file = '/var/www/clients/client16/web43/web/nylonbor/vendor/symfony/error-handler/ErrorRenderer/HtmlErrorRenderer.php'; protected $line = 251; private array ${Exception}trace = [0 => [...], 1 => [...], 2 => [...], 3 => [...], 4 => [...], 5 => [...], 6 => [...], 7 => [...], 8 => [...], 9 => [...], 10 => [...], 11 => [...], 12 => [...], 13 => [...], 14 => [...], 15 => [...], 16 => [...], 17 => [...], 18 => [...], 19 => [...], 20 => [...], 21 => [...], 22 => [...], 23 => [...], 24 => [...], 25 => [...]]; private ?Throwable ${Exception}previous = class Twig\Error\RuntimeError { private ${Twig\Error\Error}lineno = 6; private ${Twig\Error\Error}name = 'front/homepage/index-animation.html.twig'; private ${Twig\Error\Error}rawMessage = 'Impossible to access an attribute ("imageUrl") on a null variable.'; private ${Twig\Error\Error}sourcePath = '/web/nylonbor/templates/front/homepage/index-animation.html.twig'; private ${Twig\Error\Error}sourceCode = '{% extends "front/layout.html.twig" %}\n\n{% block body %}\n\n\n {% if homepageMainBannerSection.imageUrl is empty %}\n <section class="animation-version" id="home">\n <img src="assets/img/animation-bg-2.jpg" alt="" class="animation-bg">\n <div class="animation-overlay"></div>\n <div class="stray-wave"></div>\n <div class="stray-wave stray-wave-2"></div>\n <div class="slider-text">\n <h1>{{ homepageMainBannerSection.header|default()|trim(\'<p>\', \'left\')|trim(\'</p>\', \'r'...; protected $message = 'Impossible to access an attribute ("imageUrl") on a null variable.'; private ${Exception}string = ''; protected $code = 0; protected $file = '/web/nylonbor/templates/front/homepage/index-animation.html.twig'; protected $line = 6; private array ${Exception}trace = [...]; private ?Throwable ${Exception}previous = NULL; public $xdebug_message = '<tr><th align=\'left\' bgcolor=\'#f57900\' colspan="5"><span style=\'background-color: #cc0000; color: #fce94f; font-size: x-large;\'>( ! )</span> Twig\\Error\\RuntimeError: Impossible to access an attribute ("imageUrl") on a null variable. in /web/nylonbor/templates/front/homepage/index-animation.html.twig on line <i>6</i></th></tr>\n<tr><th align=\'left\' bgcolor=\'#e9b96e\' colspan=\'5\'>Call Stack</th></tr>\n<tr><th align=\'center\' bgcolor=\'#eeeeec\'>#</th><th align=\'left\' bgcolor=\'#eeeeec\'>Time</th><th align=\'left\' bgco'... }; protected $severity = 2; public $xdebug_message = '<tr><th align=\'left\' bgcolor=\'#f57900\' colspan="5"><span style=\'background-color: #cc0000; color: #fce94f; font-size: x-large;\'>( ! )</span> ErrorException: Warning: is_file(): open_basedir restriction in effect. File(/web/nylonbor/templates/front/homepage/index-animation.html.twig) is not within the allowed path(s): (/var/www/clients/client16/web43/web:/var/www/clients/client16/web43/private:/var/www/clients/client16/web43/tmp:/var/www/nylonbor.pl/web:/srv/www/nylonbor.pl/web:/usr/share/php5:/usr/share/php'... } ).../ErrorHandler.php:0
20.20724938296Symfony\Component\ErrorHandler\ErrorHandler->handleException( $exception = class ErrorException { protected $message = 'Warning: is_file(): open_basedir restriction in effect. File(/web/nylonbor/templates/front/homepage/index-animation.html.twig) is not within the allowed path(s): (/var/www/clients/client16/web43/web:/var/www/clients/client16/web43/private:/var/www/clients/client16/web43/tmp:/var/www/nylonbor.pl/web:/srv/www/nylonbor.pl/web:/usr/share/php5:/usr/share/php:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin)'; private ${Exception}string = ''; protected $code = 0; protected $file = '/var/www/clients/client16/web43/web/nylonbor/vendor/symfony/error-handler/ErrorRenderer/HtmlErrorRenderer.php'; protected $line = 251; private array ${Exception}trace = [0 => [...], 1 => [...], 2 => [...], 3 => [...], 4 => [...], 5 => [...], 6 => [...], 7 => [...], 8 => [...], 9 => [...], 10 => [...], 11 => [...], 12 => [...], 13 => [...], 14 => [...], 15 => [...], 16 => [...], 17 => [...], 18 => [...], 19 => [...], 20 => [...], 21 => [...], 22 => [...], 23 => [...], 24 => [...]]; private ?Throwable ${Exception}previous = class ErrorException { protected $message = 'Warning: is_file(): open_basedir restriction in effect. File(/web/nylonbor/templates/front/homepage/index-animation.html.twig) is not within the allowed path(s): (/var/www/clients/client16/web43/web:/var/www/clients/client16/web43/private:/var/www/clients/client16/web43/tmp:/var/www/nylonbor.pl/web:/srv/www/nylonbor.pl/web:/usr/share/php5:/usr/share/php:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin)'; private ${Exception}string = ''; protected $code = 0; protected $file = '/var/www/clients/client16/web43/web/nylonbor/vendor/symfony/error-handler/ErrorRenderer/HtmlErrorRenderer.php'; protected $line = 251; private array ${Exception}trace = [...]; private ?Throwable ${Exception}previous = class Twig\Error\RuntimeError { ... }; protected $severity = 2; public $xdebug_message = '<tr><th align=\'left\' bgcolor=\'#f57900\' colspan="5"><span style=\'background-color: #cc0000; color: #fce94f; font-size: x-large;\'>( ! )</span> ErrorException: Warning: is_file(): open_basedir restriction in effect. File(/web/nylonbor/templates/front/homepage/index-animation.html.twig) is not within the allowed path(s): (/var/www/clients/client16/web43/web:/var/www/clients/client16/web43/private:/var/www/clients/client16/web43/tmp:/var/www/nylonbor.pl/web:/srv/www/nylonbor.pl/web:/usr/share/php5:/usr/share/php'... }; protected $severity = 2; public $xdebug_message = '<tr><th align=\'left\' bgcolor=\'#f57900\' colspan="5"><span style=\'background-color: #cc0000; color: #fce94f; font-size: x-large;\'>( ! )</span> ErrorException: Warning: is_file(): open_basedir restriction in effect. File(/web/nylonbor/templates/front/homepage/index-animation.html.twig) is not within the allowed path(s): (/var/www/clients/client16/web43/web:/var/www/clients/client16/web43/private:/var/www/clients/client16/web43/tmp:/var/www/nylonbor.pl/web:/srv/www/nylonbor.pl/web:/usr/share/php5:/usr/share/php'... } ).../ErrorHandler.php:557
30.33915379448Symfony\Component\ErrorHandler\ErrorHandler->handleException( $exception = class ErrorException { protected $message = 'Warning: is_file(): open_basedir restriction in effect. File(/web/nylonbor/templates/front/homepage/index-animation.html.twig) is not within the allowed path(s): (/var/www/clients/client16/web43/web:/var/www/clients/client16/web43/private:/var/www/clients/client16/web43/tmp:/var/www/nylonbor.pl/web:/srv/www/nylonbor.pl/web:/usr/share/php5:/usr/share/php:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin)'; private ${Exception}string = ''; protected $code = 0; protected $file = '/var/www/clients/client16/web43/web/nylonbor/vendor/symfony/error-handler/ErrorRenderer/HtmlErrorRenderer.php'; protected $line = 251; private array ${Exception}trace = [0 => [...], 1 => [...], 2 => [...], 3 => [...], 4 => [...], 5 => [...], 6 => [...], 7 => [...], 8 => [...], 9 => [...], 10 => [...], 11 => [...], 12 => [...], 13 => [...]]; private ?Throwable ${Exception}previous = NULL; protected $severity = 2; public $xdebug_message = '<tr><th align=\'left\' bgcolor=\'#f57900\' colspan="5"><span style=\'background-color: #cc0000; color: #fce94f; font-size: x-large;\'>( ! )</span> ErrorException: Warning: is_file(): open_basedir restriction in effect. File(/web/nylonbor/templates/front/homepage/index-animation.html.twig) is not within the allowed path(s): (/var/www/clients/client16/web43/web:/var/www/clients/client16/web43/private:/var/www/clients/client16/web43/tmp:/var/www/nylonbor.pl/web:/srv/www/nylonbor.pl/web:/usr/share/php5:/usr/share/php'... } ).../ErrorHandler.php:557