http://fpd.in.openform.pl/eksponat/16-3

Exceptions

Unable to find template "@openform_front_templates/RelictPack/_templates/template-o16.html.twig" (looked into: /var/www/php81/fpd.in.openform.pl/src/Package/Openform/Front/Templates).

  • Exception
  • Logs
  • Stack Trace

Twig\Error\ LoaderError

  1.                         {% endif %}
  2.                     {% endif%}
  3.                 {% endif %}
  4.     {% endfor %}
  5.         {% elseif entity.relictArrange %}
  6.             {{ include('@openform_front_templates/RelictPack/_templates/template-' ~ entity.relictArrange ~ '.html.twig', {entity: entity}) }}
  7.         {% endif %}
  8.         
  9.         
  10.             {# <div class="links-block__items"> #}
  11.                 
  1.         return new Source(file_get_contents($path), $name$path);
  2.     }
  3.     public function getCacheKey(string $name): string
  4.     {
  5.         if (null === $path $this->findTemplate($name)) {
  6.             return '';
  7.         }
  8.         $len \strlen($this->rootPath);
  9.         if (=== strncmp($this->rootPath$path$len)) {
  10.             return substr($path$len);
in vendor/twig/twig/src/Environment.php -> getCacheKey (line 264)
  1.      *
  2.      * @internal
  3.      */
  4.     public function getTemplateClass(string $nameint $index null): string
  5.     {
  6.         $key $this->getLoader()->getCacheKey($name).$this->optionsHash;
  7.         return $this->templateClassPrefix.hash(\PHP_VERSION_ID 80100 'sha256' 'xxh128'$key).(null === $index '' '___'.$index);
  8.     }
  9.     /**
in vendor/twig/twig/src/Environment.php -> getTemplateClass (line 312)
  1.     {
  2.         if ($name instanceof TemplateWrapper) {
  3.             return $name;
  4.         }
  5.         return new TemplateWrapper($this$this->loadTemplate($this->getTemplateClass($name), $name));
  6.     }
  7.     /**
  8.      * Loads a template internal representation.
  9.      *
  1.      * @throws SyntaxError When an error occurred during compilation
  2.      */
  3.     public function resolveTemplate($names): TemplateWrapper
  4.     {
  5.         if (!\is_array($names)) {
  6.             return $this->load($names);
  7.         }
  8.         $count \count($names);
  9.         foreach ($names as $name) {
  10.             if ($name instanceof Template) {
in vendor/twig/twig/src/Extension/CoreExtension.php -> resolveTemplate (line 1342)
  1.     }
  2.     try {
  3.         $loaded null;
  4.         try {
  5.             $loaded $env->resolveTemplate($template);
  6.         } catch (LoaderError $e) {
  7.             if (!$ignoreMissing) {
  8.                 throw $e;
  9.             }
  10.         }
  1.                 // line 37
  2.                 echo "        ";
  3.             } elseif (twig_get_attribute($this->env$this->source, (isset($context["entity"]) || array_key_exists("entity"$context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.'37$this->source); })()), "relictArrange", [], "any"falsefalsefalse37)) {
  4.                 // line 38
  5.                 echo "            ";
  6.                 echo twig_include($this->env$context, (("@openform_front_templates/RelictPack/_templates/template-" twig_get_attribute($this->env$this->source, (isset($context["entity"]) || array_key_exists("entity"$context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.'38$this->source); })()), "relictArrange", [], "any"falsefalsefalse38)) . ".html.twig"), ["entity" => (isset($context["entity"]) || array_key_exists("entity"$context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.'38$this->source); })())]);
  7.                 echo "
  8.         ";
  9.             }
  10.             // line 40
  11.             echo "        
in vendor/twig/twig/src/Template.php -> block_content (line 171)
  1.             throw new \LogicException('A block must be a method on a \Twig\Template instance.');
  2.         }
  3.         if (null !== $template) {
  4.             try {
  5.                 $template->$block($context$blocks);
  6.             } catch (Error $e) {
  7.                 if (!$e->getSourceContext()) {
  8.                     $e->setSourceContext($template->getSourceContext());
  9.                 }
  1.             echo twig_escape_filter($this->env, ((((twig_get_attribute($this->env$this->source, ($context["entity"] ?? null), "background", [], "any"truetruefalse58) && (twig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["entity"]) || array_key_exists("entity"$context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.'58$this->source); })()), "background", [], "any"falsefalsefalse58)) > 0)) && twig_get_attribute($this->env$this->source, (isset($context["entity"]) || array_key_exists("entity"$context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.'58$this->source); })()), "background", [], "any"falsefalsefalse58))) ? (twig_get_attribute($this->env$this->source, (isset($context["entity"]) || array_key_exists("entity"$context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.'58$this->source); })()), "background", [], "any"falsefalsefalse58)) : ((((twig_get_attribute($this->env$this->source, ($context["rootParent"] ?? null), "background", [], "any"truetruefalse58) && (twig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["rootParent"]) || array_key_exists("rootParent"$context) ? $context["rootParent"] : (function () { throw new RuntimeError('Variable "rootParent" does not exist.'58$this->source); })()), "background", [], "any"falsefalsefalse58)) > 0))) ? (twig_get_attribute($this->env$this->source, (isset($context["rootParent"]) || array_key_exists("rootParent"$context) ? $context["rootParent"] : (function () { throw new RuntimeError('Variable "rootParent" does not exist.'58$this->source); })()), "background", [], "any"falsefalsefalse58)) : ("")))), "html"nulltrue);
  2.         }
  3.         echo "\" >
  4.                 ";
  5.         // line 59
  6.         $this->displayBlock('content'$context$blocks);
  7.         // line 60
  8.         echo "            </main>
  9.             
  10.             ";
  11.         // line 62
in vendor/twig/twig/src/Template.php -> doDisplay (line 394)
  1.     }
  2.     protected function displayWithErrorHandling(array $context, array $blocks = [])
  3.     {
  4.         try {
  5.             $this->doDisplay($context$blocks);
  6.         } catch (Error $e) {
  7.             if (!$e->getSourceContext()) {
  8.                 $e->setSourceContext($this->getSourceContext());
  9.             }
in vendor/twig/twig/src/Template.php -> displayWithErrorHandling (line 367)
  1.         return $this->blocks;
  2.     }
  3.     public function display(array $context, array $blocks = [])
  4.     {
  5.         $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks$blocks));
  6.     }
  7.     public function render(array $context)
  8.     {
  9.         $level ob_get_level();
  1.         $context["metaKeywords"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["entity"]) || array_key_exists("entity"$context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.'8$this->source); })()), "Translation", [], "any"falsefalsefalse8), twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'8$this->source); })()), "request", [], "any"falsefalsefalse8), "locale", [], "any"falsefalsefalse8), [], "array"falsefalsefalse8), "metaKeywords", [], "any"falsefalsefalse8);
  2.         // line 9
  3.         $context["pageImage"] = ((twig_get_attribute($this->env$this->source, (isset($context["entity"]) || array_key_exists("entity"$context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.'9$this->source); })()), "imagePath", [], "any"falsefalsefalse9)) ? (twig_get_attribute($this->env$this->source, (isset($context["openform_front_util"]) || array_key_exists("openform_front_util"$context) ? $context["openform_front_util"] : (function () { throw new RuntimeError('Variable "openform_front_util" does not exist.'9$this->source); })()), "getImagePathByType", [twig_get_attribute($this->env$this->source, (isset($context["entity"]) || array_key_exists("entity"$context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.'9$this->source); })()), "Thumb", [], "any"falsefalsefalse9), "list"], "method"falsefalsefalse9)) : (""));
  4.         // line 1
  5.         $this->parent $this->loadTemplate("@openform_front_templates/base.html.twig""@openform_front_templates/RelictPack/relict_item.html.twig"1);
  6.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  7.         
  8.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  9.         
  10.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
