Error 500 Internal Server Error

GET https://test.garage-hervevincent.com/garage/ajout-nouveau-garage

Forwarded to ErrorController (f6a53e)

Exceptions

Impossible to access an attribute ("profile") on a null variable in _partials/_header.html.twig at line 95.

Exception

Twig\Error\ RuntimeError

Show exception properties
Twig\Error\RuntimeError {#990
  -lineno: 95
  -rawMessage: "Impossible to access an attribute ("profile") on a null variable."
  -source: Twig\Source {#904
    -code: """
      <div class="nk-header nk-header-fixed is-light">\n
          <div class="container-fluid">\n
              <div class="nk-header-wrap">\n
                  <!-- Menu trigger (mobile) -->\n
                  <div class="nk-menu-trigger d-xl-none ms-n1">\n
                      <a href="#" class="nk-nav-toggle nk-quick-nav-icon" data-target="sidebarMenu"\n
                         role="button" aria-label="Ouvrir le menu de navigation">\n
                          <em class="icon ni ni-menu" aria-hidden="true"></em>\n
                      </a>\n
                  </div>\n
      \n
                  <!-- Logo (mobile) -->\n
                  <div class="nk-header-brand d-xl-none">\n
                      <a href="#" class="logo-link">\n
                          <img class="logo-dark logo-img"\n
                               src="{{ asset('images_old/main_logo.png') }}"\n
                               srcset="{{ asset('images_old/main_logo.png') }} 2x"\n
                               alt="logo-dark" />\n
                      </a>\n
                  </div>\n
      \n
                  {# =============================== #}\n
                  {#      Bloc Garage Header         #}\n
                  {# =============================== #}\n
      \n
                  {% set currentGarageId = app.session.get('current_garage_id') %}\n
                  {% set garageName = app.session.get('garage_name') %}\n
                  {% set garageCity = app.session.get('garage_city') %}\n
      \n
      \n
                  <div class="nk-header-search ms-3 ms-xl-0">\n
                      {% if is_granted('ROLE_SUPER_ADMIN') and garages|length > 1 %}\n
                          {# Sélecteur pour le Super Admin s'il y a plusieurs garages #}\n
                          <div class="dropdown">\n
                              <a href="#" class="dropdown-toggle btn btn-white btn-outline-light" data-bs-toggle="dropdown">\n
                                  <em class="icon ni ni-building text-primary me-2"></em>\n
                                  <span>{{ currentGarageId ? garageName : 'Vue Globale (Tous les garages)' }}</span>\n
                                  <em class="dd-indc icon ni ni-chevron-right"></em>\n
                              </a>\n
                              <div class="dropdown-menu dropdown-menu-md">\n
                                  <ul class="link-list-opt no-bdr">\n
                                      <li>\n
                                          <a href="{{ path('app_admin_switch_garage', {id: 0}) }}">\n
                                              <em class="icon ni ni-globe"></em>\n
                                              <span>Vue Globale</span>\n
                                          </a>\n
                                      </li>\n
                                      <li class="divider"></li>\n
                                      {% for garage in garages %}\n
                                          <li>\n
                                              <a href="{{ path('app_admin_switch_garage', {id: garage.id}) }}">\n
                                                  <em class="icon ni ni-home"></em>\n
                                                  <span>{{ garage.label }} ({{ garage.city }})</span>\n
                                              </a>\n
                                          </li>\n
                                      {% endfor %}\n
                                  </ul>\n
                              </div>\n
                          </div>\n
                      {% elseif garageName%}\n
      \n
                          {# Affichage simple pour les employés ou s'il n'y a qu'un seul garage #}\n
                          <div class="garage-header-info d-flex align-items-center">\n
                              <em class="icon ni ni-building text-primary fs-5 me-2"></em>\n
                              <div class="d-flex flex-column">\n
                                  <span class="fw-bold text-dark lh-sm">{{ garageName }}</span>\n
                                  <small class="text-muted">{{ garageCity }}</small>\n
                              </div>\n
                          </div>\n
                      {% endif %}\n
                  </div>\n
      \n
      \n
      \n
                  <!-- Header tools -->\n
                  <div class="nk-header-tools">\n
                      <ul class="nk-quick-nav">\n
                          {# ---------------- INCLUSION DES NOTIFICATIONS ---------------- #}\n
                          {% if app.user %}\n
                              {# Le listener Mercure invisible pour le temps réel #}\n
                              <div {{ turbo_stream_listen('user-notifications-' ~ app.user.id) }}></div>\n
      \n
                              {{ include('notification/_dropdown.html.twig') }}\n
                          {% endif %}\n
                          {# ----------------------------------------------------------- #}\n
                          <!-- User dropdown -->\n
                          <li class="dropdown user-dropdown">\n
                              <a href="#" class="dropdown-toggle me-n1" data-bs-toggle="dropdown">\n
                                  <div class="user-toggle">\n
                                      <div class="user-avatar sm">\n
                                          <em class="icon ni ni-user-alt"></em>\n
                                      </div>\n
                                      <div class="user-info d-none d-xl-block">\n
                                          <div class="user-status user-status-verified">\n
                                              {{ app.user.profile }}\n
                                          </div>\n
                                          <div class="user-name dropdown-indicator">\n
                                              {{ app.user.fullName }}\n
                                          </div>\n
                                      </div>\n
                                  </div>\n
                              </a>\n
                              <div class="dropdown-menu dropdown-menu-md dropdown-menu-end">\n
                                  <div class="dropdown-inner user-card-wrap bg-lighter d-none d-md-block">\n
                                      <div class="user-card">\n
                                          <div class="user-avatar"><span>\n
                                                  {% set parts = app.user.fullName|split(' ') %}\n
                                                  {% for p in parts %}\n
                                                      {{ p|first|upper }}\n
                                                  {% endfor %}\n
      \n
                                              </span></div>\n
                                          <div class="user-info">\n
                                              <span class="lead-text">{{ app.user.fullName }}</span>\n
                                              <span class="sub-text">{{ app.user.email }}</span>\n
                                          </div>\n
                                      </div>\n
                                  </div>\n
                                  <div class="dropdown-inner">\n
                                      <ul class="link-list">\n
                                          <li>\n
                                              <a href="{{ path('app_user_profile_detail', {token: app.user.token}) }}">\n
                                                  <em class="icon ni ni-user-alt"></em>\n
                                                  <span>Mon Profil</span>\n
                                              </a>\n
                                          </li>\n
                                          <li>\n
                                              <a href="{{ path('app_user_change_password', {token: app.user.token}) }}">\n
                                                  <em class="icon ni ni-setting-alt"></em>\n
                                                  <span>Paramètres du Compte</span>\n
                                              </a>\n
                                          </li>\n
                                      </ul>\n
                                  </div>\n
                                  <div class="dropdown-inner">\n
                                      <ul class="link-list">\n
                                          <li>\n
                                              <a href="{{ path('app_logout') }}">\n
                                                  <em class="icon ni ni-signout"></em>\n
                                                  <span>Se Déconnecter</span>\n
                                              </a>\n
                                          </li>\n
                                      </ul>\n
                                  </div>\n
                              </div>\n
                          </li>\n
      \n
                      </ul>\n
                  </div>\n
              </div>\n
          </div>\n
      </div>\n
      \n
      \n
      \n
      """
    -name: "_partials/_header.html.twig"
    -path: "/var/www/garage/test/templates/_partials/_header.html.twig"
  }
  -phpFile: "/var/www/garage/test/vendor/twig/twig/src/Extension/CoreExtension.php"
  -phpLine: 1752
}
  1. <div class="user-avatar sm">
  2. <em class="icon ni ni-user-alt"></em>
  3. </div>
  4. <div class="user-info d-none d-xl-block">
  5. <div class="user-status user-status-verified">
  6. {{ app.user.profile }}
  7. </div>
  8. <div class="user-name dropdown-indicator">
  9. {{ app.user.fullName }}
  10. </div>
  11. </div>
  1. </div>
  2. <div class=\"user-info d-none d-xl-block\">
  3. <div class=\"user-status user-status-verified\">
  4. ";
  5. // line 95
  6. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 95, $this->source); })()), "user", [], "any", false, false, false, 95), "profile", [], "any", false, false, false, 95), "html", null, true);
  7. yield "
  8. </div>
  9. <div class=\"user-name dropdown-indicator\">
  10. ";
  11. // line 98
