</a>
</span>
</div>
<div class="tc-block-body">
<figure class="tc-media-thumbnail">
<a href="{{ file.url_file_path }}" ><img src="{{ file.vignette }}" class="tc-border-neutral" style="width:100px" alt="{{ file.organisation }}" /></a>
</figure>
<div class="tc-block-body-text">
{% if file.public_name is defined and file.public_name %}
<p class="tc-textwrap-margin"><span class="tc-text-label">Catégorie</span> {{ file.public_name }}</p>
{% endif %}
// line 24
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["file"], "url_file_path", [], "any", false, false, false, 24), "html", null, true);
echo "\" ><img src=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["file"], "vignette", [], "any", false, false, false, 24), "html", null, true);
echo "\" class=\"tc-border-neutral\" style=\"width:100px\" alt=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["file"], "organisation", [], "any", false, false, false, 24), "html", null, true);
echo "\" /></a>
</figure>
<div class=\"tc-block-body-text\">
";
// line 27
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());
}
// line 109
echo " ";
$this->loadTemplate("includes/navigation.inc.html.twig", "editions/entete_editeur.inc.html.twig", 109)->display($context);
// line 110
echo " ";
$this->displayBlock('subcontent', $context, $blocks);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
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());
}
";
// line 111
$this->displayBlock('headcontent', $context, $blocks);
// line 112
echo " ";
$this->displayBlock('content', $context, $blocks);
// line 113
echo "
";
// line 114
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); })()))) {
}
protected function displayWithErrorHandling(array $context, array $blocks = [])
{
try {
$this->doDisplay($context, $blocks);
} catch (Error $e) {
if (!$e->getSourceContext()) {
$e->setSourceContext($this->getSourceContext());
}
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();
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "editions/entete_editeur.inc.html.twig"));
$this->parent = $this->loadTemplate("templates.html.twig", "editions/entete_editeur.inc.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
protected function displayWithErrorHandling(array $context, array $blocks = [])
{
try {
$this->doDisplay($context, $blocks);
} catch (Error $e) {
if (!$e->getSourceContext()) {
$e->setSourceContext($this->getSourceContext());
}
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();
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "editions/telechargements.html.twig"));
$this->parent = $this->loadTemplate("editions/entete_editeur.inc.html.twig", "editions/telechargements.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
protected function displayWithErrorHandling(array $context, array $blocks = [])
{
try {
$this->doDisplay($context, $blocks);
} catch (Error $e) {
if (!$e->getSourceContext()) {
$e->setSourceContext($this->getSourceContext());
}
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();
ob_start();
} else {
ob_start(function () { return ''; });
}
try {
$this->display($context);
} catch (\Throwable $e) {
while (ob_get_level() > $level) {
ob_end_clean();
}
*/
public function render(array $context = []): string
{
// using func_get_args() allows to not expose the blocks argument
// as it should only be used by internal code
return $this->template->render($context, \func_get_args()[1] ?? []);
}
/**
* Displays the template.
*
* @throws SyntaxError When an error occurred during compilation
* @throws RuntimeError When an error occurred during rendering
*/
public function render($name, array $context = [])
{
return $this->load($name)->render($context);
}
/**
* Displays a template.
*
{
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.
*/
/**
* 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();
}
}
return true;
}
return $this->render($template,
$view
);
}
//setDebug($saisons);
}
}
return $this->view('editions/telechargements.html.twig');
}
// }}}
$this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
$controller = $event->getController();
$arguments = $event->getArguments();
// call controller
$response = $controller(...$arguments);
// view
if (!$response instanceof Response) {
$event = new ViewEvent($this, $request, $type, $response);
$this->dispatcher->dispatch($event, KernelEvents::VIEW);
{
$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) {
$this->boot();
++$this->requestStackSize;
$this->resetServices = true;
try {
return $this->getHttpKernel()->handle($request, $type, $catch);
} finally {
--$this->requestStackSize;
}
}
Debug::enable();
}
$kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
$request = Request::createFromGlobals();
$response = $kernel->handle($request);
$response->send();
$kernel->terminate($request, $response);
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) |