Symfony Exception

RuntimeError

HTTP 500 Internal Server Error

Key "0" does not exist as the array is empty.

Exception

Twig\Error\ RuntimeError

  1.                                     <div class="circle-tile-heading {{indicadoresPublica[0].estilo|default("")}}">
  2.                                         <i class="fa {{indicadoresPublica[0].icono|default("")}} fa-fw fa-3x"></i>
  3.                                     </div>
  4.                                     <div class="circle-tile-content {{indicadoresPublica[0].estilo|default("")}}">
  5.                                         <div class="circle-tile-description text-faded {{indicadoresPublica[0].estilo|default("")}}">
  6.                                             {{indicadoresPublica[0].descripcion}}
  7.                                         </div>
  8.                                         <div class="text-faded {{indicadoresPublica[0].estilo|default("")}}">
  9.                                             {{indicadoresPublica[0].entidad|default("")}}
  10.                                         </div>
  11.                                         <div class="circle-tile-number text-faded">
  1.                 // line 109
  2.                 echo twig_escape_filter($this->env, ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["indicadoresPublica"] ?? null), 0, [], "array"falsetruefalse109), "estilo", [], "any"truetruefalse109)) ? (_twig_default_filter(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["indicadoresPublica"] ?? null), 0, [], "array"falsetruefalse109), "estilo", [], "any"falsefalsefalse109), "")) : ("")), "html"nulltrue);
  3.                 echo "\">
  4.                                             ";
  5.                 // line 110
  6.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["indicadoresPublica"]) || array_key_exists("indicadoresPublica"$context) ? $context["indicadoresPublica"] : (function () { throw new RuntimeError('Variable "indicadoresPublica" does not exist.'110$this->source); })()), 0, [], "array"falsefalsefalse110), "descripcion", [], "any"falsefalsefalse110), "html"nulltrue);
  7.                 echo "
  8.                                         </div>
  9.                                         <div class=\"text-faded ";
  10.                 // line 112
  11.                 echo twig_escape_filter($this->env, ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["indicadoresPublica"] ?? null), 0, [], "array"falsetruefalse112), "estilo", [], "any"truetruefalse112)) ? (_twig_default_filter(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["indicadoresPublica"] ?? null), 0, [], "array"falsetruefalse112), "estilo", [], "any"falsefalsefalse112), "")) : ("")), "html"nulltrue);
__TwigTemplate_9fe18168f6d114545044cd6a227fd37d2e9532245538a4bcd71195413bf5f46a->block_content() in vendor/twig/twig/src/Template.php (line 182)
  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.         </div>
  2.     </nav>
  3.     ";
  4.         // line 76
  5.         $this->displayBlock('content'$context$blocks);
  6.         // line 77
  7.         echo "
  8.     ";
  9.         // line 79
  10.         echo "
__TwigTemplate_12e7184e3b7c2bfdd0e9c5dc71be8eb580e5e90a2f87ab9e5b0a76a2a165305c->block_body() in vendor/twig/twig/src/Template.php (line 182)
  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 "\" sizes=\"16x16\" />
  2.     </head>
  3.     <body>
  4.         ";
  5.         // line 23
  6.         $this->displayBlock('body'$context$blocks);
  7.         // line 24
  8.         echo "        ";
  9.         $this->displayBlock('modals'$context$blocks);
  10.         // line 25
  11.         echo "        <script src=\"";
__TwigTemplate_ac60ce7d47c8f7bf280608ca62660c608421370786e4fc68d08ea6a95a2a8dcc->doDisplay() in vendor/twig/twig/src/Template.php (line 405)
  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.             }
Template->displayWithErrorHandling() in vendor/twig/twig/src/Template.php (line 378)
  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.         $macros $this->macros;
  2.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  3.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template"":public:layout.html.twig"));
  4.         $this->parent $this->loadTemplate("base.html.twig"":public:layout.html.twig"1);
  5.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  6.         
  7.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  8.     }
__TwigTemplate_12e7184e3b7c2bfdd0e9c5dc71be8eb580e5e90a2f87ab9e5b0a76a2a165305c->doDisplay() in vendor/twig/twig/src/Template.php (line 405)
  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.             }
Template->displayWithErrorHandling() in vendor/twig/twig/src/Template.php (line 378)
  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.         $macros $this->macros;
  2.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  3.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""public/project/indicadores.html.twig"));
  4.         $this->parent $this->loadTemplate(":public:layout.html.twig""public/project/indicadores.html.twig"1);
  5.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  6.         
  7.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  8.     }
__TwigTemplate_9fe18168f6d114545044cd6a227fd37d2e9532245538a4bcd71195413bf5f46a->doDisplay() in vendor/twig/twig/src/Template.php (line 405)
  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.             }
Template->displayWithErrorHandling() in vendor/twig/twig/src/Template.php (line 378)
  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();
