Exceptions
Exception
Twig\Error\ RuntimeError
in
templates/front/page/index.html.twig
(line 12)
{% block body %}<div class="overflow-hidden fullheight"><section class="mt-0 first-section"><div class="container">{% if info.title %}<h2 class="section-title-underline">{{ info.title }}</h2>{% else %}<h2 class="section-title-underline">{{ ("footer." ~ title) | trans }}</h2>{% endif %}
in
var/cache/dev/twig/16/1669bb595421ccb3ac56efefd730fa3f.php
twig_get_attribute
(line 96)
<div class=\"overflow-hidden fullheight\"><section class=\"mt-0 first-section\"><div class=\"container\">";// line 12if (twig_get_attribute($this->env, $this->source, (isset($context["info"]) || array_key_exists("info", $context) ? $context["info"] : (function () { throw new RuntimeError('Variable "info" does not exist.', 12, $this->source); })()), "title", [], "any", false, false, false, 12)) {// line 13echo " <h2 class=\"section-title-underline\">";echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["info"]) || array_key_exists("info", $context) ? $context["info"] : (function () { throw new RuntimeError('Variable "info" does not exist.', 13, $this->source); })()), "title", [], "any", false, false, false, 13), "html", null, true);echo "</h2>";
in
vendor/twig/twig/src/Template.php
->
block_body
(line 171)
throw new \LogicException('A block must be a method on a \Twig\Template instance.');}if (null !== $template) {try {$template->$block($context, $blocks);} catch (Error $e) {if (!$e->getSourceContext()) {$e->setSourceContext($template->getSourceContext());}
in
var/cache/dev/twig/55/55669510c38230dfcd6ab33f309c4514.php
->
displayBlock
(line 185)
$this->loadTemplate("front/_partials/_header.html.twig", "front/base.html.twig", 85)->display($context);// line 86echo "";// line 87$this->displayBlock('body', $context, $blocks);// line 88echo "\t ";// line 89$this->loadTemplate("front/_partials/_add-favorite-modal.html.twig", "front/base.html.twig", 89)->display($context);
in
vendor/twig/twig/src/Template.php
->
doDisplay
(line 394)
}protected function displayWithErrorHandling(array $context, array $blocks = []){try {$this->doDisplay($context, $blocks);} catch (Error $e) {if (!$e->getSourceContext()) {$e->setSourceContext($this->getSourceContext());}
in
vendor/twig/twig/src/Template.php
->
displayWithErrorHandling
(line 367)
return $this->blocks;}public function display(array $context, array $blocks = []){$this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));}public function render(array $context){$level = ob_get_level();
in
var/cache/dev/twig/16/1669bb595421ccb3ac56efefd730fa3f.php
->
display
(line 49)
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "front/page/index.html.twig"));$this->parent = $this->loadTemplate("front/base.html.twig", "front/page/index.html.twig", 2);$this->parent->display($context, array_merge($this->blocks, $blocks));$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
in
vendor/twig/twig/src/Template.php
->
doDisplay
(line 394)
}protected function displayWithErrorHandling(array $context, array $blocks = []){try {$this->doDisplay($context, $blocks);} catch (Error $e) {if (!$e->getSourceContext()) {$e->setSourceContext($this->getSourceContext());}
in
vendor/twig/twig/src/Template.php
->
displayWithErrorHandling
(line 367)
return $this->blocks;}public function display(array $context, array $blocks = []){$this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));}public function render(array $context){$level = ob_get_level();
in
vendor/twig/twig/src/Template.php
->
display
(line 379)
ob_start();} else {ob_start(function () { return ''; });}try {$this->display($context);} catch (\Throwable $e) {while (ob_get_level() > $level) {ob_end_clean();}
in
vendor/twig/twig/src/TemplateWrapper.php
->
render
(line 38)
$this->template = $template;}public function render(array $context = []): string{return $this->template->render($context);}public function display(array $context = []){// using func_get_args() allows to not expose the blocks argument
in
vendor/twig/twig/src/Environment.php
->
render
(line 280)
* @throws SyntaxError When an error occurred during compilation* @throws RuntimeError When an error occurred during rendering*/public function render($name, array $context = []): string{return $this->load($name)->render($context);}/*** Displays a template.*
in
vendor/symfony/framework-bundle/Controller/AbstractController.php
->
render
(line 258)
{if (!$this->container->has('twig')) {throw new \LogicException('You cannot use the "renderView" method if the Twig Bundle is not available. Try running "composer require symfony/twig-bundle".');}return $this->container->get('twig')->render($view, $parameters);}/*** Renders a view.*/
in
vendor/symfony/framework-bundle/Controller/AbstractController.php
->
renderView
(line 266)
/*** Renders a view.*/protected function render(string $view, array $parameters = [], ?Response $response = null): Response{$content = $this->renderView($view, $parameters);if (null === $response) {$response = new Response();}
AbstractController->render('front/page/index.html.twig', array('info' => null, 'title' => 'terms_use'))
in
src/Controller/Front/PageController.php
(line 46)
$info = $legalInfoRepository->getLegalByLanguageAndType('en', 'terms_use');}return $this->render('front/page/index.html.twig', ['info' => $info,'title' => 'terms_use']);}#[Route(path: '/privacy-policy', name: 'privacy_policy')]public function privacyPolicy(LegalInfoRepository $legalInfoRepository, Request $request): Response
in
vendor/symfony/http-kernel/HttpKernel.php
->
termsUse
(line 163)
$this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);$controller = $event->getController();$arguments = $event->getArguments();// call controller$response = $controller(...$arguments);// viewif (!$response instanceof Response) {$event = new ViewEvent($this, $request, $type, $response);$this->dispatcher->dispatch($event, KernelEvents::VIEW);
in
vendor/symfony/http-kernel/HttpKernel.php
->
handleRaw
(line 75)
{$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());$this->requestStack->push($request);try {return $this->handleRaw($request, $type);} catch (\Exception $e) {if ($e instanceof RequestExceptionInterface) {$e = new BadRequestHttpException($e->getMessage(), $e);}if (false === $catch) {
in
vendor/symfony/http-kernel/Kernel.php
->
handle
(line 202)
$this->boot();++$this->requestStackSize;$this->resetServices = true;try {return $this->getHttpKernel()->handle($request, $type, $catch);} finally {--$this->requestStackSize;}}
in
vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php
->
handle
(line 35)
$this->request = $request;}public function run(): int{$response = $this->kernel->handle($this->request);$response->send();if ($this->kernel instanceof TerminableInterface) {$this->kernel->terminate($this->request, $response);}
in
vendor/autoload_runtime.php
->
run
(line 35)
$app = $app(...$args);exit($runtime->getRunner($app)->run());
require_once('/var/www/preprod/racket-trip/vendor/autoload_runtime.php')
in
public/index.php
(line 5)
<?phpuse App\Kernel;require_once dirname(__DIR__).'/vendor/autoload_runtime.php';return function (array $context) {return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);};
Logs
| Level | Channel | Message |
|---|---|---|
| INFO 14:00:33 | request |
Matched route "_profiler". {
"route": "_profiler",
"route_parameters": {
"_route": "_profiler",
"_controller": "web_profiler.controller.profiler::panelAction",
"token": "8322e2"
},
"request_uri": "https://racket-trip.eu/_profiler/8322e2?panel=exception",
"method": "GET"
}
|
Stack Trace
|
RuntimeError
|
|---|
Twig\Error\RuntimeError:
Impossible to access an attribute ("title") on a null variable.
at templates/front/page/index.html.twig:12
at twig_get_attribute(object(Environment), object(Source), null, 'title', array(), 'any', false, false, false, 12)
(var/cache/dev/twig/16/1669bb595421ccb3ac56efefd730fa3f.php:96)
at __TwigTemplate_9e2a4dec773f19741c790f5b26bef545->block_body(array('info' => null, 'title' => 'terms_use', 'app' => object(AppVariable), 'locales' => array('fr', 'en', 'es', 'pt', 'it', 'de', 'sv', 'nl'), 'globals' => object(GlobalVariable), 'current_path' => 'terms_use'), array('title' => array(object(__TwigTemplate_9e2a4dec773f19741c790f5b26bef545), 'block_title'), 'seo' => array(object(__TwigTemplate_52a36eda23a03b9586690e966c0412fd), 'block_seo'), 'og' => array(object(__TwigTemplate_52a36eda23a03b9586690e966c0412fd), 'block_og'), 'stylesheets' => array(object(__TwigTemplate_52a36eda23a03b9586690e966c0412fd), 'block_stylesheets'), 'body' => array(object(__TwigTemplate_9e2a4dec773f19741c790f5b26bef545), 'block_body'), 'javascript' => array(object(__TwigTemplate_52a36eda23a03b9586690e966c0412fd), 'block_javascript')))
(vendor/twig/twig/src/Template.php:171)
at Twig\Template->displayBlock('body', array('info' => null, 'title' => 'terms_use', 'app' => object(AppVariable), 'locales' => array('fr', 'en', 'es', 'pt', 'it', 'de', 'sv', 'nl'), 'globals' => object(GlobalVariable), 'current_path' => 'terms_use'), array('title' => array(object(__TwigTemplate_9e2a4dec773f19741c790f5b26bef545), 'block_title'), 'seo' => array(object(__TwigTemplate_52a36eda23a03b9586690e966c0412fd), 'block_seo'), 'og' => array(object(__TwigTemplate_52a36eda23a03b9586690e966c0412fd), 'block_og'), 'stylesheets' => array(object(__TwigTemplate_52a36eda23a03b9586690e966c0412fd), 'block_stylesheets'), 'body' => array(object(__TwigTemplate_9e2a4dec773f19741c790f5b26bef545), 'block_body'), 'javascript' => array(object(__TwigTemplate_52a36eda23a03b9586690e966c0412fd), 'block_javascript')))
(var/cache/dev/twig/55/55669510c38230dfcd6ab33f309c4514.php:185)
at __TwigTemplate_52a36eda23a03b9586690e966c0412fd->doDisplay(array('info' => null, 'title' => 'terms_use', 'app' => object(AppVariable), 'locales' => array('fr', 'en', 'es', 'pt', 'it', 'de', 'sv', 'nl'), 'globals' => object(GlobalVariable), 'current_path' => 'terms_use'), array('title' => array(object(__TwigTemplate_9e2a4dec773f19741c790f5b26bef545), 'block_title'), 'seo' => array(object(__TwigTemplate_52a36eda23a03b9586690e966c0412fd), 'block_seo'), 'og' => array(object(__TwigTemplate_52a36eda23a03b9586690e966c0412fd), 'block_og'), 'stylesheets' => array(object(__TwigTemplate_52a36eda23a03b9586690e966c0412fd), 'block_stylesheets'), 'body' => array(object(__TwigTemplate_9e2a4dec773f19741c790f5b26bef545), 'block_body'), 'javascript' => array(object(__TwigTemplate_52a36eda23a03b9586690e966c0412fd), 'block_javascript')))
(vendor/twig/twig/src/Template.php:394)
at Twig\Template->displayWithErrorHandling(array('info' => null, 'title' => 'terms_use', 'app' => object(AppVariable), 'locales' => array('fr', 'en', 'es', 'pt', 'it', 'de', 'sv', 'nl'), 'globals' => object(GlobalVariable)), array('title' => array(object(__TwigTemplate_9e2a4dec773f19741c790f5b26bef545), 'block_title'), 'seo' => array(object(__TwigTemplate_52a36eda23a03b9586690e966c0412fd), 'block_seo'), 'og' => array(object(__TwigTemplate_52a36eda23a03b9586690e966c0412fd), 'block_og'), 'stylesheets' => array(object(__TwigTemplate_52a36eda23a03b9586690e966c0412fd), 'block_stylesheets'), 'body' => array(object(__TwigTemplate_9e2a4dec773f19741c790f5b26bef545), 'block_body'), 'javascript' => array(object(__TwigTemplate_52a36eda23a03b9586690e966c0412fd), 'block_javascript')))
(vendor/twig/twig/src/Template.php:367)
at Twig\Template->display(array('info' => null, 'title' => 'terms_use', 'app' => object(AppVariable), 'locales' => array('fr', 'en', 'es', 'pt', 'it', 'de', 'sv', 'nl'), 'globals' => object(GlobalVariable)), array('title' => array(object(__TwigTemplate_9e2a4dec773f19741c790f5b26bef545), 'block_title'), 'body' => array(object(__TwigTemplate_9e2a4dec773f19741c790f5b26bef545), 'block_body')))
(var/cache/dev/twig/16/1669bb595421ccb3ac56efefd730fa3f.php:49)
at __TwigTemplate_9e2a4dec773f19741c790f5b26bef545->doDisplay(array('info' => null, 'title' => 'terms_use', 'app' => object(AppVariable), 'locales' => array('fr', 'en', 'es', 'pt', 'it', 'de', 'sv', 'nl'), 'globals' => object(GlobalVariable)), array('title' => array(object(__TwigTemplate_9e2a4dec773f19741c790f5b26bef545), 'block_title'), 'body' => array(object(__TwigTemplate_9e2a4dec773f19741c790f5b26bef545), 'block_body')))
(vendor/twig/twig/src/Template.php:394)
at Twig\Template->displayWithErrorHandling(array('info' => null, 'title' => 'terms_use', 'app' => object(AppVariable), 'locales' => array('fr', 'en', 'es', 'pt', 'it', 'de', 'sv', 'nl'), 'globals' => object(GlobalVariable)), array('title' => array(object(__TwigTemplate_9e2a4dec773f19741c790f5b26bef545), 'block_title'), 'body' => array(object(__TwigTemplate_9e2a4dec773f19741c790f5b26bef545), 'block_body')))
(vendor/twig/twig/src/Template.php:367)
at Twig\Template->display(array('info' => null, 'title' => 'terms_use'))
(vendor/twig/twig/src/Template.php:379)
at Twig\Template->render(array('info' => null, 'title' => 'terms_use'))
(vendor/twig/twig/src/TemplateWrapper.php:38)
at Twig\TemplateWrapper->render(array('info' => null, 'title' => 'terms_use'))
(vendor/twig/twig/src/Environment.php:280)
at Twig\Environment->render('front/page/index.html.twig', array('info' => null, 'title' => 'terms_use'))
(vendor/symfony/framework-bundle/Controller/AbstractController.php:258)
at Symfony\Bundle\FrameworkBundle\Controller\AbstractController->renderView('front/page/index.html.twig', array('info' => null, 'title' => 'terms_use'))
(vendor/symfony/framework-bundle/Controller/AbstractController.php:266)
at Symfony\Bundle\FrameworkBundle\Controller\AbstractController->render('front/page/index.html.twig', array('info' => null, 'title' => 'terms_use'))
(src/Controller/Front/PageController.php:46)
at App\Controller\Front\PageController->termsUse(object(LegalInfoRepository), object(Request))
(vendor/symfony/http-kernel/HttpKernel.php:163)
at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1)
(vendor/symfony/http-kernel/HttpKernel.php:75)
at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true)
(vendor/symfony/http-kernel/Kernel.php:202)
at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
(vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35)
at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run()
(vendor/autoload_runtime.php:35)
at require_once('/var/www/preprod/racket-trip/vendor/autoload_runtime.php')
(public/index.php:5)
|