Symfony Exception

RuntimeError

HTTP 500 Internal Server Error

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

Exception

Twig\Error\ RuntimeError

  1.                 </div>
  2.             </div>
  3.         </div>
  4.     </div>
  5.     <h2 style="text-align: center;">
  6.         {{ sousmenu2.surtitre|raw}}</h2>
  7.     
  8.     <h1 style="text-align: center;">
  9.         {{ sousmenu2.title|raw}}
  10.     </h1>
  1. \t\t</div>
  2. \t</div>
  3. \t<h2 style=\"text-align: center;\">
  4. \t\t";
  5.         // line 18
  6.         echo twig_get_attribute($this->env$this->source, (isset($context["sousmenu2"]) || array_key_exists("sousmenu2"$context) ? $context["sousmenu2"] : (function () { throw new RuntimeError('Variable "sousmenu2" does not exist.'18$this->source); })()), "surtitre", [], "any"falsefalsefalse18);
  7.         echo "</h2>
  8. \t
  9. \t<h1 style=\"text-align: center;\">
  10. \t\t";
in vendor/twig/twig/src/Template.php -> block_body (line 171)
  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.         $_parent $context['_parent'];
  2.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['message'], $context['_parent'], $context['loop']);
  3.         $context array_intersect_key($context$_parent) + $_parent;
  4.         // line 172
  5.         echo "        ";
  6.         $this->displayBlock('body'$context$blocks);
  7.         // line 175
  8.         echo "
  9.         <!-- Footer Start -->
  10.         <div class=\"footer\">
  11.             <div class=\"container\">
in vendor/twig/twig/src/Template.php -> doDisplay (line 394)
  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.             }
in vendor/twig/twig/src/Template.php -> displayWithErrorHandling (line 367)
  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_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  2.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""sousmenu2/tourisme.html.twig"));
  3.         $this->parent $this->loadTemplate("base1.html.twig""sousmenu2/tourisme.html.twig"1);
  4.         $this->parent->display($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 394)
  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.             }
in vendor/twig/twig/src/Template.php -> displayWithErrorHandling (line 367)
  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();
