Exceptions

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

  • Exception
  • Logs
  • Stack Trace

Twig\Error\ RuntimeError

  1.         <li class="nav-item dropdown">
  2.             <a class="nav-link" data-toggle="dropdown" href="#">
  3.                 <i class="far fa-user"></i>
  4.             </a>
  5.             <div class="dropdown-menu dropdown-menu-lg dropdown-menu-right">
  6.                 <span class="dropdown-header">{{ app.user.fullName }}</span>
  7.                 <div class="dropdown-divider"></div>
  8.                 <a href="#" class="dropdown-item">
  9.                     <span class=" text-sm">User Profile</span>
  10.                 </a>
  11.                 <div class="dropdown-divider"></div>
  1. \t\t\t\t<i class=\"far fa-user\"></i>
  2. \t\t\t</a>
  3. \t\t\t<div class=\"dropdown-menu dropdown-menu-lg dropdown-menu-right\">
  4. \t\t\t\t<span class=\"dropdown-header\">";
  5.         // line 24
  6.         yield Twig\Extension\EscaperExtension::escape($this->envCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'24$this->source); })()), "user", [], "any"falsefalsefalse24), "fullName", [], "any"falsefalsefalse24), "html"nulltrue);
  7.         yield "</span>
  8. \t\t\t\t<div class=\"dropdown-divider\"></div>
  9. \t\t\t\t<a href=\"#\" class=\"dropdown-item\">
  10. \t\t\t\t\t<span class=\" text-sm\">User Profile</span>
  11. \t\t\t\t</a>
in vendor/twig/twig/src/Template.php -> doDisplay (line 360)
  1.             }
  2.             $level ob_get_level();
  3.             ob_start();
  4.             foreach ($this->doDisplay($context$blocks) as $data) {
  5.                 if (ob_get_length()) {
  6.                     $data ob_get_clean().$data;
  7.                     ob_start();
  8.                 }
  1.     </head>
  2.     <body class=\"hold-transition sidebar-mini\">
  3.         <div class=\"wrapper\">
  4.             ";
  5.         // line 28
  6.         yield from         $this->loadTemplate("menu/navbar.html.twig""base.html.twig"28)->unwrap()->yield($context);
  7.         // line 29
  8.         yield "            ";
  9.         yield from         $this->loadTemplate("menu/sidebar.html.twig""base.html.twig"29)->unwrap()->yield($context);
  10.         // line 30
  11.         yield "            <div class=\"content-wrapper\">
in vendor/twig/twig/src/Template.php -> doDisplay (line 360)
  1.             }
  2.             $level ob_get_level();
  3.             ob_start();
  4.             foreach ($this->doDisplay($context$blocks) as $data) {
  5.                 if (ob_get_length()) {
  6.                     $data ob_get_clean().$data;
  7.                     ob_start();
  8.                 }
  1.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  2.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""dashboard/index.html.twig"));
  3.         $this->parent $this->loadTemplate("base.html.twig""dashboard/index.html.twig"1);
  4.         yield from $this->parent->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  5.         
  6.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  7.         
  8.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
in vendor/twig/twig/src/Template.php -> doDisplay (line 360)
  1.             }
  2.             $level ob_get_level();
  3.             ob_start();
  4.             foreach ($this->doDisplay($context$blocks) as $data) {
  5.                 if (ob_get_length()) {
  6.                     $data ob_get_clean().$data;
  7.                     ob_start();
  8.                 }
  1.     }
  2.     public function render(array $context): string
  3.     {
  4.         $content '';
  5.         foreach ($this->yield($context) as $data) {
  6.             $content .= $data;
  7.         }
  8.         return $content;
  9.     }
  1.         $this->template $template;
  2.     }
  3.     public function render(array $context = []): string
  4.     {
  5.         return $this->template->render($context);
  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.         }
AbstractController->render() in src/Controller/DashboardController.php (line 57)
  1.         $session->set('myprojects'$project_list);
  2.         return $this->render('dashboard/index.html.twig', [
  3.             'projects' => $project_list,
  4.             'active_project' => $activeProject,
  5.             'closed_project' => $closedProject,
  6.         ]);
  7.     }
  8.     #[Route('/calendar'name'calendar_index')]
  9.     public function calendar(): 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.         $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/project.digitalethiopia.gov.et/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. };