in vendor/twig/twig/src/Template.php -> doDisplay (line 394)
  1.     }
  2.     protected function displayWithErrorHandling(array $context, array $blocks = [])
  3.     {
  4.         try {
  5.             $this->doDisplay($context$blocks);
  6.         } catch (Error $e) {
  7.             if (!$e->getSourceContext()) {
  8.                 $e->setSourceContext($this->getSourceContext());
  9.             }
in vendor/twig/twig/src/Template.php -> displayWithErrorHandling (line 367)
  1.         return $this->blocks;
  2.     }
  3.     public function display(array $context, array $blocks = [])
  4.     {
  5.         $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks$blocks));
  6.     }
  7.     public function render(array $context)
  8.     {
  9.         $level ob_get_level();
in vendor/twig/twig/src/Template.php -> display (line 379)
  1.             ob_start();
  2.         } else {
  3.             ob_start(function () { return ''; });
  4.         }
  5.         try {
  6.             $this->display($context);
  7.         } catch (\Throwable $e) {
  8.             while (ob_get_level() > $level) {
  9.                 ob_end_clean();
  10.             }
  1.     public function render(array $context = []): string
  2.     {
  3.         // using func_get_args() allows to not expose the blocks argument
  4.         // as it should only be used by internal code
  5.         return $this->template->render($context\func_get_args()[1] ?? []);
  6.     }
  7.     public function display(array $context = [])
  8.     {
  9.         // using func_get_args() allows to not expose the blocks argument
  1.      * @throws SyntaxError  When an error occurred during compilation
  2.      * @throws RuntimeError When an error occurred during rendering
  3.      */
  4.     public function render($name, array $context = []): string
  5.     {
  6.         return $this->load($name)->render($context);
  7.     }
  8.     /**
  9.      * Displays a template.
  10.      *
  1.     {
  2.         if (!$this->container->has('twig')) {
  3.             throw new \LogicException('You cannot use the "renderView" method if the Twig Bundle is not available. Try running "composer require symfony/twig-bundle".');
  4.         }
  5.         return $this->container->get('twig')->render($view$parameters);
  6.     }
  7.     /**
  8.      * Renders a view.
  9.      */
  1.     /**
  2.      * Renders a view.
  3.      */
  4.     protected function render(string $view, array $parameters = [], Response $response null): Response
  5.     {
  6.         $content $this->renderView($view$parameters);
  7.         if (null === $response) {
  8.             $response = new Response();
  9.         }
  1.         $request->attributes->set('makSlug'$rootParent->getMakSlug($locale));
  2.                 
  3.         return $this->render('@openform_front_templates/RelictPack/relict_item.html.twig', [
  4.             'entity' => $entity,
  5.             'parentPage' => $entity->getRelictPack(),
  6.             'rootParent' => $rootParent
  7.         ]);
  8.     }
  9. }
in vendor/symfony/http-kernel/HttpKernel.php -> relictItemAction (line 163)
  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.         $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('/var/www/php81/fpd.in.openform.pl/vendor/autoload_runtime.php') in public_html/app.php (line 11)
  1.     
  2. use App\Kernel;
  3. use Symfony\Component\Yaml\Yaml;
  4. use Symfony\Component\HttpFoundation\Request;
  5. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  6. return function (array $context) {
  7.     function _dd ($var) {
  8.         file_put_contents('dump.txt',  str_replace('\/''/'json_encode($varJSON_PRETTY_PRINT JSON_UNESCAPED_UNICODE)) . "\n\n"FILE_APPEND);