in vendor/twig/twig/src/Template.php -> doDisplay (line 411)
  1. $context += $this->env->getGlobals();
  2. $blocks = array_merge($this->blocks, $blocks);
  3. try {
  4. $this->ensureSecurityChecked();
  5. yield from $this->doDisplay($context, $blocks);
  6. } catch (Error $e) {
  7. if (!$e->getSourceContext()) {
  8. $e->setSourceContext($this->getSourceContext());
  9. }
  1. return $this->blocks;
  2. }
  3. public function display(array $context, array $blocks = []): void
  4. {
  5. foreach ($this->yield($context, $blocks) as $data) {
  6. echo $data;
  7. }
  8. }
  9. public function render(array $context): string
in vendor/twig/twig/src/Template.php -> display (line 381)
  1. ob_start();
  2. } else {
  3. ob_start(static 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. yield from $this->template->yieldBlock($name, $context);
  2. }
  3. public function render(array $context = []): string
  4. {
  5. return $this->template->render($context);
  6. }
  7. /**
  8. * @return void
  9. */
  1. }
  2. return '';
  3. }
  4. return $loaded->render($variables);
  5. } finally {
  6. if ($isSandboxed && !$alreadySandboxed) {
  7. $sandbox->disableSandbox();
  8. }
  9. }
  1. yield "
  2. <div class=\"nk-wrap\">
  3. <!-- header -->
  4. ";
  5. // line 57
  6. yield Twig\Extension\CoreExtension::include($this->env, $context, "_partials/_header.html.twig");
  7. yield "
  8. <!-- content-->
  9. <!--content-->
  10. <div class=\"nk-content\" id=\"main\">
  11. <div class=\"container-fluid\">
