Symfony Exception

RuntimeError

HTTP 500 Internal Server Error

Variable "page" does not exist.

Exception

Twig\Error\ RuntimeError

Warning: is_file(): open_basedir restriction in effect. File(/home/pkdevelo/domains/pkdevelop.pl/public_html/templates/Front/index.html.twig) is not within the allowed path(s): (/home/platne/serwer242834/public_html/pkdevelop.pl/:/home/platne/serwer242834/tmp/:/home/virtuals/pkdevelop.pl/:/usr/local/php56-fpm/lib/php/:/tmp:/home/tmp:/var/lib/php5) (500 Internal Server Error)

Symfony Exception

Warning: is_file(): open_basedir restriction in effect. File(/home/pkdevelo/domains/pkdevelop.pl/public_html/templates/Front/index.html.twig) is not within the allowed path(s): (/home/platne/serwer242834/public_html/pkdevelop.pl/:/home/platne/serwer242834/tmp/:/home/virtuals/pkdevelop.pl/:/usr/local/php56-fpm/lib/php/:/tmp:/home/tmp:/var/lib/php5)

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.             if (\PHP_VERSION_ID >= 80300) {
  11.                 // remove main pre/code tags
  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.     /**
  10.      * Formats an array as a string.
  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.             $flattenException->setAsString($this->serializer->serialize($flattenException$format, [
  2.                 'exception' => $exception,
  3.                 'debug' => $debug,
  4.             ]));
  5.         } catch (NotEncodableValueException $e) {
  6.             $flattenException $this->fallbackErrorRenderer->render($exception);
  7.         }
  8.         return $flattenException->setHeaders($flattenException->getHeaders() + $headers);
  9.     }
  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.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  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->priority $dispatcher->getListenerPriority($eventName$this->listener);
  2.         $e $this->stopwatch->start($this->name'event_listener');
  3.         try {
  4.             ($this->optimizedListener ?? $this->listener)($event$eventName$dispatcher);
  5.         } finally {
  6.             if ($e->isStarted()) {
  7.                 $e->stop();
  8.             }
  9.         }
  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 86)
  1.                 $this->finishRequest($request$type);
  2.                 throw $e;
  3.             }
  4.             return $this->handleThrowable($e$request$type);
  5.         } finally {
  6.             $this->requestStack->pop();
  7.         }
  8.     }
  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 35)
  1. $app $app(...$args);
  2. exit(
  3.     $runtime
  4.         ->getRunner($app)
  5.         ->run()
  6. );
require_once('/home/platne/serwer242834/public_html/pkdevelop.pl/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

Variable "page" does not exist.

Warning: is_file(): open_basedir restriction in effect. File(/home/pkdevelo/domains/pkdevelop.pl/public_html/templates/Front/index.html.twig) is not within the allowed path(s): (/home/platne/serwer242834/public_html/pkdevelop.pl/:/home/platne/serwer242834/tmp/:/home/virtuals/pkdevelop.pl/:/usr/local/php56-fpm/lib/php/:/tmp:/home/tmp:/var/lib/php5) (500 Internal Server Error)

Symfony Exception

Warning: is_file(): open_basedir restriction in effect. File(/home/pkdevelo/domains/pkdevelop.pl/public_html/templates/Front/index.html.twig) is not within the allowed path(s): (/home/platne/serwer242834/public_html/pkdevelop.pl/:/home/platne/serwer242834/tmp/:/home/virtuals/pkdevelop.pl/:/usr/local/php56-fpm/lib/php/:/tmp:/home/tmp:/var/lib/php5)

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.             if (\PHP_VERSION_ID >= 80300) {
  11.                 // remove main pre/code tags
  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.     /**
  10.      * Formats an array as a string.
  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.             $flattenException->setAsString($this->serializer->serialize($flattenException$format, [
  2.                 'exception' => $exception,
  3.                 'debug' => $debug,
  4.             ]));
  5.         } catch (NotEncodableValueException $e) {
  6.             $flattenException $this->fallbackErrorRenderer->render($exception);
  7.         }
  8.         return $flattenException->setHeaders($flattenException->getHeaders() + $headers);
  9.     }
  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.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  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->priority $dispatcher->getListenerPriority($eventName$this->listener);
  2.         $e $this->stopwatch->start($this->name'event_listener');
  3.         try {
  4.             ($this->optimizedListener ?? $this->listener)($event$eventName$dispatcher);
  5.         } finally {
  6.             if ($e->isStarted()) {
  7.                 $e->stop();
  8.             }
  9.         }
  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.         if ($pop $request !== $this->requestStack->getMainRequest()) {
  2.             $this->requestStack->push($request);
  3.         }
  4.         try {
  5.             $response $this->handleThrowable($exception$requestself::MAIN_REQUEST);
  6.         } finally {
  7.             if ($pop) {
  8.                 $this->requestStack->pop();
  9.             }
  10.         }
  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 /home/platne/serwer242834/public_html/pkdevelop.pl/vendor/symfony/error-handler/ErrorHandler.php :: Symfony\Component\HttpKernel\EventListener\{closure} (line 607)
  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(/home/pkdevelo/domains/pkdevelop.pl/public_html/templates/Front/index.html.twig) is not within the allowed path(s): (/home/platne/serwer242834/public_html/pkdevelop.pl/:/home/platne/serwer242834/tmp/:/home/virtuals/pkdevelop.pl/:/usr/local/php56-fpm/lib/php/:/tmp:/home/tmp:/var/lib/php5)

  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.             if (\PHP_VERSION_ID >= 80300) {
  11.                 // remove main pre/code tags
  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.     /**
  10.      * Formats an array as a string.
  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.             $flattenException->setAsString($this->serializer->serialize($flattenException$format, [
  2.                 'exception' => $exception,
  3.                 'debug' => $debug,
  4.             ]));
  5.         } catch (NotEncodableValueException $e) {
  6.             $flattenException $this->fallbackErrorRenderer->render($exception);
  7.         }
  8.         return $flattenException->setHeaders($flattenException->getHeaders() + $headers);
  9.     }
  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.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  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->priority $dispatcher->getListenerPriority($eventName$this->listener);
  2.         $e $this->stopwatch->start($this->name'event_listener');
  3.         try {
  4.             ($this->optimizedListener ?? $this->listener)($event$eventName$dispatcher);
  5.         } finally {
  6.             if ($e->isStarted()) {
  7.                 $e->stop();
  8.             }
  9.         }
  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.         } finally {
  6.             $this->requestStack->pop();
  7.         }
  8.     }
  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('/home/platne/serwer242834/public_html/pkdevelop.pl/vendor/autoload_runtime.php') in /home/platne/serwer242834/public_html/pkdevelop.pl/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

Variable "page" does not exist.


Fatal error: Uncaught ErrorException: Warning: is_file(): open_basedir restriction in effect. File(/home/pkdevelo/domains/pkdevelop.pl/public_html/templates/Front/index.html.twig) is not within the allowed path(s): (/home/platne/serwer242834/public_html/pkdevelop.pl/:/home/platne/serwer242834/tmp/:/home/virtuals/pkdevelop.pl/:/usr/local/php56-fpm/lib/php/:/tmp:/home/tmp:/var/lib/php5) in /home/platne/serwer242834/public_html/pkdevelop.pl/vendor/symfony/error-handler/ErrorRenderer/HtmlErrorRenderer.php:268 Stack trace: #0 /home/platne/serwer242834/public_html/pkdevelop.pl/vendor/symfony/error-handler/Resources/views/trace.html.php(36): Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer->fileExcerpt() #1 /home/platne/serwer242834/public_html/pkdevelop.pl/vendor/symfony/error-handler/ErrorRenderer/HtmlErrorRenderer.php(365): include('/home/platne/se...') #2 /home/platne/serwer242834/public_html/pkdevelop.pl/vendor/symfony/error-handler/Resources/views/traces.html.php(44): Symfony\Component\ErrorHandler\ErrorRende in /home/platne/serwer242834/public_html/pkdevelop.pl/vendor/symfony/error-handler/ErrorRenderer/HtmlErrorRenderer.php on line 268