{% trans_default_domain "frontend" %}
{% extends 'frontend/base.html.twig' %}
{% block header_styles %}
{% if page is defined and page.HeaderPicture %}
<style media="screen">
@media (min-width: 576px) {
.navigation {
background: url({{ page.HeaderPicture }}) no-repeat top center;
background-size: contain;
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header_styles"));
// line 5
echo " ";
if (((isset($context["page"]) || array_key_exists("page", $context)) && twig_get_attribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 5, $this->source); })()), "HeaderPicture", [], "any", false, false, false, 5))) {
// line 6
echo " <style media=\"screen\">
@media (min-width: 576px) {
.navigation {
background: url(";
$macros = $this->macros;
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "frontend/default.html.twig"));
$this->parent = $this->loadTemplate("frontend/base.html.twig", "frontend/default.html.twig", 2);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
* @final since version 3.4
*/
protected function render($view, array $parameters = [], Response $response = null)
{
if ($this->container->has('templating')) {
$content = $this->container->get('templating')->render($view, $parameters);
} elseif ($this->container->has('twig')) {
$content = $this->container->get('twig')->render($view, $parameters);
} else {
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".');
}
$this->dispatcher->dispatch(KernelEvents::CONTROLLER_ARGUMENTS, $event);
$controller = $event->getController();
$arguments = $event->getArguments();
// call controller
$response = \call_user_func_array($controller, $arguments);
// view
if (!$response instanceof Response) {
$event = new GetResponseForControllerResultEvent($this, $request, $type, $response);
$this->dispatcher->dispatch(KernelEvents::VIEW, $event);
public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true)
{
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
try {
return $this->handleRaw($request, $type);
} catch (\Exception $e) {
if ($e instanceof RequestExceptionInterface) {
$e = new BadRequestHttpException($e->getMessage(), $e);
}
if (false === $catch) {
No log messages
RuntimeError |
---|
Twig\Error\RuntimeError: Impossible to access an attribute ("HeaderPicture") on a null variable. at templates/frontend/default.html.twig:5 at twig_get_attribute(object(Environment), object(Source), null, 'HeaderPicture', array(), 'any', false, false, false, 5) (/var/www/nginx/college-la-croix-st-marceau.fr/shared/var/cache/PROD/twig/d3/d32bcf33a0d57cb82ee0658a2eb1e82ec234510daf34f71ef04c474bddf06b1c.php:63) at __TwigTemplate_55765ae4876427f60586679d4ae5eda9f794973f28317585008f76c7ec15168a->block_header_styles(array('page' => null, 'events' => array(object(Event), object(Event)), 'categories' => array(object(Category), object(Category), object(Category), object(Category), object(Category), object(Category), object(Category), object(Category)), 'wrap_fields_with_addons' => false, 'app' => object(AppVariable), 'kernelRootDir' => '/var/www/nginx/college-la-croix-st-marceau.fr/releases/20200112162735/src', 'kernelProjectDir' => '/var/www/nginx/college-la-croix-st-marceau.fr/releases/20200112162735', 'sonata_block' => object(GlobalVariables), 'sonata_admin' => object(GlobalVariables), 'sonata_user' => object(GlobalVariables), 'sonata_translation_locales' => array('fr'), 'sonata_media' => object(GlobalVariables)), array('metatitle' => array(object(__TwigTemplate_4866a6f208de5ed9166fb9ca18048585034686dfefa42c653240e9be15955925), 'block_metatitle'), 'metadescription' => array(object(__TwigTemplate_4866a6f208de5ed9166fb9ca18048585034686dfefa42c653240e9be15955925), 'block_metadescription'), 'stylesheets' => array(object(__TwigTemplate_4866a6f208de5ed9166fb9ca18048585034686dfefa42c653240e9be15955925), 'block_stylesheets'), 'header_styles' => array(object(__TwigTemplate_55765ae4876427f60586679d4ae5eda9f794973f28317585008f76c7ec15168a), 'block_header_styles'), 'body_class' => array(object(__TwigTemplate_4866a6f208de5ed9166fb9ca18048585034686dfefa42c653240e9be15955925), 'block_body_class'), 'body' => array(object(__TwigTemplate_4866a6f208de5ed9166fb9ca18048585034686dfefa42c653240e9be15955925), 'block_body'), 'h1' => array(object(__TwigTemplate_55765ae4876427f60586679d4ae5eda9f794973f28317585008f76c7ec15168a), 'block_h1'), 'summary' => array(object(__TwigTemplate_55765ae4876427f60586679d4ae5eda9f794973f28317585008f76c7ec15168a), 'block_summary'), 'content' => array(object(__TwigTemplate_55765ae4876427f60586679d4ae5eda9f794973f28317585008f76c7ec15168a), 'block_content'), 'footer' => array(object(__TwigTemplate_4866a6f208de5ed9166fb9ca18048585034686dfefa42c653240e9be15955925), 'block_footer'), 'javascripts' => array(object(__TwigTemplate_4866a6f208de5ed9166fb9ca18048585034686dfefa42c653240e9be15955925), 'block_javascripts'))) (vendor/twig/twig/src/Template.php:184) at Twig\Template->displayBlock('header_styles', array('page' => null, 'events' => array(object(Event), object(Event)), 'categories' => array(object(Category), object(Category), object(Category), object(Category), object(Category), object(Category), object(Category), object(Category)), 'wrap_fields_with_addons' => false, 'app' => object(AppVariable), 'kernelRootDir' => '/var/www/nginx/college-la-croix-st-marceau.fr/releases/20200112162735/src', 'kernelProjectDir' => '/var/www/nginx/college-la-croix-st-marceau.fr/releases/20200112162735', 'sonata_block' => object(GlobalVariables), 'sonata_admin' => object(GlobalVariables), 'sonata_user' => object(GlobalVariables), 'sonata_translation_locales' => array('fr'), 'sonata_media' => object(GlobalVariables)), array('metatitle' => array(object(__TwigTemplate_4866a6f208de5ed9166fb9ca18048585034686dfefa42c653240e9be15955925), 'block_metatitle'), 'metadescription' => array(object(__TwigTemplate_4866a6f208de5ed9166fb9ca18048585034686dfefa42c653240e9be15955925), 'block_metadescription'), 'stylesheets' => array(object(__TwigTemplate_4866a6f208de5ed9166fb9ca18048585034686dfefa42c653240e9be15955925), 'block_stylesheets'), 'header_styles' => array(object(__TwigTemplate_55765ae4876427f60586679d4ae5eda9f794973f28317585008f76c7ec15168a), 'block_header_styles'), 'body_class' => array(object(__TwigTemplate_4866a6f208de5ed9166fb9ca18048585034686dfefa42c653240e9be15955925), 'block_body_class'), 'body' => array(object(__TwigTemplate_4866a6f208de5ed9166fb9ca18048585034686dfefa42c653240e9be15955925), 'block_body'), 'h1' => array(object(__TwigTemplate_55765ae4876427f60586679d4ae5eda9f794973f28317585008f76c7ec15168a), 'block_h1'), 'summary' => array(object(__TwigTemplate_55765ae4876427f60586679d4ae5eda9f794973f28317585008f76c7ec15168a), 'block_summary'), 'content' => array(object(__TwigTemplate_55765ae4876427f60586679d4ae5eda9f794973f28317585008f76c7ec15168a), 'block_content'), 'footer' => array(object(__TwigTemplate_4866a6f208de5ed9166fb9ca18048585034686dfefa42c653240e9be15955925), 'block_footer'), 'javascripts' => array(object(__TwigTemplate_4866a6f208de5ed9166fb9ca18048585034686dfefa42c653240e9be15955925), 'block_javascripts'))) (/var/www/nginx/college-la-croix-st-marceau.fr/shared/var/cache/PROD/twig/02/02eba04c7b5afcacf2a0b67b1e7eaf9c727149af3a376db80fce9b1eda7602d8.php:91) at __TwigTemplate_4866a6f208de5ed9166fb9ca18048585034686dfefa42c653240e9be15955925->doDisplay(array('page' => null, 'events' => array(object(Event), object(Event)), 'categories' => array(object(Category), object(Category), object(Category), object(Category), object(Category), object(Category), object(Category), object(Category)), 'wrap_fields_with_addons' => false, 'app' => object(AppVariable), 'kernelRootDir' => '/var/www/nginx/college-la-croix-st-marceau.fr/releases/20200112162735/src', 'kernelProjectDir' => '/var/www/nginx/college-la-croix-st-marceau.fr/releases/20200112162735', 'sonata_block' => object(GlobalVariables), 'sonata_admin' => object(GlobalVariables), 'sonata_user' => object(GlobalVariables), 'sonata_translation_locales' => array('fr'), 'sonata_media' => object(GlobalVariables)), array('metatitle' => array(object(__TwigTemplate_4866a6f208de5ed9166fb9ca18048585034686dfefa42c653240e9be15955925), 'block_metatitle'), 'metadescription' => array(object(__TwigTemplate_4866a6f208de5ed9166fb9ca18048585034686dfefa42c653240e9be15955925), 'block_metadescription'), 'stylesheets' => array(object(__TwigTemplate_4866a6f208de5ed9166fb9ca18048585034686dfefa42c653240e9be15955925), 'block_stylesheets'), 'header_styles' => array(object(__TwigTemplate_55765ae4876427f60586679d4ae5eda9f794973f28317585008f76c7ec15168a), 'block_header_styles'), 'body_class' => array(object(__TwigTemplate_4866a6f208de5ed9166fb9ca18048585034686dfefa42c653240e9be15955925), 'block_body_class'), 'body' => array(object(__TwigTemplate_4866a6f208de5ed9166fb9ca18048585034686dfefa42c653240e9be15955925), 'block_body'), 'h1' => array(object(__TwigTemplate_55765ae4876427f60586679d4ae5eda9f794973f28317585008f76c7ec15168a), 'block_h1'), 'summary' => array(object(__TwigTemplate_55765ae4876427f60586679d4ae5eda9f794973f28317585008f76c7ec15168a), 'block_summary'), 'content' => array(object(__TwigTemplate_55765ae4876427f60586679d4ae5eda9f794973f28317585008f76c7ec15168a), 'block_content'), 'footer' => array(object(__TwigTemplate_4866a6f208de5ed9166fb9ca18048585034686dfefa42c653240e9be15955925), 'block_footer'), 'javascripts' => array(object(__TwigTemplate_4866a6f208de5ed9166fb9ca18048585034686dfefa42c653240e9be15955925), 'block_javascripts'))) (vendor/twig/twig/src/Template.php:407) at Twig\Template->displayWithErrorHandling(array('page' => null, 'events' => array(object(Event), object(Event)), 'categories' => array(object(Category), object(Category), object(Category), object(Category), object(Category), object(Category), object(Category), object(Category)), 'wrap_fields_with_addons' => false, 'app' => object(AppVariable), 'kernelRootDir' => '/var/www/nginx/college-la-croix-st-marceau.fr/releases/20200112162735/src', 'kernelProjectDir' => '/var/www/nginx/college-la-croix-st-marceau.fr/releases/20200112162735', 'sonata_block' => object(GlobalVariables), 'sonata_admin' => object(GlobalVariables), 'sonata_user' => object(GlobalVariables), 'sonata_translation_locales' => array('fr'), 'sonata_media' => object(GlobalVariables)), array('metatitle' => array(object(__TwigTemplate_4866a6f208de5ed9166fb9ca18048585034686dfefa42c653240e9be15955925), 'block_metatitle'), 'metadescription' => array(object(__TwigTemplate_4866a6f208de5ed9166fb9ca18048585034686dfefa42c653240e9be15955925), 'block_metadescription'), 'stylesheets' => array(object(__TwigTemplate_4866a6f208de5ed9166fb9ca18048585034686dfefa42c653240e9be15955925), 'block_stylesheets'), 'header_styles' => array(object(__TwigTemplate_55765ae4876427f60586679d4ae5eda9f794973f28317585008f76c7ec15168a), 'block_header_styles'), 'body_class' => array(object(__TwigTemplate_4866a6f208de5ed9166fb9ca18048585034686dfefa42c653240e9be15955925), 'block_body_class'), 'body' => array(object(__TwigTemplate_4866a6f208de5ed9166fb9ca18048585034686dfefa42c653240e9be15955925), 'block_body'), 'h1' => array(object(__TwigTemplate_55765ae4876427f60586679d4ae5eda9f794973f28317585008f76c7ec15168a), 'block_h1'), 'summary' => array(object(__TwigTemplate_55765ae4876427f60586679d4ae5eda9f794973f28317585008f76c7ec15168a), 'block_summary'), 'content' => array(object(__TwigTemplate_55765ae4876427f60586679d4ae5eda9f794973f28317585008f76c7ec15168a), 'block_content'), 'footer' => array(object(__TwigTemplate_4866a6f208de5ed9166fb9ca18048585034686dfefa42c653240e9be15955925), 'block_footer'), 'javascripts' => array(object(__TwigTemplate_4866a6f208de5ed9166fb9ca18048585034686dfefa42c653240e9be15955925), 'block_javascripts'))) (vendor/twig/twig/src/Template.php:380) at Twig\Template->display(array('page' => null, 'events' => array(object(Event), object(Event)), 'categories' => array(object(Category), object(Category), object(Category), object(Category), object(Category), object(Category), object(Category), object(Category)), 'wrap_fields_with_addons' => false, 'app' => object(AppVariable), 'kernelRootDir' => '/var/www/nginx/college-la-croix-st-marceau.fr/releases/20200112162735/src', 'kernelProjectDir' => '/var/www/nginx/college-la-croix-st-marceau.fr/releases/20200112162735', 'sonata_block' => object(GlobalVariables), 'sonata_admin' => object(GlobalVariables), 'sonata_user' => object(GlobalVariables), 'sonata_translation_locales' => array('fr'), 'sonata_media' => object(GlobalVariables)), array('header_styles' => array(object(__TwigTemplate_55765ae4876427f60586679d4ae5eda9f794973f28317585008f76c7ec15168a), 'block_header_styles'), 'h1' => array(object(__TwigTemplate_55765ae4876427f60586679d4ae5eda9f794973f28317585008f76c7ec15168a), 'block_h1'), 'summary' => array(object(__TwigTemplate_55765ae4876427f60586679d4ae5eda9f794973f28317585008f76c7ec15168a), 'block_summary'), 'content' => array(object(__TwigTemplate_55765ae4876427f60586679d4ae5eda9f794973f28317585008f76c7ec15168a), 'block_content'))) (/var/www/nginx/college-la-croix-st-marceau.fr/shared/var/cache/PROD/twig/d3/d32bcf33a0d57cb82ee0658a2eb1e82ec234510daf34f71ef04c474bddf06b1c.php:48) at __TwigTemplate_55765ae4876427f60586679d4ae5eda9f794973f28317585008f76c7ec15168a->doDisplay(array('page' => null, 'events' => array(object(Event), object(Event)), 'categories' => array(object(Category), object(Category), object(Category), object(Category), object(Category), object(Category), object(Category), object(Category)), 'wrap_fields_with_addons' => false, 'app' => object(AppVariable), 'kernelRootDir' => '/var/www/nginx/college-la-croix-st-marceau.fr/releases/20200112162735/src', 'kernelProjectDir' => '/var/www/nginx/college-la-croix-st-marceau.fr/releases/20200112162735', 'sonata_block' => object(GlobalVariables), 'sonata_admin' => object(GlobalVariables), 'sonata_user' => object(GlobalVariables), 'sonata_translation_locales' => array('fr'), 'sonata_media' => object(GlobalVariables)), array('header_styles' => array(object(__TwigTemplate_55765ae4876427f60586679d4ae5eda9f794973f28317585008f76c7ec15168a), 'block_header_styles'), 'h1' => array(object(__TwigTemplate_55765ae4876427f60586679d4ae5eda9f794973f28317585008f76c7ec15168a), 'block_h1'), 'summary' => array(object(__TwigTemplate_55765ae4876427f60586679d4ae5eda9f794973f28317585008f76c7ec15168a), 'block_summary'), 'content' => array(object(__TwigTemplate_55765ae4876427f60586679d4ae5eda9f794973f28317585008f76c7ec15168a), 'block_content'))) (vendor/twig/twig/src/Template.php:407) at Twig\Template->displayWithErrorHandling(array('page' => null, 'events' => array(object(Event), object(Event)), 'categories' => array(object(Category), object(Category), object(Category), object(Category), object(Category), object(Category), object(Category), object(Category)), 'wrap_fields_with_addons' => false, 'app' => object(AppVariable), 'kernelRootDir' => '/var/www/nginx/college-la-croix-st-marceau.fr/releases/20200112162735/src', 'kernelProjectDir' => '/var/www/nginx/college-la-croix-st-marceau.fr/releases/20200112162735', 'sonata_block' => object(GlobalVariables), 'sonata_admin' => object(GlobalVariables), 'sonata_user' => object(GlobalVariables), 'sonata_translation_locales' => array('fr'), 'sonata_media' => object(GlobalVariables)), array('header_styles' => array(object(__TwigTemplate_55765ae4876427f60586679d4ae5eda9f794973f28317585008f76c7ec15168a), 'block_header_styles'), 'h1' => array(object(__TwigTemplate_55765ae4876427f60586679d4ae5eda9f794973f28317585008f76c7ec15168a), 'block_h1'), 'summary' => array(object(__TwigTemplate_55765ae4876427f60586679d4ae5eda9f794973f28317585008f76c7ec15168a), 'block_summary'), 'content' => array(object(__TwigTemplate_55765ae4876427f60586679d4ae5eda9f794973f28317585008f76c7ec15168a), 'block_content'))) (vendor/twig/twig/src/Template.php:380) at Twig\Template->display(array('page' => null, 'events' => array(object(Event), object(Event)), 'categories' => array(object(Category), object(Category), object(Category), object(Category), object(Category), object(Category), object(Category), object(Category)))) (vendor/twig/twig/src/Template.php:392) at Twig\Template->render(array('page' => null, 'events' => array(object(Event), object(Event)), 'categories' => array(object(Category), object(Category), object(Category), object(Category), object(Category), object(Category), object(Category), object(Category)))) (vendor/symfony/twig-bridge/TwigEngine.php:50) at Symfony\Bridge\Twig\TwigEngine->render('frontend/default.html.twig', array('page' => null, 'events' => array(object(Event), object(Event)), 'categories' => array(object(Category), object(Category), object(Category), object(Category), object(Category), object(Category), object(Category), object(Category)))) (vendor/symfony/framework-bundle/Controller/ControllerTrait.php:284) at Symfony\Bundle\FrameworkBundle\Controller\Controller->render('frontend/default.html.twig', array('page' => null, 'events' => array(object(Event), object(Event)), 'categories' => array(object(Category), object(Category), object(Category), object(Category), object(Category), object(Category), object(Category), object(Category)))) (src/Controller/Frontend/FrontController.php:282) at App\Controller\Frontend\FrontController->default(object(Request)) (vendor/symfony/http-kernel/HttpKernel.php:151) at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1) (vendor/symfony/http-kernel/HttpKernel.php:68) at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true) (vendor/symfony/http-kernel/Kernel.php:200) at Symfony\Component\HttpKernel\Kernel->handle(object(Request)) (public/index.php:37) |