Template->display() in vendor/twig/twig/src/Template.php (line 390)
  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.      *
  2.      * @throws Error if something went wrong like a thrown exception while rendering the template
  3.      */
  4.     public function render($name, array $parameters = [])
  5.     {
  6.         return $this->load($name)->render($parameters);
  7.     }
  8.     /**
  9.      * {@inheritdoc}
  10.      *
  1.      * @final since version 3.4
  2.      */
  3.     protected function render($view, array $parameters = [], Response $response null)
  4.     {
  5.         if ($this->container->has('templating')) {
  6.             $content $this->container->get('templating')->render($view$parameters);
  7.         } elseif ($this->container->has('twig')) {
  8.             $content $this->container->get('twig')->render($view$parameters);
  9.         } else {
  10.             throw new \LogicException('You can not use the "render" method if the Templating Component or the Twig Bundle are not available. Try running "composer require symfony/twig-bundle".');
  11.         }
  1.             'project' => $project,
  2.             'parametros' => $parametros,
  3.             'indicadoresSinFinanciacion' => $indicadoresSinFinanciacion,
  4.             'indicadoresPublica' => $indicadoresPublica,
  5.             'indicadoresPrivada' => $indicadoresPrivada,
  6.             'indicadoresSubvencion' => $indicadoresSubvencion,
  7.         ));
  8.     }
  9. }
IndicadorIndividualController->showAction() in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php (line 151)
  1.         $this->dispatcher->dispatch(KernelEvents::CONTROLLER_ARGUMENTS$event);
  2.         $controller $event->getController();
  3.         $arguments $event->getArguments();
  4.         // call controller
  5.         $response = \call_user_func_array($controller$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new GetResponseForControllerResultEvent($this$request$type$response);
  9.             $this->dispatcher->dispatch(KernelEvents::VIEW$event);
  1.     public function handle(Request $request$type HttpKernelInterface::MASTER_REQUEST$catch true)
  2.     {
  3.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  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.     }
Kernel->handle() in /app.php (line 14)
  1. //$kernel = new AppCache($kernel);
  2. // When using the HttpCache, you need to call the method in your front controller instead of relying on the configuration parameter
  3. //Request::enableHttpMethodParameterOverride();
  4. $request Request::createFromGlobals();
  5. $response $kernel->handle($request);
  6. $response->send();
  7. $kernel->terminate($request$response);

Logs

No log messages

Stack Trace

RuntimeError

Twig\Error\RuntimeError:
Key "0" does not exist as the array is empty.

  at app/Resources/views/public/project/indicadores.html.twig:110
  at twig_get_attribute()
     (var/cache/prod/twig/1c/1c693a609259832af55ead8d7fad88e53155d4207fa5941c4b113186e902d2fc.php:218)
  at __TwigTemplate_9fe18168f6d114545044cd6a227fd37d2e9532245538a4bcd71195413bf5f46a->block_content()
     (vendor/twig/twig/src/Template.php:182)
  at Twig\Template->displayBlock()
     (var/cache/prod/twig/18/18839f5f56bf3a338b9455279f535eb540f2c4da691e727165cd0678abf223ea.php:243)
  at __TwigTemplate_12e7184e3b7c2bfdd0e9c5dc71be8eb580e5e90a2f87ab9e5b0a76a2a165305c->block_body()
     (vendor/twig/twig/src/Template.php:182)
  at Twig\Template->displayBlock()
     (var/cache/prod/twig/9c/9cf8cd83e58861e50e532f44fa2e2d32cee4b467e76b67d193bb244dd24bb99c.php:90)
  at __TwigTemplate_ac60ce7d47c8f7bf280608ca62660c608421370786e4fc68d08ea6a95a2a8dcc->doDisplay()
     (vendor/twig/twig/src/Template.php:405)
  at Twig\Template->displayWithErrorHandling()
     (vendor/twig/twig/src/Template.php:378)
  at Twig\Template->display()
     (var/cache/prod/twig/18/18839f5f56bf3a338b9455279f535eb540f2c4da691e727165cd0678abf223ea.php:48)
  at __TwigTemplate_12e7184e3b7c2bfdd0e9c5dc71be8eb580e5e90a2f87ab9e5b0a76a2a165305c->doDisplay()
     (vendor/twig/twig/src/Template.php:405)
  at Twig\Template->displayWithErrorHandling()
     (vendor/twig/twig/src/Template.php:378)
  at Twig\Template->display()
     (var/cache/prod/twig/1c/1c693a609259832af55ead8d7fad88e53155d4207fa5941c4b113186e902d2fc.php:47)
  at __TwigTemplate_9fe18168f6d114545044cd6a227fd37d2e9532245538a4bcd71195413bf5f46a->doDisplay()
     (vendor/twig/twig/src/Template.php:405)
  at Twig\Template->displayWithErrorHandling()
     (vendor/twig/twig/src/Template.php:378)
  at Twig\Template->display()
     (vendor/twig/twig/src/Template.php:390)
  at Twig\Template->render()
     (vendor/symfony/symfony/src/Symfony/Bridge/Twig/TwigEngine.php:50)
  at Symfony\Bridge\Twig\TwigEngine->render()
     (vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Controller/ControllerTrait.php:286)
  at Symfony\Bundle\FrameworkBundle\Controller\Controller->render()
     (src/AppBundle/Controller/Dashboard/IndicadorIndividualController.php:46)
  at AppBundle\Controller\Dashboard\IndicadorIndividualController->showAction()
     (vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:151)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
     (vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:68)
  at Symfony\Component\HttpKernel\HttpKernel->handle()
     (vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php:200)
  at Symfony\Component\HttpKernel\Kernel->handle()
     (app.php:14)