in vendor/twig/twig/src/Template.php -> display (line 379)
  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.     public function render(array $context = []): string
  2.     {
  3.         // using func_get_args() allows to not expose the blocks argument
  4.         // as it should only be used by internal code
  5.         return $this->template->render($context\func_get_args()[1] ?? []);
  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/Sousmenu2Controller.php (line 516)
  1. #[Route('/tourisme'name:'app_sousmenu2_tourisme'methods:['GET'])]
  2. function tourisme(MenuRepository $menuRepositorySousmenuRepository $sousmenuRepositorySousmenu2Repository $sousmenu2RepositoryMagazineRepository $magazineRepository): Response
  3.     {$imagelink=null;
  4.     $sousmenu2 $magazineRepository->findOneBy(['path' => 'app_magazine_tourisme','statut'=>true]);
  5.     return $this->render('sousmenu2/tourisme.html.twig', [
  6.         'menus' => $menuRepository->findBy(array(),
  7.         array('position'=>'ASC')),
  8.         'sousmenu' => $sousmenuRepository->findAll(),
  9.         'sousmenu2' => $sousmenu2,
  10.         'imagelink'=>$imagelink
  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('/home/c2049812c/public_html/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. };

Logs 1

Level Channel Message
INFO 14:55:04 request Matched route "app_sousmenu2_tourisme".
{
    "route": "app_sousmenu2_tourisme",
    "route_parameters": {
        "_route": "app_sousmenu2_tourisme",
        "_controller": "App\\Controller\\Sousmenu2Controller::tourisme"
    },
    "request_uri": "https://nosrichesses.com/tourisme",
    "method": "GET"
}
DEBUG 14:55:04 security Checking for authenticator support.
{
    "firewall_name": "main",
    "authenticators": 1
}
DEBUG 14:55:04 security Checking support on authenticator.
{
    "firewall_name": "main",
    "authenticator": "App\\Security\\LoginFormAuthenticator"
}
DEBUG 14:55:04 security Authenticator does not support the request.
{
    "firewall_name": "main",
    "authenticator": "App\\Security\\LoginFormAuthenticator"
}
DEBUG 14:55:04 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\DebugHandlersListener::configure".
{
    "event": "kernel.request",
    "listener": "Symfony\\Component\\HttpKernel\\EventListener\\DebugHandlersListener::configure"
}
DEBUG 14:55:04 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\ValidateRequestListener::onKernelRequest".
{
    "event": "kernel.request",
    "listener": "Symfony\\Component\\HttpKernel\\EventListener\\ValidateRequestListener::onKernelRequest"
}
DEBUG 14:55:04 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\SessionListener::onKernelRequest".
{
    "event": "kernel.request",
    "listener": "Symfony\\Component\\HttpKernel\\EventListener\\SessionListener::onKernelRequest"
}
DEBUG 14:55:04 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\LocaleListener::setDefaultLocale".
{
    "event": "kernel.request",
    "listener": "Symfony\\Component\\HttpKernel\\EventListener\\LocaleListener::setDefaultLocale"
}
DEBUG 14:55:04 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\RouterListener::onKernelRequest".
{
    "event": "kernel.request",
    "listener": "Symfony\\Component\\HttpKernel\\EventListener\\RouterListener::onKernelRequest"
}
DEBUG 14:55:04 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\LocaleListener::onKernelRequest".
{
    "event": "kernel.request",
    "listener": "Symfony\\Component\\HttpKernel\\EventListener\\LocaleListener::onKernelRequest"
}
DEBUG 14:55:04 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\LocaleAwareListener::onKernelRequest".
{
    "event": "kernel.request",
    "listener": "Symfony\\Component\\HttpKernel\\EventListener\\LocaleAwareListener::onKernelRequest"
}
DEBUG 14:55:04 event Notified event "kernel.request" to listener "Symfony\Bundle\SecurityBundle\Debug\TraceableFirewallListener::configureLogoutUrlGenerator".
{
    "event": "kernel.request",
    "listener": "Symfony\\Bundle\\SecurityBundle\\Debug\\TraceableFirewallListener::configureLogoutUrlGenerator"
}
DEBUG 14:55:04 event Notified event "kernel.request" to listener "Symfony\Bundle\SecurityBundle\Debug\TraceableFirewallListener::onKernelRequest".
{
    "event": "kernel.request",
    "listener": "Symfony\\Bundle\\SecurityBundle\\Debug\\TraceableFirewallListener::onKernelRequest"
}
DEBUG 14:55:04 event Notified event "kernel.request" to listener "Knp\Bundle\PaginatorBundle\Subscriber\SlidingPaginationSubscriber::onKernelRequest".
{
    "event": "kernel.request",
    "listener": "Knp\\Bundle\\PaginatorBundle\\Subscriber\\SlidingPaginationSubscriber::onKernelRequest"
}
DEBUG 14:55:04 event Notified event "kernel.controller" to listener "Symfony\Bundle\FrameworkBundle\DataCollector\RouterDataCollector::onKernelController".
{
    "event": "kernel.controller",
    "listener": "Symfony\\Bundle\\FrameworkBundle\\DataCollector\\RouterDataCollector::onKernelController"
}
DEBUG 14:55:04 event Notified event "kernel.controller" to listener "Symfony\Component\HttpKernel\DataCollector\RequestDataCollector::onKernelController".
{
    "event": "kernel.controller",
    "listener": "Symfony\\Component\\HttpKernel\\DataCollector\\RequestDataCollector::onKernelController"
}
DEBUG 14:55:04 event Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\ControllerListener::onKernelController".
{
    "event": "kernel.controller",
    "listener": "Sensio\\Bundle\\FrameworkExtraBundle\\EventListener\\ControllerListener::onKernelController"
}
DEBUG 14:55:04 event Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\ParamConverterListener::onKernelController".
{
    "event": "kernel.controller",
    "listener": "Sensio\\Bundle\\FrameworkExtraBundle\\EventListener\\ParamConverterListener::onKernelController"
}
DEBUG 14:55:04 event Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\HttpCacheListener::onKernelController".
{
    "event": "kernel.controller",
    "listener": "Sensio\\Bundle\\FrameworkExtraBundle\\EventListener\\HttpCacheListener::onKernelController"
}
DEBUG 14:55:04 event Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\TemplateListener::onKernelController".
{
    "event": "kernel.controller",
    "listener": "Sensio\\Bundle\\FrameworkExtraBundle\\EventListener\\TemplateListener::onKernelController"
}
DEBUG 14:55:04 event Notified event "kernel.controller_arguments" to listener "Symfony\Component\HttpKernel\EventListener\ErrorListener::onControllerArguments".
{
    "event": "kernel.controller_arguments",
    "listener": "Symfony\\Component\\HttpKernel\\EventListener\\ErrorListener::onControllerArguments"
}
DEBUG 14:55:04 event Notified event "kernel.controller_arguments" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\SecurityListener::onKernelControllerArguments".
{
    "event": "kernel.controller_arguments",
    "listener": "Sensio\\Bundle\\FrameworkExtraBundle\\EventListener\\SecurityListener::onKernelControllerArguments"
}
DEBUG 14:55:04 event Notified event "kernel.controller_arguments" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\IsGrantedListener::onKernelControllerArguments".
{
    "event": "kernel.controller_arguments",
    "listener": "Sensio\\Bundle\\FrameworkExtraBundle\\EventListener\\IsGrantedListener::onKernelControllerArguments"
}
INFO 14:55:04 doctrine Connecting with parameters {params}
{
    "params": {
        "url": "<redacted>",
        "driver": "pdo_mysql",
        "host": "127.0.0.1",
        "port": 3306,
        "user": "c2049812c_dbuser",
        "password": "<redacted>",
        "driverOptions": [],
        "defaultTableOptions": {
            "collation": "utf8mb4_unicode_ci"
        },
        "dbname": "c2049812c_dokunmiton",
        "serverVersion": "mariadb-10.4.13",
        "charset": "utf8mb4"
    }
}
DEBUG 14:55:04 doctrine Executing statement: SELECT t0.id AS id_1, t0.surtitre AS surtitre_2, t0.title AS title_3, t0.soustitre AS soustitre_4, t0.images AS images_5, t0.content1 AS content1_6, t0.content2 AS content2_7, t0.content3 AS content3_8, t0.signature AS signature_9, t0.statut AS statut_10, t0.created_at AS created_at_11, t0.updated_at AS updated_at_12, t0.path AS path_13, t0.menu_id AS menu_id_14, t0.sousmenu_id AS sousmenu_id_15, t0.sousmenu2_id AS sousmenu2_id_16 FROM magazine t0 WHERE t0.path = ? AND t0.statut = ? LIMIT 1 (parameters: {params}, types: {types})
{
    "sql": "SELECT t0.id AS id_1, t0.surtitre AS surtitre_2, t0.title AS title_3, t0.soustitre AS soustitre_4, t0.images AS images_5, t0.content1 AS content1_6, t0.content2 AS content2_7, t0.content3 AS content3_8, t0.signature AS signature_9, t0.statut AS statut_10, t0.created_at AS created_at_11, t0.updated_at AS updated_at_12, t0.path AS path_13, t0.menu_id AS menu_id_14, t0.sousmenu_id AS sousmenu_id_15, t0.sousmenu2_id AS sousmenu2_id_16 FROM magazine t0 WHERE t0.path = ? AND t0.statut = ? LIMIT 1",
    "params": {
        "1": "app_magazine_tourisme",
        "2": 1
    },
    "types": {
        "1": 2,
        "2": 5
    }
}
DEBUG 14:55:04 doctrine Executing query: SELECT t0.title AS title_1, t0.path AS path_2, t0.content AS content_3, t0.image AS image_4, t0.video AS video_5, t0.statut AS statut_6, t0.position AS position_7, t0.id AS id_8, t0.created_at AS created_at_9, t0.updated_at AS updated_at_10 FROM menu t0 ORDER BY t0.position ASC
{
    "sql": "SELECT t0.title AS title_1, t0.path AS path_2, t0.content AS content_3, t0.image AS image_4, t0.video AS video_5, t0.statut AS statut_6, t0.position AS position_7, t0.id AS id_8, t0.created_at AS created_at_9, t0.updated_at AS updated_at_10 FROM menu t0 ORDER BY t0.position ASC"
}
DEBUG 14:55:04 doctrine Executing query: SELECT t0.intitule AS intitule_1, t0.path AS path_2, t0.content AS content_3, t0.image AS image_4, t0.video AS video_5, t0.statut AS statut_6, t0.id AS id_7, t0.created_at AS created_at_8, t0.updated_at AS updated_at_9, t0.menus_id AS menus_id_10 FROM sousmenu t0
{
    "sql": "SELECT t0.intitule AS intitule_1, t0.path AS path_2, t0.content AS content_3, t0.image AS image_4, t0.video AS video_5, t0.statut AS statut_6, t0.id AS id_7, t0.created_at AS created_at_8, t0.updated_at AS updated_at_9, t0.menus_id AS menus_id_10 FROM sousmenu t0"
}
DEBUG 14:55:04 doctrine Executing statement: SELECT t0.intitule AS intitule_1, t0.path AS path_2, t0.content AS content_3, t0.image AS image_4, t0.video AS video_5, t0.statut AS statut_6, t0.id AS id_7, t0.created_at AS created_at_8, t0.updated_at AS updated_at_9, t0.menus_id AS menus_id_10 FROM sousmenu t0 WHERE t0.menus_id = ? (parameters: {params}, types: {types})

                            
DEBUG 14:55:04 doctrine Executing statement: SELECT t0.intitule AS intitule_1, t0.path AS path_2, t0.content AS content_3, t0.image AS image_4, t0.video AS video_5, t0.statut AS statut_6, t0.id AS id_7, t0.created_at AS created_at_8, t0.updated_at AS updated_at_9, t0.menus_id AS menus_id_10 FROM sousmenu t0 WHERE t0.menus_id = ? (parameters: {params}, types: {types})

                            
DEBUG 14:55:04 doctrine Executing statement: SELECT t0.intitule AS intitule_1, t0.path AS path_2, t0.content AS content_3, t0.image AS image_4, t0.video AS video_5, t0.statut AS statut_6, t0.id AS id_7, t0.created_at AS created_at_8, t0.updated_at AS updated_at_9, t0.sousmenus_id AS sousmenus_id_10 FROM sousmenu2 t0 WHERE t0.sousmenus_id = ? (parameters: {params}, types: {types})

                            
DEBUG 14:55:04 doctrine Executing statement: SELECT t0.intitule AS intitule_1, t0.path AS path_2, t0.content AS content_3, t0.image AS image_4, t0.video AS video_5, t0.statut AS statut_6, t0.id AS id_7, t0.created_at AS created_at_8, t0.updated_at AS updated_at_9, t0.sousmenus_id AS sousmenus_id_10 FROM sousmenu2 t0 WHERE t0.sousmenus_id = ? (parameters: {params}, types: {types})

                            
DEBUG 14:55:04 doctrine Executing statement: SELECT t0.intitule AS intitule_1, t0.path AS path_2, t0.content AS content_3, t0.image AS image_4, t0.video AS video_5, t0.statut AS statut_6, t0.id AS id_7, t0.created_at AS created_at_8, t0.updated_at AS updated_at_9, t0.menus_id AS menus_id_10 FROM sousmenu t0 WHERE t0.menus_id = ? (parameters: {params}, types: {types})

                            
DEBUG 14:55:04 doctrine Executing statement: SELECT t0.intitule AS intitule_1, t0.path AS path_2, t0.content AS content_3, t0.image AS image_4, t0.video AS video_5, t0.statut AS statut_6, t0.id AS id_7, t0.created_at AS created_at_8, t0.updated_at AS updated_at_9, t0.sousmenus_id AS sousmenus_id_10 FROM sousmenu2 t0 WHERE t0.sousmenus_id = ? (parameters: {params}, types: {types})

                            
DEBUG 14:55:04 doctrine Executing statement: SELECT t0.intitule AS intitule_1, t0.path AS path_2, t0.content AS content_3, t0.image AS image_4, t0.video AS video_5, t0.statut AS statut_6, t0.id AS id_7, t0.created_at AS created_at_8, t0.updated_at AS updated_at_9, t0.sousmenus_id AS sousmenus_id_10 FROM sousmenu2 t0 WHERE t0.sousmenus_id = ? (parameters: {params}, types: {types})

                            
DEBUG 14:55:04 doctrine Executing statement: SELECT t0.intitule AS intitule_1, t0.path AS path_2, t0.content AS content_3, t0.image AS image_4, t0.video AS video_5, t0.statut AS statut_6, t0.id AS id_7, t0.created_at AS created_at_8, t0.updated_at AS updated_at_9, t0.menus_id AS menus_id_10 FROM sousmenu t0 WHERE t0.menus_id = ? (parameters: {params}, types: {types})

                            
DEBUG 14:55:04 doctrine Executing statement: SELECT t0.intitule AS intitule_1, t0.path AS path_2, t0.content AS content_3, t0.image AS image_4, t0.video AS video_5, t0.statut AS statut_6, t0.id AS id_7, t0.created_at AS created_at_8, t0.updated_at AS updated_at_9, t0.sousmenus_id AS sousmenus_id_10 FROM sousmenu2 t0 WHERE t0.sousmenus_id = ? (parameters: {params}, types: {types})

                            
DEBUG 14:55:04 doctrine Executing statement: SELECT t0.intitule AS intitule_1, t0.path AS path_2, t0.content AS content_3, t0.image AS image_4, t0.video AS video_5, t0.statut AS statut_6, t0.id AS id_7, t0.created_at AS created_at_8, t0.updated_at AS updated_at_9, t0.sousmenus_id AS sousmenus_id_10 FROM sousmenu2 t0 WHERE t0.sousmenus_id = ? (parameters: {params}, types: {types})

                            
DEBUG 14:55:04 doctrine Executing statement: SELECT t0.intitule AS intitule_1, t0.path AS path_2, t0.content AS content_3, t0.image AS image_4, t0.video AS video_5, t0.statut AS statut_6, t0.id AS id_7, t0.created_at AS created_at_8, t0.updated_at AS updated_at_9, t0.sousmenus_id AS sousmenus_id_10 FROM sousmenu2 t0 WHERE t0.sousmenus_id = ? (parameters: {params}, types: {types})

                            
DEBUG 14:55:04 doctrine Executing statement: SELECT t0.intitule AS intitule_1, t0.path AS path_2, t0.content AS content_3, t0.image AS image_4, t0.video AS video_5, t0.statut AS statut_6, t0.id AS id_7, t0.created_at AS created_at_8, t0.updated_at AS updated_at_9, t0.menus_id AS menus_id_10 FROM sousmenu t0 WHERE t0.menus_id = ? (parameters: {params}, types: {types})

                            
DEBUG 14:55:04 doctrine Executing statement: SELECT t0.intitule AS intitule_1, t0.path AS path_2, t0.content AS content_3, t0.image AS image_4, t0.video AS video_5, t0.statut AS statut_6, t0.id AS id_7, t0.created_at AS created_at_8, t0.updated_at AS updated_at_9, t0.menus_id AS menus_id_10 FROM sousmenu t0 WHERE t0.menus_id = ? (parameters: {params}, types: {types})

                            
DEBUG 14:55:04 doctrine Executing statement: SELECT t0.intitule AS intitule_1, t0.path AS path_2, t0.content AS content_3, t0.image AS image_4, t0.video AS video_5, t0.statut AS statut_6, t0.id AS id_7, t0.created_at AS created_at_8, t0.updated_at AS updated_at_9, t0.sousmenus_id AS sousmenus_id_10 FROM sousmenu2 t0 WHERE t0.sousmenus_id = ? (parameters: {params}, types: {types})

                            
DEBUG 14:55:04 doctrine Executing statement: SELECT t0.intitule AS intitule_1, t0.path AS path_2, t0.content AS content_3, t0.image AS image_4, t0.video AS video_5, t0.statut AS statut_6, t0.id AS id_7, t0.created_at AS created_at_8, t0.updated_at AS updated_at_9, t0.sousmenus_id AS sousmenus_id_10 FROM sousmenu2 t0 WHERE t0.sousmenus_id = ? (parameters: {params}, types: {types})

                            
DEBUG 14:55:04 doctrine Executing statement: SELECT t0.intitule AS intitule_1, t0.path AS path_2, t0.content AS content_3, t0.image AS image_4, t0.video AS video_5, t0.statut AS statut_6, t0.id AS id_7, t0.created_at AS created_at_8, t0.updated_at AS updated_at_9, t0.sousmenus_id AS sousmenus_id_10 FROM sousmenu2 t0 WHERE t0.sousmenus_id = ? (parameters: {params}, types: {types})

                            
DEBUG 14:55:04 doctrine Executing statement: SELECT t0.intitule AS intitule_1, t0.path AS path_2, t0.content AS content_3, t0.image AS image_4, t0.video AS video_5, t0.statut AS statut_6, t0.id AS id_7, t0.created_at AS created_at_8, t0.updated_at AS updated_at_9, t0.menus_id AS menus_id_10 FROM sousmenu t0 WHERE t0.menus_id = ? (parameters: {params}, types: {types})

                            
DEBUG 14:55:04 doctrine Executing statement: SELECT t0.intitule AS intitule_1, t0.path AS path_2, t0.content AS content_3, t0.image AS image_4, t0.video AS video_5, t0.statut AS statut_6, t0.id AS id_7, t0.created_at AS created_at_8, t0.updated_at AS updated_at_9, t0.sousmenus_id AS sousmenus_id_10 FROM sousmenu2 t0 WHERE t0.sousmenus_id = ? (parameters: {params}, types: {types})

                            
DEBUG 14:55:04 doctrine Executing statement: SELECT t0.intitule AS intitule_1, t0.path AS path_2, t0.content AS content_3, t0.image AS image_4, t0.video AS video_5, t0.statut AS statut_6, t0.id AS id_7, t0.created_at AS created_at_8, t0.updated_at AS updated_at_9, t0.sousmenus_id AS sousmenus_id_10 FROM sousmenu2 t0 WHERE t0.sousmenus_id = ? (parameters: {params}, types: {types})

                            
CRITICAL 14:55:04 request Uncaught PHP Exception Twig\Error\RuntimeError: "Impossible to access an attribute ("surtitre") on a null variable." at /home/c2049812c/public_html/templates/sousmenu2/tourisme.html.twig line 18
{
    "exception": {}
}
DEBUG 14:55:04 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\DebugHandlersListener::configure".
{
    "event": "kernel.request",
    "listener": "Symfony\\Component\\HttpKernel\\EventListener\\DebugHandlersListener::configure"
}
DEBUG 14:55:04 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\ValidateRequestListener::onKernelRequest".
{
    "event": "kernel.request",
    "listener": "Symfony\\Component\\HttpKernel\\EventListener\\ValidateRequestListener::onKernelRequest"
}
DEBUG 14:55:04 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\SessionListener::onKernelRequest".
{
    "event": "kernel.request",
    "listener": "Symfony\\Component\\HttpKernel\\EventListener\\SessionListener::onKernelRequest"
}
DEBUG 14:55:04 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\LocaleListener::setDefaultLocale".
{
    "event": "kernel.request",
    "listener": "Symfony\\Component\\HttpKernel\\EventListener\\LocaleListener::setDefaultLocale"
}
DEBUG 14:55:04 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\RouterListener::onKernelRequest".
{
    "event": "kernel.request",
    "listener": "Symfony\\Component\\HttpKernel\\EventListener\\RouterListener::onKernelRequest"
}
DEBUG 14:55:04 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\LocaleListener::onKernelRequest".
{
    "event": "kernel.request",
    "listener": "Symfony\\Component\\HttpKernel\\EventListener\\LocaleListener::onKernelRequest"
}
DEBUG 14:55:04 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\LocaleAwareListener::onKernelRequest".
{
    "event": "kernel.request",
    "listener": "Symfony\\Component\\HttpKernel\\EventListener\\LocaleAwareListener::onKernelRequest"
}
DEBUG 14:55:04 event Notified event "kernel.request" to listener "Symfony\Bundle\SecurityBundle\Debug\TraceableFirewallListener::configureLogoutUrlGenerator".
{
    "event": "kernel.request",
    "listener": "Symfony\\Bundle\\SecurityBundle\\Debug\\TraceableFirewallListener::configureLogoutUrlGenerator"
}
DEBUG 14:55:04 event Notified event "kernel.request" to listener "Symfony\Bundle\SecurityBundle\Debug\TraceableFirewallListener::onKernelRequest".
{
    "event": "kernel.request",
    "listener": "Symfony\\Bundle\\SecurityBundle\\Debug\\TraceableFirewallListener::onKernelRequest"
}
DEBUG 14:55:04 event Notified event "kernel.request" to listener "Knp\Bundle\PaginatorBundle\Subscriber\SlidingPaginationSubscriber::onKernelRequest".
{
    "event": "kernel.request",
    "listener": "Knp\\Bundle\\PaginatorBundle\\Subscriber\\SlidingPaginationSubscriber::onKernelRequest"
}
DEBUG 14:55:04 event Notified event "kernel.controller" to listener "Symfony\Bundle\FrameworkBundle\DataCollector\RouterDataCollector::onKernelController".
{
    "event": "kernel.controller",
    "listener": "Symfony\\Bundle\\FrameworkBundle\\DataCollector\\RouterDataCollector::onKernelController"
}
DEBUG 14:55:04 event Notified event "kernel.controller" to listener "Symfony\Component\HttpKernel\DataCollector\RequestDataCollector::onKernelController".
{
    "event": "kernel.controller",
    "listener": "Symfony\\Component\\HttpKernel\\DataCollector\\RequestDataCollector::onKernelController"
}
DEBUG 14:55:04 event Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\ControllerListener::onKernelController".
{
    "event": "kernel.controller",
    "listener": "Sensio\\Bundle\\FrameworkExtraBundle\\EventListener\\ControllerListener::onKernelController"
}
DEBUG 14:55:04 event Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\ParamConverterListener::onKernelController".
{
    "event": "kernel.controller",
    "listener": "Sensio\\Bundle\\FrameworkExtraBundle\\EventListener\\ParamConverterListener::onKernelController"
}
DEBUG 14:55:04 event Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\HttpCacheListener::onKernelController".
{
    "event": "kernel.controller",
    "listener": "Sensio\\Bundle\\FrameworkExtraBundle\\EventListener\\HttpCacheListener::onKernelController"
}
DEBUG 14:55:04 event Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\TemplateListener::onKernelController".
{
    "event": "kernel.controller",
    "listener": "Sensio\\Bundle\\FrameworkExtraBundle\\EventListener\\TemplateListener::onKernelController"
}
DEBUG 14:55:04 event Notified event "kernel.controller_arguments" to listener "Symfony\Component\HttpKernel\EventListener\ErrorListener::onControllerArguments".
{
    "event": "kernel.controller_arguments",
    "listener": "Symfony\\Component\\HttpKernel\\EventListener\\ErrorListener::onControllerArguments"
}
DEBUG 14:55:04 event Notified event "kernel.controller_arguments" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\SecurityListener::onKernelControllerArguments".
{
    "event": "kernel.controller_arguments",
    "listener": "Sensio\\Bundle\\FrameworkExtraBundle\\EventListener\\SecurityListener::onKernelControllerArguments"
}
DEBUG 14:55:04 event Notified event "kernel.controller_arguments" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\IsGrantedListener::onKernelControllerArguments".
{
    "event": "kernel.controller_arguments",
    "listener": "Sensio\\Bundle\\FrameworkExtraBundle\\EventListener\\IsGrantedListener::onKernelControllerArguments"
}

Stack Trace

RuntimeError
Twig\Error\RuntimeError:
Impossible to access an attribute ("surtitre") on a null variable.

  at templates/sousmenu2/tourisme.html.twig:18
  at twig_get_attribute()
     (var/cache/dev/twig/4d/4d7c64b8161209c892799c99e6aedbbc.php:102)
  at __TwigTemplate_55ccb3e5ccec682a610f0c5e1dffe66a->block_body()
     (vendor/twig/twig/src/Template.php:171)
  at Twig\Template->displayBlock()
     (var/cache/dev/twig/d7/d70437e7659eefa3f2ac9357ee309c90.php:336)
  at __TwigTemplate_cee8b5987567ab6cd547aa46355f7e57->doDisplay()
     (vendor/twig/twig/src/Template.php:394)
  at Twig\Template->displayWithErrorHandling()
     (vendor/twig/twig/src/Template.php:367)
  at Twig\Template->display()
     (var/cache/dev/twig/4d/4d7c64b8161209c892799c99e6aedbbc.php:49)
  at __TwigTemplate_55ccb3e5ccec682a610f0c5e1dffe66a->doDisplay()
     (vendor/twig/twig/src/Template.php:394)
  at Twig\Template->displayWithErrorHandling()
     (vendor/twig/twig/src/Template.php:367)
  at Twig\Template->display()
     (vendor/twig/twig/src/Template.php:379)
  at Twig\Template->render()
     (vendor/twig/twig/src/TemplateWrapper.php:40)
  at Twig\TemplateWrapper->render()
     (vendor/twig/twig/src/Environment.php:280)
  at Twig\Environment->render()
     (vendor/symfony/framework-bundle/Controller/AbstractController.php:258)
  at Symfony\Bundle\FrameworkBundle\Controller\AbstractController->renderView()
     (vendor/symfony/framework-bundle/Controller/AbstractController.php:266)
  at Symfony\Bundle\FrameworkBundle\Controller\AbstractController->render()
     (src/Controller/Sousmenu2Controller.php:516)
  at App\Controller\Sousmenu2Controller->tourisme()
     (vendor/symfony/http-kernel/HttpKernel.php:163)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
     (vendor/symfony/http-kernel/HttpKernel.php:75)
  at Symfony\Component\HttpKernel\HttpKernel->handle()
     (vendor/symfony/http-kernel/Kernel.php:202)
  at Symfony\Component\HttpKernel\Kernel->handle()
     (vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35)
  at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run()
     (vendor/autoload_runtime.php:35)
  at require_once('/home/c2049812c/public_html/vendor/autoload_runtime.php')
     (public/index.php:5)                
Loading…
Loading the web debug toolbar…
Attempt #