Error 500 Internal Server Error

GET https://gfv.akyos.com/mentions-legales

Exceptions

Impossible to access an attribute ("contracts") on a null variable in platform/layouts/sidebar.html.twig at line 42.

Exception

Twig\Error\ RuntimeError

Show exception properties
Twig\Error\RuntimeError {#2332
  -lineno: 42
  -rawMessage: "Impossible to access an attribute ("contracts") on a null variable."
  -source: Twig\Source {#2238
    -code: """
      {% set user = app.user %}\n
      \n
      <div class="sidebar">\n
      \t<nav>\n
      \t\t<ul class="list-unstyled" id="evaluate">\n
      \t\t\t{# DASHBOARD #}\n
      \t\t\t<li class="{{ 'platform_index' in currentRoute ? "active" : "" }}">\n
      \t\t\t\t<a href="{{ path('platform_index') }}">{% include 'platform/layouts/svg/dashboard.html.twig' %} Tableau de bord</a>\n
      \t\t\t</li>\n
      \n
      \t\t\t<span class="divider" data-title="MyGFV"></span>\n
      \n
      \t\t\t{# GFV #}\n
      \t\t\t{% if is_granted('ROLE_PLATFORM_NOT_PROSPECT') %}\n
      \t\t\t\t<li class="{{ 'platform_gfv_' in currentRoute and 'gfv_config_' not in currentRoute ? "active" : "" }}">\n
      \t\t\t\t\t<a href="{{ path('platform_gfv_index') }}">{% include 'platform/layouts/svg/wine-glass.html.twig' %} {{ is_granted('ROLE_PLATFORM_ADMIN_LITE') ? 'Les GFVs by ' ~ (platform_options.platformTitle ?? 'GFV') : 'Vos GFVs by ' ~ (platform_options.platformTitle ?? 'GFV') }}</a>\n
      \t\t\t\t</li>\n
      \n
      \t\t\t\t{# AG #}\n
      \t\t\t\t<li class="{{ 'platform_ag_' in currentRoute ? "active" : "" }}">\n
      \t\t\t\t\t<a href="{{ path('platform_ag_index') }}">{% include 'platform/layouts/svg/urne.html.twig' %} Assemblées Générales</a>\n
      \t\t\t\t</li>\n
      \t\t\t{% endif %}\n
      \n
      \t\t\t{# SECONDARY MARKET #}\n
      \t\t\t<li class="{{ 'platform_secondary_market_' in currentRoute or 'platform_cession_' in currentRoute or 'platform_acquisition_' in currentRoute ? "active" : "" }}">\n
      \t\t\t\t<a href="{{ path('platform_secondary_market_index') }}">{% include 'platform/layouts/svg/exchange.html.twig' %} Marché secondaire</a>\n
      \t\t\t</li>\n
      \n
      \t\t\t{# EVENTS #}\n
      \t\t\t<li class="{{ 'platform_event_' in currentRoute ? "active" : "" }}">\n
      \t\t\t\t<a href="{{ path('platform_event_index') }}">{% include 'platform/layouts/svg/calendar.html.twig' %} Évènements {{ platform_options.platformTitle ?? 'plateforme' }}</a>\n
      \t\t\t</li>\n
      \n
      \t\t\t{% if (is_granted('ROLE_PLATFORM_ASSOCIATE') or is_granted('ROLE_PLATFORM_WINEMAKER') or is_granted('ROLE_PLATFORM_MANAGER')) and not is_granted('ROLE_PLATFORM_ADMIN_LITE') %}\n
      \t\t\t\t{# CREDITS #}\n
      \t\t\t\t<li class="<{{ 'platform_credit_' in currentRoute ? "active" : "" }}">\n
      \t\t\t\t\t<a href="{{ path('platform_credit_store_index') }}">{% include 'platform/layouts/svg/ticket.html.twig' %} Achat de crédits</a>\n
      \t\t\t\t</li>\n
      \t\t\t{% endif %}\n
      \n
      \t\t\t{% if is_granted('ROLE_PLATFORM_ADMIN_LITE') or user.contracts|length or is_granted('ROLE_PLATFORM_ASSOCIATE') or is_granted('ROLE_PLATFORM_WINEMAKER') %}\n
      \t\t\t\t<span class="divider" data-title="Accès rapide"></span>\n
      \t\t\t{% endif %}\n
      \n
      \t\t\t{# CONTRACTS #}\n
      \t\t\t{% if is_granted('ROLE_PLATFORM_ADMIN_LITE') or user.contracts|length %}\n
      \t\t\t\t<li class="{{ 'platform_contract_' in currentRoute ? "active" : "" }}">\n
      \t\t\t\t\t<a href="{{ path('platform_contract_index') }}">{% include 'platform/layouts/svg/contracts.html.twig' %} {{ is_granted('ROLE_PLATFORM_ADMIN_LITE') ? 'Contrats de souscription' : 'Vos contrats' }}</a>\n
      \t\t\t\t</li>\n
      \t\t\t{% endif %}\n
      \n
      \t\t\t{# DOTATIONS #}\n
      \t\t\t{% if is_granted('ROLE_PLATFORM_ASSOCIATE') or is_granted('ROLE_PLATFORM_WINEMAKER') or is_granted('ROLE_PLATFORM_ADMIN_LITE') %}\n
      \t\t\t\t<li class="{{ 'platform_dotation_' in currentRoute ? "active" : "" }}">\n
      \t\t\t\t\t<a href="{{ path('platform_dotation_index') }}">{% include 'platform/layouts/svg/wine-bottle.html.twig' %} {{ is_granted('ROLE_PLATFORM_ADMIN_LITE') ? 'Dotations' : 'Vos dotations' }}</a>\n
      \t\t\t\t</li>\n
      \t\t\t{% endif %}\n
      \n
      \t\t\t{% if is_granted('ROLE_PLATFORM_NOT_PROSPECT') %}\n
      \t\t\t\t<span class="divider" data-title="Contacts"></span>\n
      \t\t\t{% endif %}\n
      \n
      \t\t\t{# CGP #}\n
      \t\t\t{% if is_granted('ROLE_PLATFORM_ADMIN_LITE') or is_granted('ROLE_PLATFORM_ASSOCIATE') %}\n
      \t\t\t\t<li class="{{ 'platform_cgp_' in currentRoute ? "active" : "" }}">\n
      \t\t\t\t\t<a href="{{ path('platform_cgp_index') }}">{% include 'platform/layouts/svg/comments.html.twig' %} {{ is_granted('ROLE_PLATFORM_ADMIN_LITE') ? 'CGP' : 'Vos CGP' }}</a>\n
      \t\t\t\t</li>\n
      \t\t\t{% endif %}\n
      \n
      \t\t\t{# ASSOCIATES #}\n
      \t\t\t{% if is_granted('ROLE_PLATFORM_MANAGER') or is_granted('ROLE_PLATFORM_WINEMAKER') or is_granted('ROLE_PLATFORM_ADMIN_LITE') %}\n
      \t\t\t\t<li class="{{ 'platform_associate_' in currentRoute and 'documents' not in currentRoute ? "active" : "" }}">\n
      \t\t\t\t\t<a href="{{ path('platform_associate_index') }}">{% include 'platform/layouts/svg/ico-handshake.html.twig' %} {{ is_granted('ROLE_PLATFORM_ADMIN_LITE') ? 'Associés' : 'Vos associés' }}</a>\n
      \t\t\t\t</li>\n
      \t\t\t{% endif %}\n
      \n
      \t\t\t{% if is_granted('ROLE_PLATFORM_ADMIN_LITE') %}\n
      \t\t\t\t{# WINEMAKER AND MANAGER #}\n
      \t\t\t\t<li class="{{ 'platform_winemaker_and_manager_' in currentRoute ? "active" : "" }}">\n
      \t\t\t\t\t<a href="{{ path('platform_winemaker_and_manager_index') }}">{% include 'platform/layouts/svg/grape.html.twig' %} Viticulteurs et gérants</a>\n
      \t\t\t\t</li>\n
      \t\t\t\t{# PROSPECTS #}\n
      \t\t\t\t<li class="{{ 'platform_prospect_' in currentRoute ? "active" : "" }}">\n
      \t\t\t\t\t<a href="{{ path('platform_prospects_index') }}">{% include 'platform/layouts/svg/prospect.html.twig' %} Prospects</a>\n
      \t\t\t\t</li>\n
      \t\t\t{% endif %}\n
      \n
      \n
      \t\t\t{# DOCUMENTS #}\n
      \t\t\t{% if not is_granted('ROLE_PLATFORM_ADMIN_LITE') and is_granted('ROLE_PLATFORM_ASSOCIATE') %}\n
      \t\t\t\t<span class="divider" data-title="Documents"></span>\n
      \n
      \t\t\t\t{# IFU #}\n
      \t\t\t\t<li class="{{ 'platform_associate_documents_ifu' in currentRoute ? "active" : "" }}">\n
      \t\t\t\t\t<a href="{{ path('platform_associate_documents_ifu') }}">{% include 'platform/layouts/svg/invoice-dollar.html.twig' %} Vos IFU</a>\n
      \t\t\t\t</li>\n
      \t\t\t\t{# GFV DOCUMENTS #}\n
      \t\t\t\t{% for gfv in getGFVofAssociate(app.user) %}\n
      \t\t\t\t\t<li class="{{ 'platform_associate_documents_gfv' in currentRoute and app.request.get('id') == gfv.id ? "active" : "" }} document-link">\n
      \t\t\t\t\t\t<a href="{{ path('platform_associate_documents_gfv', {id: gfv.id}) }}">{% include 'platform/layouts/svg/invoice.html.twig' %} <span class="pl-1">Les documents du {{ gfv }}</span></a>\n
      \t\t\t\t\t</li>\n
      \t\t\t\t{% endfor %}\n
      \t\t\t{% endif %}\n
      \n
      \t\t\t<li class="sidebar-action">\n
      \t\t\t\t<button type="button">{% include 'platform/layouts/svg/arrow-left.html.twig' %} Réduire le menu</button>\n
      \t\t\t</li>\n
      \t\t</ul>\n
      \t</nav>\n
      </div>\n
      """
    -name: "platform/layouts/sidebar.html.twig"
    -path: "/home/clients/82912c3db656d3934b07da7bcf73107e/sites/preprod.canovia.fr/templates/platform/layouts/sidebar.html.twig"
  }
  -phpFile: "/home/clients/82912c3db656d3934b07da7bcf73107e/sites/preprod.canovia.fr/vendor/twig/twig/src/Extension/CoreExtension.php"
  -phpLine: 1749
}
  1. <li class="<{{ 'platform_credit_' in currentRoute ? "active" : "" }}">
  2. <a href="{{ path('platform_credit_store_index') }}">{% include 'platform/layouts/svg/ticket.html.twig' %} Achat de crédits</a>
  3. </li>
  4. {% endif %}
  5. {% if is_granted('ROLE_PLATFORM_ADMIN_LITE') or user.contracts|length or is_granted('ROLE_PLATFORM_ASSOCIATE') or is_granted('ROLE_PLATFORM_WINEMAKER') %}
  6. <span class="divider" data-title="Accès rapide"></span>
  7. {% endif %}
  8. {# CONTRACTS #}
  9. {% if is_granted('ROLE_PLATFORM_ADMIN_LITE') or user.contracts|length %}
  1. }
  2. // line 41
  3. yield "
  4. \t\t\t";
  5. // line 42
  6. if (((($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_PLATFORM_ADMIN_LITE") || Twig\Extension\CoreExtension::length($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, (isset($context["user"]) || array_key_exists("user", $context) ? $context["user"] : (function () { throw new RuntimeError('Variable "user" does not exist.', 42, $this->source); })()), "contracts", [], "any", false, false, false, 42))) || $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_PLATFORM_ASSOCIATE")) || $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_PLATFORM_WINEMAKER"))) {
  7. // line 43
  8. yield "\t\t\t\t<span class=\"divider\" data-title=\"Accès rapide\"></span>
  9. \t\t\t";
  10. }
  11. // line 45
in vendor/twig/twig/src/Template.php -> doDisplay (line 402)
  1. {
  2. $context += $this->env->getGlobals();
  3. $blocks = array_merge($this->blocks, $blocks);
  4. try {
  5. yield from $this->doDisplay($context, $blocks);
  6. } catch (Error $e) {
  7. if (!$e->getSourceContext()) {
  8. $e->setSourceContext($this->getSourceContext());
  9. }
  1. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  2. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "sidebar"));
  3. // line 37
  4. yield " ";
  5. yield from $this->load("platform/layouts/sidebar.html.twig", 37)->unwrap()->yield($context);
  6. // line 38
  7. yield " ";
  8. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
in vendor/twig/twig/src/Template.php -> block_sidebar (line 446)
  1. throw new \LogicException('A block must be a method on a \Twig\Template instance.');
  2. }
  3. if (null !== $template) {
  4. try {
  5. yield from $template->$block($context, $blocks);
  6. } catch (Error $e) {
  7. if (!$e->getSourceContext()) {
  8. $e->setSourceContext($template->getSourceContext());
  9. }
  1. yield " <div class=\"main-wrapper\">
  2. <!-- Sidebar -->
  3. <div class=\"sidebar-wrapper\">
  4. ";
  5. // line 36
  6. yield from $this->unwrap()->yieldBlock('sidebar', $context, $blocks);
  7. // line 39
  8. yield " </div>
  9. <!-- Page Content -->
  10. <main id=\"main\" class=\"";
  11. // line 41
in vendor/twig/twig/src/Template.php -> block_body (line 446)
  1. throw new \LogicException('A block must be a method on a \Twig\Template instance.');
  2. }
  3. if (null !== $template) {
  4. try {
  5. yield from $template->$block($context, $blocks);
  6. } catch (Error $e) {
  7. if (!$e->getSourceContext()) {
  8. $e->setSourceContext($template->getSourceContext());
  9. }
  1. // line 29
  2. yield from $this->unwrap()->yieldBlock('body_attr', $context, $blocks);
  3. yield ">
  4. ";
  5. // line 30
  6. yield from $this->unwrap()->yieldBlock('body', $context, $blocks);
  7. // line 31
  8. yield "
  9. ";
  10. // line 32
  11. if ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 32, $this->source); })()), "environment", [], "any", false, false, false, 32) === "prod")) {
in vendor/twig/twig/src/Template.php -> doDisplay (line 402)
  1. {
  2. $context += $this->env->getGlobals();
  3. $blocks = array_merge($this->blocks, $blocks);
  4. try {
  5. yield from $this->doDisplay($context, $blocks);
  6. } catch (Error $e) {
  7. if (!$e->getSourceContext()) {
  8. $e->setSourceContext($this->getSourceContext());
  9. }
  1. // line 3
  2. $context["documentationSlug"] = ((array_key_exists("documentationSlug", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["documentationSlug"]) || array_key_exists("documentationSlug", $context) ? $context["documentationSlug"] : (function () { throw new RuntimeError('Variable "documentationSlug" does not exist.', 3, $this->source); })()), "")) : (""));
  3. // line 1
  4. $this->parent = $this->load("platform/layouts/base_platform.html.twig", 1);
  5. yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
  6. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  7. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
in vendor/twig/twig/src/Template.php -> doDisplay (line 402)
  1. {
  2. $context += $this->env->getGlobals();
  3. $blocks = array_merge($this->blocks, $blocks);
  4. try {
  5. yield from $this->doDisplay($context, $blocks);
  6. } catch (Error $e) {
  7. if (!$e->getSourceContext()) {
  8. $e->setSourceContext($this->getSourceContext());
  9. }
  1. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  2. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "platform/legal/mentions.html.twig"));
  3. $this->parent = $this->load("platform/layouts/platform_layout.html.twig", 1);
  4. yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
  5. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  6. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
in vendor/twig/twig/src/Template.php -> doDisplay (line 402)
  1. {
  2. $context += $this->env->getGlobals();
  3. $blocks = array_merge($this->blocks, $blocks);
  4. try {
  5. yield from $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 = []): void
  4. {
  5. foreach ($this->yield($context, $blocks) as $data) {
  6. echo $data;
  7. }
  8. }
  9. public function render(array $context): string
in vendor/twig/twig/src/Template.php -> display (line 373)
  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. yield from $this->template->yieldBlock($name, $context);
  2. }
  3. public function render(array $context = []): string
  4. {
  5. return $this->template->render($context);
  6. }
  7. /**
  8. * @return void
  9. */
  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. if (null !== $block) {
  2. return $this->container->get('twig')->load($view)->renderBlock($block, $parameters);
  3. }
  4. return $this->container->get('twig')->render($view, $parameters);
  5. }
  6. private function doRender(string $view, ?string $block, array $parameters, ?Response $response, string $method): Response
  7. {
  8. $content = $this->doRenderView($view, $block, $parameters, $method);
  1. return $this->container->get('twig')->render($view, $parameters);
  2. }
  3. private function doRender(string $view, ?string $block, array $parameters, ?Response $response, string $method): Response
  4. {
  5. $content = $this->doRenderView($view, $block, $parameters, $method);
  6. $response ??= new Response();
  7. if (200 === $response->getStatusCode()) {
  8. foreach ($parameters as $v) {
  9. if ($v instanceof FormInterface && $v->isSubmitted() && !$v->isValid()) {
  1. * If an invalid form is found in the list of parameters, a 422 status code is returned.
  2. * Forms found in parameters are auto-cast to form views.
  3. */
  4. protected function render(string $view, array $parameters = [], ?Response $response = null): Response
  5. {
  6. return $this->doRender($view, null, $parameters, $response, __FUNCTION__);
  7. }
  8. /**
  9. * Renders a block in a view.
  10. *
AbstractController->render('platform/legal/mentions.html.twig', array('content' => null)) in src/Controller/Platform/LegalController.php (line 18)
  1. public function mentions(PlatformService $platformService): Response
  2. {
  3. $platformOptions = $platformService->getPlatformOptions();
  4. $content = $platformOptions?->getLegalNoticesContent();
  5. return $this->render('platform/legal/mentions.html.twig', [
  6. 'content' => $content,
  7. ]);
  8. }
  9. #[Route(path: '/cgu', name: 'platform_legal_terms', methods: ['GET'])]
  1. $this->dispatcher->dispatch($event, KernelEvents::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, $event);
  9. $this->dispatcher->dispatch($event, KernelEvents::VIEW);
  1. $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  2. $this->requestStack->push($request);
  3. $response = null;
  4. try {
  5. return $response = $this->handleRaw($request, $type);
  6. } catch (\Throwable $e) {
  7. if ($e instanceof \Error && !$this->handleAllThrowables) {
  8. throw $e;
  9. }
  1. if (!$this->handlingHttpCache) {
  2. $this->resetServices = true;
  3. }
  4. try {
  5. return $this->getHttpKernel()->handle($request, $type, $catch);
  6. } finally {
  7. --$this->requestStackSize;
  8. }
  9. }
  1. ) {
  2. }
  3. public function run(): int
  4. {
  5. $response = $this->kernel->handle($this->request);
  6. if (Kernel::VERSION_ID >= 60400) {
  7. $response->send(false);
  8. if (\function_exists('fastcgi_finish_request') && !$this->debug) {
in vendor/autoload_runtime.php -> run (line 29)
  1. $app = $app(...$args);
  2. exit(
  3. $runtime
  4. ->getRunner($app)
  5. ->run()
  6. );
require_once('/home/clients/82912c3db656d3934b07da7bcf73107e/sites/preprod.canovia.fr/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

Level Channel Message
INFO 11:58:14 request Matched route "_profiler".
{
    "route": "_profiler",
    "route_parameters": {
        "_route": "_profiler",
        "_controller": "web_profiler.controller.profiler::panelAction",
        "token": "ddfa2f"
    },
    "request_uri": "https://preprod.canovia.fr/_profiler/ddfa2f",
    "method": "GET"
}
INFO 11:58:14 deprecation User Deprecated: Since symfony/framework-bundle 6.4: The "annotations.cached_reader" service is deprecated without replacement.
{
    "exception": {}
}
INFO 11:58:14 deprecation User Deprecated: Since symfony/framework-bundle 6.4: The "annotations.reader" service is deprecated without replacement.
{
    "exception": {}
}
INFO 11:58:14 deprecation User Deprecated: Since symfony/framework-bundle 6.4: The "annotations.cache_adapter" service is deprecated without replacement.
{
    "exception": {}
}
INFO 11:58:14 deprecation User Deprecated: Annotations support is deprecated, migrate your application to use attributes and pass an instance of Gedmo\Mapping\Driver\AttributeReader to the Gedmo\Mapping\MappedEventSubscriber::setAnnotationReader() method instead. (MappedEventSubscriber.php:196 called by getStofDoctrineExtensions_Listener_TranslatableService.php:28, https://github.com/doctrine-extensions/DoctrineExtensions/pull/2772, package gedmo/doctrine-extensions)
{
    "exception": {}
}
INFO 11:58:14 deprecation User Deprecated: Since symfony/validator 6.4: Method "Symfony\Component\Validator\ValidatorBuilder::setDoctrineAnnotationReader()" is deprecated without replacement.
{
    "exception": {}
}
INFO 11:58:14 deprecation User Deprecated: Since symfony/serializer 6.4: Passing a "Doctrine\Common\Annotations\PsrCachedReader" instance as argument 1 to "Symfony\Component\Serializer\Mapping\Loader\AttributeLoader::__construct()" is deprecated, pass null or omit the parameter instead.
{
    "exception": {}
}
INFO 11:58:14 deprecation User Deprecated: In ORM 3.0, the AttributeDriver will report fields for the classes where they are declared. This may uncover invalid mapping configurations. To opt into the new mode today, set the "reportFieldsWhereDeclared" constructor parameter to true. (AttributeDriver.php:77 called by App_KernelDevDebugContainer.php:4183, https://github.com/doctrine/orm/pull/10455, package doctrine/orm)
{
    "exception": {}
}
INFO 11:58:14 deprecation User Deprecated: The annotation mapping driver is deprecated and will be removed in Doctrine ORM 3.0, please migrate to the attribute or XML driver. (AnnotationDriver.php:65 called by App_KernelDevDebugContainer.php:4173, https://github.com/doctrine/orm/issues/10098, package doctrine/orm)
{
    "exception": {}
}
INFO 11:58:14 deprecation User Deprecated: Not enabling lazy ghost objects is deprecated and will not be supported in Doctrine ORM 3.0. Ensure Doctrine\ORM\Configuration::setLazyGhostObjectEnabled(true) is called to enable them. (ProxyFactory.php:166 called by EntityManager.php:177, https://github.com/doctrine/orm/pull/10837/, package doctrine/orm)
{
    "exception": {}
}
INFO 11:58:14 deprecation User Deprecated: Since symfony/doctrine-bridge 6.3: Registering "Gedmo\Sluggable\SluggableListener" as a Doctrine subscriber is deprecated. Register it as a listener instead, using e.g. the #[AsDoctrineListener] or #[AsDocumentListener] attribute.
{
    "exception": {}
}
INFO 11:58:14 deprecation User Deprecated: Since symfony/doctrine-bridge 6.3: Registering "App\EventListener\ActionLogSuscriber" as a Doctrine subscriber is deprecated. Register it as a listener instead, using e.g. the #[AsDoctrineListener] or #[AsDocumentListener] attribute.
{
    "exception": {}
}

Stack Trace

RuntimeError
Twig\Error\RuntimeError:
Impossible to access an attribute ("contracts") on a null variable in "platform/layouts/sidebar.html.twig" at line 42.

  at templates/platform/layouts/sidebar.html.twig:42
  at Twig\Extension\CoreExtension::getAttribute(object(Environment), object(Source), null, 'contracts', array(), 'any', false, false, false, 42)
     (var/cache/dev/twig/4d/4d7c9e0e5242fb50e43dc5e29e538f33.php:153)
  at __TwigTemplate_e2b21a72c837410ed12e9e890f4d2c5c->doDisplay(array('content' => null, 'platform_options' => object(PlatformOptions), 'user_notifications' => null, 'user_message' => 0, 'builder_options' => object(BuilderOptions), 'file_manager_options' => object(FileManagerOptions), 'blog_options' => object(BlogOptions), 'cms_options' => object(CmsOptions), 'rgpd_options' => object(RgpdOptions), 'app' => object(AppVariable), 'host' => '127.0.0.1', 'documentationSlug' => '', 'currentRoute' => 'platform_legal_mentions', 'user' => null), array())
     (vendor/twig/twig/src/Template.php:402)
  at Twig\Template->yield(array('content' => null, 'platform_options' => object(PlatformOptions), 'user_notifications' => null, 'user_message' => 0, 'builder_options' => object(BuilderOptions), 'file_manager_options' => object(FileManagerOptions), 'blog_options' => object(BlogOptions), 'cms_options' => object(CmsOptions), 'rgpd_options' => object(RgpdOptions), 'app' => object(AppVariable), 'host' => '127.0.0.1', 'documentationSlug' => '', 'currentRoute' => 'platform_legal_mentions'))
     (var/cache/dev/twig/57/57febcc506688e5117e8f1ff97993b16.php:264)
  at __TwigTemplate_1a7cade760eea17cefadbe959e16d77e->block_sidebar(array('content' => null, 'platform_options' => object(PlatformOptions), 'user_notifications' => null, 'user_message' => 0, 'builder_options' => object(BuilderOptions), 'file_manager_options' => object(FileManagerOptions), 'blog_options' => object(BlogOptions), 'cms_options' => object(CmsOptions), 'rgpd_options' => object(RgpdOptions), 'app' => object(AppVariable), 'host' => '127.0.0.1', 'documentationSlug' => '', 'currentRoute' => 'platform_legal_mentions'), array('favicon' => array(object(__TwigTemplate_90f8ab77ee981004d0c80a17c1fd97a5), 'block_favicon'), 'meta' => array(object(__TwigTemplate_90f8ab77ee981004d0c80a17c1fd97a5), 'block_meta'), 'title' => array(object(__TwigTemplate_c1306513a9e7226b6e31279b9ab23868), 'block_title'), 'stylesheets' => array(object(__TwigTemplate_1a7cade760eea17cefadbe959e16d77e), 'block_stylesheets'), 'body_attr' => array(object(__TwigTemplate_1a7cade760eea17cefadbe959e16d77e), 'block_body_attr'), 'body' => array(object(__TwigTemplate_1a7cade760eea17cefadbe959e16d77e), 'block_body'), 'javascripts' => array(object(__TwigTemplate_1a7cade760eea17cefadbe959e16d77e), 'block_javascripts'), 'header' => array(object(__TwigTemplate_1a7cade760eea17cefadbe959e16d77e), 'block_header'), 'sidebar' => array(object(__TwigTemplate_1a7cade760eea17cefadbe959e16d77e), 'block_sidebar'), 'page_classes' => array(object(__TwigTemplate_1a7cade760eea17cefadbe959e16d77e), 'block_page_classes'), 'breadcrumbs' => array(object(__TwigTemplate_c1306513a9e7226b6e31279b9ab23868), 'block_breadcrumbs'), 'page_content' => array(object(__TwigTemplate_c1306513a9e7226b6e31279b9ab23868), 'block_page_content')))
     (vendor/twig/twig/src/Template.php:446)
  at Twig\Template->yieldBlock('sidebar', array('content' => null, 'platform_options' => object(PlatformOptions), 'user_notifications' => null, 'user_message' => 0, 'builder_options' => object(BuilderOptions), 'file_manager_options' => object(FileManagerOptions), 'blog_options' => object(BlogOptions), 'cms_options' => object(CmsOptions), 'rgpd_options' => object(RgpdOptions), 'app' => object(AppVariable), 'host' => '127.0.0.1', 'documentationSlug' => '', 'currentRoute' => 'platform_legal_mentions'), array('favicon' => array(object(__TwigTemplate_90f8ab77ee981004d0c80a17c1fd97a5), 'block_favicon'), 'meta' => array(object(__TwigTemplate_90f8ab77ee981004d0c80a17c1fd97a5), 'block_meta'), 'title' => array(object(__TwigTemplate_c1306513a9e7226b6e31279b9ab23868), 'block_title'), 'stylesheets' => array(object(__TwigTemplate_1a7cade760eea17cefadbe959e16d77e), 'block_stylesheets'), 'body_attr' => array(object(__TwigTemplate_1a7cade760eea17cefadbe959e16d77e), 'block_body_attr'), 'body' => array(object(__TwigTemplate_1a7cade760eea17cefadbe959e16d77e), 'block_body'), 'javascripts' => array(object(__TwigTemplate_1a7cade760eea17cefadbe959e16d77e), 'block_javascripts'), 'header' => array(object(__TwigTemplate_1a7cade760eea17cefadbe959e16d77e), 'block_header'), 'sidebar' => array(object(__TwigTemplate_1a7cade760eea17cefadbe959e16d77e), 'block_sidebar'), 'page_classes' => array(object(__TwigTemplate_1a7cade760eea17cefadbe959e16d77e), 'block_page_classes'), 'breadcrumbs' => array(object(__TwigTemplate_c1306513a9e7226b6e31279b9ab23868), 'block_breadcrumbs'), 'page_content' => array(object(__TwigTemplate_c1306513a9e7226b6e31279b9ab23868), 'block_page_content')))
     (var/cache/dev/twig/57/57febcc506688e5117e8f1ff97993b16.php:176)
  at __TwigTemplate_1a7cade760eea17cefadbe959e16d77e->block_body(array('content' => null, 'platform_options' => object(PlatformOptions), 'user_notifications' => null, 'user_message' => 0, 'builder_options' => object(BuilderOptions), 'file_manager_options' => object(FileManagerOptions), 'blog_options' => object(BlogOptions), 'cms_options' => object(CmsOptions), 'rgpd_options' => object(RgpdOptions), 'app' => object(AppVariable), 'host' => '127.0.0.1', 'documentationSlug' => '', 'currentRoute' => 'platform_legal_mentions'), array('favicon' => array(object(__TwigTemplate_90f8ab77ee981004d0c80a17c1fd97a5), 'block_favicon'), 'meta' => array(object(__TwigTemplate_90f8ab77ee981004d0c80a17c1fd97a5), 'block_meta'), 'title' => array(object(__TwigTemplate_c1306513a9e7226b6e31279b9ab23868), 'block_title'), 'stylesheets' => array(object(__TwigTemplate_1a7cade760eea17cefadbe959e16d77e), 'block_stylesheets'), 'body_attr' => array(object(__TwigTemplate_1a7cade760eea17cefadbe959e16d77e), 'block_body_attr'), 'body' => array(object(__TwigTemplate_1a7cade760eea17cefadbe959e16d77e), 'block_body'), 'javascripts' => array(object(__TwigTemplate_1a7cade760eea17cefadbe959e16d77e), 'block_javascripts'), 'header' => array(object(__TwigTemplate_1a7cade760eea17cefadbe959e16d77e), 'block_header'), 'sidebar' => array(object(__TwigTemplate_1a7cade760eea17cefadbe959e16d77e), 'block_sidebar'), 'page_classes' => array(object(__TwigTemplate_1a7cade760eea17cefadbe959e16d77e), 'block_page_classes'), 'breadcrumbs' => array(object(__TwigTemplate_c1306513a9e7226b6e31279b9ab23868), 'block_breadcrumbs'), 'page_content' => array(object(__TwigTemplate_c1306513a9e7226b6e31279b9ab23868), 'block_page_content')))
     (vendor/twig/twig/src/Template.php:446)
  at Twig\Template->yieldBlock('body', array('content' => null, 'platform_options' => object(PlatformOptions), 'user_notifications' => null, 'user_message' => 0, 'builder_options' => object(BuilderOptions), 'file_manager_options' => object(FileManagerOptions), 'blog_options' => object(BlogOptions), 'cms_options' => object(CmsOptions), 'rgpd_options' => object(RgpdOptions), 'app' => object(AppVariable), 'host' => '127.0.0.1', 'documentationSlug' => '', 'currentRoute' => 'platform_legal_mentions'), array('favicon' => array(object(__TwigTemplate_90f8ab77ee981004d0c80a17c1fd97a5), 'block_favicon'), 'meta' => array(object(__TwigTemplate_90f8ab77ee981004d0c80a17c1fd97a5), 'block_meta'), 'title' => array(object(__TwigTemplate_c1306513a9e7226b6e31279b9ab23868), 'block_title'), 'stylesheets' => array(object(__TwigTemplate_1a7cade760eea17cefadbe959e16d77e), 'block_stylesheets'), 'body_attr' => array(object(__TwigTemplate_1a7cade760eea17cefadbe959e16d77e), 'block_body_attr'), 'body' => array(object(__TwigTemplate_1a7cade760eea17cefadbe959e16d77e), 'block_body'), 'javascripts' => array(object(__TwigTemplate_1a7cade760eea17cefadbe959e16d77e), 'block_javascripts'), 'header' => array(object(__TwigTemplate_1a7cade760eea17cefadbe959e16d77e), 'block_header'), 'sidebar' => array(object(__TwigTemplate_1a7cade760eea17cefadbe959e16d77e), 'block_sidebar'), 'page_classes' => array(object(__TwigTemplate_1a7cade760eea17cefadbe959e16d77e), 'block_page_classes'), 'breadcrumbs' => array(object(__TwigTemplate_c1306513a9e7226b6e31279b9ab23868), 'block_breadcrumbs'), 'page_content' => array(object(__TwigTemplate_c1306513a9e7226b6e31279b9ab23868), 'block_page_content')))
     (var/cache/dev/twig/eb/eb99614d940adbf368af2b90f10b43d0.php:91)
  at __TwigTemplate_90f8ab77ee981004d0c80a17c1fd97a5->doDisplay(array('content' => null, 'platform_options' => object(PlatformOptions), 'user_notifications' => null, 'user_message' => 0, 'builder_options' => object(BuilderOptions), 'file_manager_options' => object(FileManagerOptions), 'blog_options' => object(BlogOptions), 'cms_options' => object(CmsOptions), 'rgpd_options' => object(RgpdOptions), 'app' => object(AppVariable), 'host' => '127.0.0.1', 'documentationSlug' => '', 'currentRoute' => 'platform_legal_mentions'), array('favicon' => array(object(__TwigTemplate_90f8ab77ee981004d0c80a17c1fd97a5), 'block_favicon'), 'meta' => array(object(__TwigTemplate_90f8ab77ee981004d0c80a17c1fd97a5), 'block_meta'), 'title' => array(object(__TwigTemplate_c1306513a9e7226b6e31279b9ab23868), 'block_title'), 'stylesheets' => array(object(__TwigTemplate_1a7cade760eea17cefadbe959e16d77e), 'block_stylesheets'), 'body_attr' => array(object(__TwigTemplate_1a7cade760eea17cefadbe959e16d77e), 'block_body_attr'), 'body' => array(object(__TwigTemplate_1a7cade760eea17cefadbe959e16d77e), 'block_body'), 'javascripts' => array(object(__TwigTemplate_1a7cade760eea17cefadbe959e16d77e), 'block_javascripts'), 'header' => array(object(__TwigTemplate_1a7cade760eea17cefadbe959e16d77e), 'block_header'), 'sidebar' => array(object(__TwigTemplate_1a7cade760eea17cefadbe959e16d77e), 'block_sidebar'), 'page_classes' => array(object(__TwigTemplate_1a7cade760eea17cefadbe959e16d77e), 'block_page_classes'), 'breadcrumbs' => array(object(__TwigTemplate_c1306513a9e7226b6e31279b9ab23868), 'block_breadcrumbs'), 'page_content' => array(object(__TwigTemplate_c1306513a9e7226b6e31279b9ab23868), 'block_page_content')))
     (vendor/twig/twig/src/Template.php:402)
  at Twig\Template->yield(array('content' => null, 'platform_options' => object(PlatformOptions), 'user_notifications' => null, 'user_message' => 0, 'builder_options' => object(BuilderOptions), 'file_manager_options' => object(FileManagerOptions), 'blog_options' => object(BlogOptions), 'cms_options' => object(CmsOptions), 'rgpd_options' => object(RgpdOptions), 'app' => object(AppVariable), 'host' => '127.0.0.1', 'documentationSlug' => ''), array('favicon' => array(object(__TwigTemplate_90f8ab77ee981004d0c80a17c1fd97a5), 'block_favicon'), 'meta' => array(object(__TwigTemplate_90f8ab77ee981004d0c80a17c1fd97a5), 'block_meta'), 'title' => array(object(__TwigTemplate_c1306513a9e7226b6e31279b9ab23868), 'block_title'), 'stylesheets' => array(object(__TwigTemplate_1a7cade760eea17cefadbe959e16d77e), 'block_stylesheets'), 'body_attr' => array(object(__TwigTemplate_1a7cade760eea17cefadbe959e16d77e), 'block_body_attr'), 'body' => array(object(__TwigTemplate_1a7cade760eea17cefadbe959e16d77e), 'block_body'), 'javascripts' => array(object(__TwigTemplate_1a7cade760eea17cefadbe959e16d77e), 'block_javascripts'), 'header' => array(object(__TwigTemplate_1a7cade760eea17cefadbe959e16d77e), 'block_header'), 'sidebar' => array(object(__TwigTemplate_1a7cade760eea17cefadbe959e16d77e), 'block_sidebar'), 'page_classes' => array(object(__TwigTemplate_1a7cade760eea17cefadbe959e16d77e), 'block_page_classes'), 'breadcrumbs' => array(object(__TwigTemplate_c1306513a9e7226b6e31279b9ab23868), 'block_breadcrumbs'), 'page_content' => array(object(__TwigTemplate_c1306513a9e7226b6e31279b9ab23868), 'block_page_content')))
     (var/cache/dev/twig/57/57febcc506688e5117e8f1ff97993b16.php:65)
  at __TwigTemplate_1a7cade760eea17cefadbe959e16d77e->doDisplay(array('content' => null, 'platform_options' => object(PlatformOptions), 'user_notifications' => null, 'user_message' => 0, 'builder_options' => object(BuilderOptions), 'file_manager_options' => object(FileManagerOptions), 'blog_options' => object(BlogOptions), 'cms_options' => object(CmsOptions), 'rgpd_options' => object(RgpdOptions), 'app' => object(AppVariable), 'host' => '127.0.0.1', 'documentationSlug' => ''), array('title' => array(object(__TwigTemplate_c1306513a9e7226b6e31279b9ab23868), 'block_title'), 'body_attr' => array(object(__TwigTemplate_1a7cade760eea17cefadbe959e16d77e), 'block_body_attr'), 'body' => array(object(__TwigTemplate_1a7cade760eea17cefadbe959e16d77e), 'block_body'), 'header' => array(object(__TwigTemplate_1a7cade760eea17cefadbe959e16d77e), 'block_header'), 'sidebar' => array(object(__TwigTemplate_1a7cade760eea17cefadbe959e16d77e), 'block_sidebar'), 'page_classes' => array(object(__TwigTemplate_1a7cade760eea17cefadbe959e16d77e), 'block_page_classes'), 'breadcrumbs' => array(object(__TwigTemplate_c1306513a9e7226b6e31279b9ab23868), 'block_breadcrumbs'), 'page_content' => array(object(__TwigTemplate_c1306513a9e7226b6e31279b9ab23868), 'block_page_content'), 'javascripts' => array(object(__TwigTemplate_1a7cade760eea17cefadbe959e16d77e), 'block_javascripts'), 'stylesheets' => array(object(__TwigTemplate_1a7cade760eea17cefadbe959e16d77e), 'block_stylesheets')))
     (vendor/twig/twig/src/Template.php:402)
  at Twig\Template->yield(array('content' => null, 'platform_options' => object(PlatformOptions), 'user_notifications' => null, 'user_message' => 0, 'builder_options' => object(BuilderOptions), 'file_manager_options' => object(FileManagerOptions), 'blog_options' => object(BlogOptions), 'cms_options' => object(CmsOptions), 'rgpd_options' => object(RgpdOptions), 'app' => object(AppVariable), 'host' => '127.0.0.1'), array('title' => array(object(__TwigTemplate_c1306513a9e7226b6e31279b9ab23868), 'block_title'), 'body_attr' => array(object(__TwigTemplate_1a7cade760eea17cefadbe959e16d77e), 'block_body_attr'), 'body' => array(object(__TwigTemplate_1a7cade760eea17cefadbe959e16d77e), 'block_body'), 'header' => array(object(__TwigTemplate_1a7cade760eea17cefadbe959e16d77e), 'block_header'), 'sidebar' => array(object(__TwigTemplate_1a7cade760eea17cefadbe959e16d77e), 'block_sidebar'), 'page_classes' => array(object(__TwigTemplate_1a7cade760eea17cefadbe959e16d77e), 'block_page_classes'), 'breadcrumbs' => array(object(__TwigTemplate_c1306513a9e7226b6e31279b9ab23868), 'block_breadcrumbs'), 'page_content' => array(object(__TwigTemplate_c1306513a9e7226b6e31279b9ab23868), 'block_page_content'), 'javascripts' => array(object(__TwigTemplate_1a7cade760eea17cefadbe959e16d77e), 'block_javascripts'), 'stylesheets' => array(object(__TwigTemplate_1a7cade760eea17cefadbe959e16d77e), 'block_stylesheets')))
     (var/cache/dev/twig/72/72784704bfd4791d80688b54414d0367.php:55)
  at __TwigTemplate_c1306513a9e7226b6e31279b9ab23868->doDisplay(array('content' => null, 'platform_options' => object(PlatformOptions), 'user_notifications' => null, 'user_message' => 0, 'builder_options' => object(BuilderOptions), 'file_manager_options' => object(FileManagerOptions), 'blog_options' => object(BlogOptions), 'cms_options' => object(CmsOptions), 'rgpd_options' => object(RgpdOptions), 'app' => object(AppVariable), 'host' => '127.0.0.1'), array('title' => array(object(__TwigTemplate_c1306513a9e7226b6e31279b9ab23868), 'block_title'), 'breadcrumbs' => array(object(__TwigTemplate_c1306513a9e7226b6e31279b9ab23868), 'block_breadcrumbs'), 'page_content' => array(object(__TwigTemplate_c1306513a9e7226b6e31279b9ab23868), 'block_page_content')))
     (vendor/twig/twig/src/Template.php:402)
  at Twig\Template->yield(array('content' => null, 'platform_options' => object(PlatformOptions), 'user_notifications' => null, 'user_message' => 0, 'builder_options' => object(BuilderOptions), 'file_manager_options' => object(FileManagerOptions), 'blog_options' => object(BlogOptions), 'cms_options' => object(CmsOptions), 'rgpd_options' => object(RgpdOptions), 'app' => object(AppVariable), 'host' => '127.0.0.1'), array('title' => array(object(__TwigTemplate_c1306513a9e7226b6e31279b9ab23868), 'block_title'), 'breadcrumbs' => array(object(__TwigTemplate_c1306513a9e7226b6e31279b9ab23868), 'block_breadcrumbs'), 'page_content' => array(object(__TwigTemplate_c1306513a9e7226b6e31279b9ab23868), 'block_page_content')))
     (vendor/twig/twig/src/Template.php:358)
  at Twig\Template->display(array('content' => null))
     (vendor/twig/twig/src/Template.php:373)
  at Twig\Template->render(array('content' => null))
     (vendor/twig/twig/src/TemplateWrapper.php:51)
  at Twig\TemplateWrapper->render(array('content' => null))
     (vendor/twig/twig/src/Environment.php:333)
  at Twig\Environment->render('platform/legal/mentions.html.twig', array('content' => null))
     (vendor/symfony/framework-bundle/Controller/AbstractController.php:452)
  at Symfony\Bundle\FrameworkBundle\Controller\AbstractController->doRenderView('platform/legal/mentions.html.twig', null, array('content' => null), 'render')
     (vendor/symfony/framework-bundle/Controller/AbstractController.php:457)
  at Symfony\Bundle\FrameworkBundle\Controller\AbstractController->doRender('platform/legal/mentions.html.twig', null, array('content' => null), null, 'render')
     (vendor/symfony/framework-bundle/Controller/AbstractController.php:257)
  at Symfony\Bundle\FrameworkBundle\Controller\AbstractController->render('platform/legal/mentions.html.twig', array('content' => null))
     (src/Controller/Platform/LegalController.php:18)
  at App\Controller\Platform\LegalController->mentions(object(PlatformService))
     (vendor/symfony/http-kernel/HttpKernel.php:181)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1)
     (vendor/symfony/http-kernel/HttpKernel.php:76)
  at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true)
     (vendor/symfony/http-kernel/Kernel.php:208)
  at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
     (vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35)
  at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run()
     (vendor/autoload_runtime.php:29)
  at require_once('/home/clients/82912c3db656d3934b07da7bcf73107e/sites/preprod.canovia.fr/vendor/autoload_runtime.php')
     (public/index.php:5)