in vendor/twig/twig/src/Template.php -> doDisplay (line 411)
  1. $context += $this->env->getGlobals();
  2. $blocks = array_merge($this->blocks, $blocks);
  3. try {
  4. $this->ensureSecurityChecked();
  5. yield from $this->doDisplay($context, $blocks);
  6. } catch (Error $e) {
  7. if (!$e->getSourceContext()) {
  8. $e->setSourceContext($this->getSourceContext());
  9. }
  1. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  2. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Structure/add_new_garage.html.twig"));
  3. $this->parent = $this->load("base.html.twig", 1);
  4. yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
  5. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  6. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
in vendor/twig/twig/src/Template.php -> doDisplay (line 411)
  1. $context += $this->env->getGlobals();
  2. $blocks = array_merge($this->blocks, $blocks);
  3. try {
  4. $this->ensureSecurityChecked();
  5. yield from $this->doDisplay($context, $blocks);
  6. } catch (Error $e) {
  7. if (!$e->getSourceContext()) {
  8. $e->setSourceContext($this->getSourceContext());
  9. }
  1. return $this->blocks;
  2. }
  3. public function display(array $context, array $blocks = []): void
  4. {
  5. foreach ($this->yield($context, $blocks) as $data) {
  6. echo $data;
  7. }
  8. }
  9. public function render(array $context): string
in vendor/twig/twig/src/Template.php -> display (line 381)
  1. ob_start();
  2. } else {
  3. ob_start(static 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. yield from $this->template->yieldBlock($name, $context);
  2. }
  3. public function render(array $context = []): string
  4. {
  5. return $this->template->render($context);
  6. }
  7. /**
  8. * @return void
  9. */
  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. if (null !== $block) {
  2. return $this->container->get('twig')->load($view)->renderBlock($block, $parameters);
  3. }
  4. return $this->container->get('twig')->render($view, $parameters);
  5. }
  6. private function doRender(string $view, ?string $block, array $parameters, ?Response $response, string $method): Response
  7. {
  8. $content = $this->doRenderView($view, $block, $parameters, $method);
  1. return $this->container->get('twig')->render($view, $parameters);
  2. }
  3. private function doRender(string $view, ?string $block, array $parameters, ?Response $response, string $method): Response
  4. {
  5. $content = $this->doRenderView($view, $block, $parameters, $method);
  6. $response ??= new Response();
  7. if (200 === $response->getStatusCode()) {
  8. foreach ($parameters as $v) {
  9. if ($v instanceof FormInterface && $v->isSubmitted() && !$v->isValid()) {
  1. * If an invalid form is found in the list of parameters, a 422 status code is returned.
  2. * Forms found in parameters are auto-cast to form views.
  3. */
  4. protected function render(string $view, array $parameters = [], ?Response $response = null): Response
  5. {
  6. return $this->doRender($view, null, $parameters, $response, __FUNCTION__);
  7. }
  8. /**
  9. * Renders a block in a view.
  10. *
AbstractController->render() in src/Controller/StructureController.php (line 120)
  1. $this->addFlash('success', "le garage et les compte associes ont ete crees avec succes");
  2. return $this->redirectToRoute('list_garage');
  3. }
  4. return $this->render('Structure/add_new_garage.html.twig',['form'=>$form->createView()]);
  5. }
  6. /**
  7. * @param PaginatorInterface $paginator
  1. $this->dispatcher->dispatch($event, KernelEvents::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, $event);
  9. $this->dispatcher->dispatch($event, KernelEvents::VIEW);
  1. $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  2. $this->requestStack->push($request);
  3. $response = null;
  4. try {
  5. return $response = $this->handleRaw($request, $type);
  6. } catch (\Throwable $e) {
  7. if ($e instanceof \Error && !$this->handleAllThrowables) {
  8. throw $e;
  9. }
  1. if (!$this->handlingHttpCache) {
  2. $this->resetServices = true;
  3. }
  4. try {
  5. return $this->getHttpKernel()->handle($request, $type, $catch);
  6. } finally {
  7. --$this->requestStackSize;
  8. }
  9. }
  1. ) {
  2. }
  3. public function run(): int
  4. {
  5. $response = $this->kernel->handle($this->request);
  6. if (Kernel::VERSION_ID >= 60400) {
  7. $response->send(false);
  8. if (\function_exists('fastcgi_finish_request') && !$this->debug) {
in vendor/autoload_runtime.php -> run (line 32)
  1. $app = $app(...$args);
  2. exit(
  3. $runtime
  4. ->getRunner($app)
  5. ->run()
  6. );
require_once('/var/www/garage/test/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. };

Logs

Level Channel Message
INFO 05:01:42 deprecation User Deprecated: Class "Doctrine\ORM\Proxy\Autoloader" is deprecated. Use native lazy objects instead. (Autoloader.php:74 called by DoctrineBundle.php:136, https://github.com/doctrine/orm/pull/12005, package doctrine/orm)
{
    "exception": {}
}
INFO 05:01:42 request Matched route "_profiler".
{
    "route": "_profiler",
    "route_parameters": {
        "_route": "_profiler",
        "_controller": "web_profiler.controller.profiler::panelAction",
        "token": "9e2208"
    },
    "request_uri": "https://test.garage-hervevincent.com/_profiler/9e2208?panel=exception&type=request",
    "method": "GET"
}
DEBUG 05:01:42 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\DebugHandlersListener::configure".
{
    "event": "kernel.request",
    "listener": "Symfony\\Component\\HttpKernel\\EventListener\\DebugHandlersListener::configure"
}
DEBUG 05:01:42 event Notified event "kernel.request" to listener "Symfony\UX\Turbo\Request\RequestListener::__invoke".
{
    "event": "kernel.request",
    "listener": "Symfony\\UX\\Turbo\\Request\\RequestListener::__invoke"
}
DEBUG 05:01:42 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\ValidateRequestListener::onKernelRequest".
{
    "event": "kernel.request",
    "listener": "Symfony\\Component\\HttpKernel\\EventListener\\ValidateRequestListener::onKernelRequest"
}
DEBUG 05:01:42 event Notified event "kernel.request" to listener "Symfony\Bridge\Doctrine\Middleware\IdleConnection\Listener::onKernelRequest".
{
    "event": "kernel.request",
    "listener": "Symfony\\Bridge\\Doctrine\\Middleware\\IdleConnection\\Listener::onKernelRequest"
}
DEBUG 05:01:42 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\SessionListener::onKernelRequest".
{
    "event": "kernel.request",
    "listener": "Symfony\\Component\\HttpKernel\\EventListener\\SessionListener::onKernelRequest"
}
DEBUG 05:01:42 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\LocaleListener::setDefaultLocale".
{
    "event": "kernel.request",
    "listener": "Symfony\\Component\\HttpKernel\\EventListener\\LocaleListener::setDefaultLocale"
}
DEBUG 05:01:42 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\RouterListener::onKernelRequest".
{
    "event": "kernel.request",
    "listener": "Symfony\\Component\\HttpKernel\\EventListener\\RouterListener::onKernelRequest"
}
DEBUG 05:01:42 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\LocaleListener::onKernelRequest".
{
    "event": "kernel.request",
    "listener": "Symfony\\Component\\HttpKernel\\EventListener\\LocaleListener::onKernelRequest"
}
DEBUG 05:01:42 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\LocaleAwareListener::onKernelRequest".
{
    "event": "kernel.request",
    "listener": "Symfony\\Component\\HttpKernel\\EventListener\\LocaleAwareListener::onKernelRequest"
}
DEBUG 05:01:42 event Notified event "kernel.request" to listener "Symfony\Bundle\SecurityBundle\Debug\TraceableFirewallListener::configureLogoutUrlGenerator".
{
    "event": "kernel.request",
    "listener": "Symfony\\Bundle\\SecurityBundle\\Debug\\TraceableFirewallListener::configureLogoutUrlGenerator"
}
DEBUG 05:01:42 event Notified event "kernel.request" to listener "Symfony\Bundle\SecurityBundle\Debug\TraceableFirewallListener::onKernelRequest".
{
    "event": "kernel.request",
    "listener": "Symfony\\Bundle\\SecurityBundle\\Debug\\TraceableFirewallListener::onKernelRequest"
}
DEBUG 05:01:42 event Notified event "kernel.request" to listener "Knp\Bundle\PaginatorBundle\Subscriber\SlidingPaginationSubscriber::onKernelRequest".
{
    "event": "kernel.request",
    "listener": "Knp\\Bundle\\PaginatorBundle\\Subscriber\\SlidingPaginationSubscriber::onKernelRequest"
}
DEBUG 05:01:42 event Notified event "debug.security.authorization.vote" to listener "Symfony\Bundle\SecurityBundle\EventListener\VoteListener::onVoterVote".
{
    "event": "debug.security.authorization.vote",
    "listener": "Symfony\\Bundle\\SecurityBundle\\EventListener\\VoteListener::onVoterVote"
}
DEBUG 05:01:42 event Notified event "kernel.controller" to listener "App\EventListener\GarageHeaderListener::onKernelController".
{
    "event": "kernel.controller",
    "listener": "App\\EventListener\\GarageHeaderListener::onKernelController"
}
DEBUG 05:01:42 event Notified event "kernel.controller" to listener "Symfony\Bundle\FrameworkBundle\DataCollector\RouterDataCollector::onKernelController".
{
    "event": "kernel.controller",
    "listener": "Symfony\\Bundle\\FrameworkBundle\\DataCollector\\RouterDataCollector::onKernelController"
}
DEBUG 05:01:42 event Notified event "kernel.controller" to listener "Symfony\Component\HttpKernel\DataCollector\RequestDataCollector::onKernelController".
{
    "event": "kernel.controller",
    "listener": "Symfony\\Component\\HttpKernel\\DataCollector\\RequestDataCollector::onKernelController"
}
DEBUG 05:01:42 event Notified event "kernel.controller_arguments" to listener "Symfony\Component\HttpKernel\EventListener\IsSignatureValidAttributeListener::onKernelControllerArguments".
{
    "event": "kernel.controller_arguments",
    "listener": "Symfony\\Component\\HttpKernel\\EventListener\\IsSignatureValidAttributeListener::onKernelControllerArguments"
}
DEBUG 05:01:42 event Notified event "kernel.controller_arguments" to listener "Symfony\Component\Security\Http\EventListener\IsCsrfTokenValidAttributeListener::onKernelControllerArguments".
{
    "event": "kernel.controller_arguments",
    "listener": "Symfony\\Component\\Security\\Http\\EventListener\\IsCsrfTokenValidAttributeListener::onKernelControllerArguments"
}
DEBUG 05:01:42 event Notified event "kernel.controller_arguments" to listener "Symfony\Component\Security\Http\EventListener\IsGrantedAttributeListener::onKernelControllerArguments".
{
    "event": "kernel.controller_arguments",
    "listener": "Symfony\\Component\\Security\\Http\\EventListener\\IsGrantedAttributeListener::onKernelControllerArguments"
}
DEBUG 05:01:42 event Notified event "kernel.controller_arguments" to listener "Symfony\Component\HttpKernel\EventListener\CacheAttributeListener::onKernelControllerArguments".
{
    "event": "kernel.controller_arguments",
    "listener": "Symfony\\Component\\HttpKernel\\EventListener\\CacheAttributeListener::onKernelControllerArguments"
}
DEBUG 05:01:42 event Notified event "kernel.controller_arguments" to listener "Symfony\Component\HttpKernel\Controller\ArgumentResolver\RequestPayloadValueResolver::onKernelControllerArguments".
{
    "event": "kernel.controller_arguments",
    "listener": "Symfony\\Component\\HttpKernel\\Controller\\ArgumentResolver\\RequestPayloadValueResolver::onKernelControllerArguments"
}
DEBUG 05:01:42 event Notified event "kernel.controller_arguments" to listener "Symfony\Component\HttpKernel\EventListener\ErrorListener::onControllerArguments".
{
    "event": "kernel.controller_arguments",
    "listener": "Symfony\\Component\\HttpKernel\\EventListener\\ErrorListener::onControllerArguments"
}

Stack Trace

RuntimeError
Twig\Error\RuntimeError:
Impossible to access an attribute ("profile") on a null variable in "_partials/_header.html.twig" at line 95.

  at templates/_partials/_header.html.twig:95
  at Twig\Extension\CoreExtension::getAttribute()
     (var/cache/dev/twig/59/591de27d20d308408d5e26348f634cb0.php:212)
  at __TwigTemplate_b9c6c038a49ead781b5097e0a2321f78->doDisplay()
     (vendor/twig/twig/src/Template.php:411)
  at Twig\Template->yield()
     (vendor/twig/twig/src/Template.php:366)
  at Twig\Template->display()
     (vendor/twig/twig/src/Template.php:381)
  at Twig\Template->render()
     (vendor/twig/twig/src/TemplateWrapper.php:51)
  at Twig\TemplateWrapper->render()
     (vendor/twig/twig/src/Extension/CoreExtension.php:1522)
  at Twig\Extension\CoreExtension::include()
     (var/cache/dev/twig/c5/c5d47ba2ecb302e7ce9f3903842d4827.php:126)
  at __TwigTemplate_84e622cf897330e265c5176b43e9b4ef->doDisplay()
     (vendor/twig/twig/src/Template.php:411)
  at Twig\Template->yield()
     (var/cache/dev/twig/d4/d4a1d36982a490c97d858b28da5946ff.php:54)
  at __TwigTemplate_7d39c6bef8d483e4e76181f875c9db82->doDisplay()
     (vendor/twig/twig/src/Template.php:411)
  at Twig\Template->yield()
     (vendor/twig/twig/src/Template.php:366)
  at Twig\Template->display()
     (vendor/twig/twig/src/Template.php:381)
  at Twig\Template->render()
     (vendor/twig/twig/src/TemplateWrapper.php:51)
  at Twig\TemplateWrapper->render()
     (vendor/twig/twig/src/Environment.php:333)
  at Twig\Environment->render()
     (vendor/symfony/framework-bundle/Controller/AbstractController.php:467)
  at Symfony\Bundle\FrameworkBundle\Controller\AbstractController->doRenderView()
     (vendor/symfony/framework-bundle/Controller/AbstractController.php:472)
  at Symfony\Bundle\FrameworkBundle\Controller\AbstractController->doRender()
     (vendor/symfony/framework-bundle/Controller/AbstractController.php:284)
  at Symfony\Bundle\FrameworkBundle\Controller\AbstractController->render()
     (src/Controller/StructureController.php:120)
  at App\Controller\StructureController->addGarage()
     (vendor/symfony/http-kernel/HttpKernel.php:183)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
     (vendor/symfony/http-kernel/HttpKernel.php:76)
  at Symfony\Component\HttpKernel\HttpKernel->handle()
     (vendor/symfony/http-kernel/Kernel.php:193)
  at Symfony\Component\HttpKernel\Kernel->handle()
     (vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35)
  at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run()
     (vendor/autoload_runtime.php:32)
  at require_once('/var/www/garage/test/vendor/autoload_runtime.php')
     (public/index.php:5)