Symfony Exception

RuntimeError

HTTP 500 Internal Server Error

Key "organisation" for array with keys "idobject, object, idfile, range, idfile_original, idcontent, idperson, idtype, title, description, copyright, watermark, link, file, note_private, publishing_date, date_start, date_end, is_editable, language, id_article, id_document, dateupdate, dateinsert, publish, valid, idextranetuser, idclassification, classification, public_name, type, texts, spectacles, persons, contacts, contents, files, multimedias, dvds, playlists, lagarce, idgroupclassification, is_public, titre, descriptif, extension, mime_type, inclus, upload, maj, logo, saison, dateinsert_str, dateinsert_str_full, vignette, language_str, url_file_path, objects" does not exist.

Exception

Twig\Error\ RuntimeError

  1.                                     </a>
  2.                                 </span>
  3.                             </div>
  4.                             <div class="tc-block-body">
  5.                                 <figure class="tc-media-thumbnail">
  6.                                     <a href="{{ file.url_file_path }}" ><img src="{{ file.vignette }}" class="tc-border-neutral" style="width:100px" alt="{{ file.organisation }}" /></a>
  7.                                 </figure>
  8.                                 <div class="tc-block-body-text">
  9.                                 {% if file.public_name is defined and file.public_name %}
  10.                                     <p class="tc-textwrap-margin"><span class="tc-text-label">Catégorie</span> {{ file.public_name }}</p>
  11.                                 {% endif %}
  1.                     // line 24
  2.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["file"], "url_file_path", [], "any"falsefalsefalse24), "html"nulltrue);
  3.                     echo "\" ><img src=\"";
  4.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["file"], "vignette", [], "any"falsefalsefalse24), "html"nulltrue);
  5.                     echo "\" class=\"tc-border-neutral\" style=\"width:100px\" alt=\"";
  6.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["file"], "organisation", [], "any"falsefalsefalse24), "html"nulltrue);
  7.                     echo "\" /></a>
  8.                                 </figure>
  9.                                 <div class=\"tc-block-body-text\">
  10.                                 ";
  11.                     // line 27
  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.         // line 109
  2.         echo "    ";
  3.         $this->loadTemplate("includes/navigation.inc.html.twig""editions/entete_editeur.inc.html.twig"109)->display($context);
  4.         // line 110
  5.         echo "    ";
  6.         $this->displayBlock('subcontent'$context$blocks);
  7.         
  8.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  9.         
  10.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  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.         ";
  2.         // line 111
  3.         $this->displayBlock('headcontent'$context$blocks);
  4.         // line 112
  5.         echo "        ";
  6.         $this->displayBlock('content'$context$blocks);
  7.         // line 113
  8.         echo "
  9.         ";
  10.         // line 114
  11.         if (( !array_key_exists("iframe_style"$context) ||  !(isset($context["iframe_style"]) || array_key_exists("iframe_style"$context) ? $context["iframe_style"] : (function () { throw new RuntimeError('Variable "iframe_style" does not exist.'114$this->source); })()))) {
  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.             }
  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.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  2.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""editions/entete_editeur.inc.html.twig"));
  3.         $this->parent $this->loadTemplate("templates.html.twig""editions/entete_editeur.inc.html.twig"1);
  4.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  5.         
  6.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  7.         
  8.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  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.             }
  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.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  2.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""editions/telechargements.html.twig"));
  3.         $this->parent $this->loadTemplate("editions/entete_editeur.inc.html.twig""editions/telechargements.html.twig"1);
  4.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  5.         
  6.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  7.         
  8.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  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.             }
  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.             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.     public function render(array $context = []): string
  3.     {
  4.         // using func_get_args() allows to not expose the blocks argument
  5.         // as it should only be used by internal code
  6.         return $this->template->render($context, \func_get_args()[1] ?? []);
  7.     }
  8.     /**
  9.      * Displays the template.
  10.      *
  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 = [])
  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.             }
  2.             return true;
  3.         }
  4.         return $this->render($template,
  5.             $view
  6.         );
  7.     }
  1.                 //setDebug($saisons);
  2.             }
  3.         }
  4.         return $this->view('editions/telechargements.html.twig');
  5.     }
  6.     // }}}
  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.     Debug::enable();
  2. }
  3. $kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
  4. $request Request::createFromGlobals();
  5. $response $kernel->handle($request);
  6. $response->send();
  7. $kernel->terminate($request$response);

Stack Trace

RuntimeError
Twig\Error\RuntimeError:
Key "organisation" for array with keys "idobject, object, idfile, range, idfile_original, idcontent, idperson, idtype, title, description, copyright, watermark, link, file, note_private, publishing_date, date_start, date_end, is_editable, language, id_article, id_document, dateupdate, dateinsert, publish, valid, idextranetuser, idclassification, classification, public_name, type, texts, spectacles, persons, contacts, contents, files, multimedias, dvds, playlists, lagarce, idgroupclassification, is_public, titre, descriptif, extension, mime_type, inclus, upload, maj, logo, saison, dateinsert_str, dateinsert_str_full, vignette, language_str, url_file_path, objects" does not exist.

  at /home/web/theatre-contemporain.net/dev/templates/editions/telechargements.html.twig:24
  at twig_get_attribute()
     (/home/web/theatre-contemporain.net/dev/var/cache/dev/twig/4b/4b996bb880705cb852ccc4edf180a2e3faa3d047b4d07c8585a14043372c2a05.php:110)
  at __TwigTemplate_ab33bd878730f624b57a55db6929e68b449f40d5ef51a195e0114ef936d649eb->block_subcontent()
     (/home/web/theatre-contemporain.net/dev/vendor/twig/twig/src/Template.php:182)
  at Twig\Template->displayBlock()
     (/home/web/theatre-contemporain.net/dev/var/cache/dev/twig/99/99f87eac8ec47da6d43f9f558a0ccade4ae041c241f8a0d93fcf7b51c1190c67.php:386)
  at __TwigTemplate_da39f0f8d34cae3c0e32899605ca2ab263a53196082fea22423ce41b54f904c5->block_content()
     (/home/web/theatre-contemporain.net/dev/vendor/twig/twig/src/Template.php:182)
  at Twig\Template->displayBlock()
     (/home/web/theatre-contemporain.net/dev/var/cache/dev/twig/c6/c6034497f4006f9dc070865116804ccb36d383666ed093d23104118f27db7edc.php:177)
  at __TwigTemplate_1590eee5e6149969fcf2209e20425a07e3f8fecba8db09552f1020e0ada36dc0->doDisplay()
     (/home/web/theatre-contemporain.net/dev/vendor/twig/twig/src/Template.php:405)
  at Twig\Template->displayWithErrorHandling()
     (/home/web/theatre-contemporain.net/dev/vendor/twig/twig/src/Template.php:378)
  at Twig\Template->display()
     (/home/web/theatre-contemporain.net/dev/var/cache/dev/twig/99/99f87eac8ec47da6d43f9f558a0ccade4ae041c241f8a0d93fcf7b51c1190c67.php:50)
  at __TwigTemplate_da39f0f8d34cae3c0e32899605ca2ab263a53196082fea22423ce41b54f904c5->doDisplay()
     (/home/web/theatre-contemporain.net/dev/vendor/twig/twig/src/Template.php:405)
  at Twig\Template->displayWithErrorHandling()
     (/home/web/theatre-contemporain.net/dev/vendor/twig/twig/src/Template.php:378)
  at Twig\Template->display()
     (/home/web/theatre-contemporain.net/dev/var/cache/dev/twig/4b/4b996bb880705cb852ccc4edf180a2e3faa3d047b4d07c8585a14043372c2a05.php:48)
  at __TwigTemplate_ab33bd878730f624b57a55db6929e68b449f40d5ef51a195e0114ef936d649eb->doDisplay()
     (/home/web/theatre-contemporain.net/dev/vendor/twig/twig/src/Template.php:405)
  at Twig\Template->displayWithErrorHandling()
     (/home/web/theatre-contemporain.net/dev/vendor/twig/twig/src/Template.php:378)
  at Twig\Template->display()
     (/home/web/theatre-contemporain.net/dev/vendor/twig/twig/src/Template.php:390)
  at Twig\Template->render()
     (/home/web/theatre-contemporain.net/dev/vendor/twig/twig/src/TemplateWrapper.php:45)
  at Twig\TemplateWrapper->render()
     (/home/web/theatre-contemporain.net/dev/vendor/twig/twig/src/Environment.php:318)
  at Twig\Environment->render()
     (/home/web/theatre-contemporain.net/dev/vendor/symfony/framework-bundle/Controller/AbstractController.php:258)
  at Symfony\Bundle\FrameworkBundle\Controller\AbstractController->renderView()
     (/home/web/theatre-contemporain.net/dev/vendor/symfony/framework-bundle/Controller/AbstractController.php:266)
  at Symfony\Bundle\FrameworkBundle\Controller\AbstractController->render()
     (/home/web/theatre-contemporain.net/dev/src/ClassTheatre/TheatreController.php:229)
  at App\ClassTheatre\TheatreController->view()
     (/home/web/theatre-contemporain.net/dev/src/Controller/EditionController.php:1821)
  at App\Controller\EditionController->action_telechargements()
     (/home/web/theatre-contemporain.net/dev/vendor/symfony/http-kernel/HttpKernel.php:163)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
     (/home/web/theatre-contemporain.net/dev/vendor/symfony/http-kernel/HttpKernel.php:75)
  at Symfony\Component\HttpKernel\HttpKernel->handle()
     (/home/web/theatre-contemporain.net/dev/vendor/symfony/http-kernel/Kernel.php:202)
  at Symfony\Component\HttpKernel\Kernel->handle()
     (/home/web/theatre-contemporain.net/dev/public/index.php:20)