| exception |
Twig\Error\RuntimeError {#1690
-lineno: 4
-name: "default/activiteDetail.html.twig"
-rawMessage: "Impossible to access an attribute ("description") on a null variable."
-sourcePath: "/home/clients/f5f18e1c12eb94b017fc21ce592a0855/web/templates/default/activiteDetail.html.twig"
-sourceCode: """
{% extends 'base.html.twig' %}\n
\n
{% block title %}\n
<meta name="description" content="{{article.description|striptags}}">\n
<title>{{article.titre}} LIONS CLUB Laclaireau | comté de Chiny </title>\n
{% endblock %}\n
{% block body %}\n
<div class="container">\n
<div class="tr-content">\n
<div class="row">\n
<div class="col-md-12 col-lg-12 tr-sticky">\n
<div class="theiaStickySidebar">\n
<div class="breadcrumbs">\n
<a href="{{path('app_default')}}">Accueil</a>\n
<span>/ </span>{{article.titre}}\n
</div>\n
\n
<div class="row">\n
<div class="col-lg-12">\n
<div class="blog-post">\n
<div class="blog-post-content">\n
<div class="blog-list-desc">\n
\n
<h3>{{article.titre}}</h3>\n
<label>\n
<span> le {{article.date|date('d')}} \n
{% if article.date|date('m') == '01' %}Janvier{% endif %}\n
{% if article.date|date('m') == '02' %}Février{% endif %}\n
{% if article.date|date('m') == '03' %}Mars{% endif %}\n
{% if article.date|date('m') == '04' %}Avril{% endif %}\n
{% if article.date|date('m') == '05' %}Mai{% endif %}\n
{% if article.date|date('m') == '06' %}Juin{% endif %}\n
{% if article.date|date('m') == '07' %}Juillet{% endif %}\n
{% if article.date|date('m') == '08' %}Août{% endif %}\n
{% if article.date|date('m') == '09' %}Septembre{% endif %}\n
{% if article.date|date('m') == '10' %}Octobre{% endif %}\n
{% if article.date|date('m') == '11' %}Novembre{% endif %}\n
{% if article.date|date('m') == '12' %}Décembre{% endif %}\n
{{article.date|date('Y')}}\n
</label>\n
</div>\n
\n
<div class="blog-image">\n
{% if article.image != 'ok' %}\n
<img src="{{asset('uploads/'~article.image)}}" alt="{{article.titre}}" class="img-thumbnail">\n
\n
{% endif %}\n
</div>\n
<div class="blog-text">\n
\n
{{article.description|raw}}\n
</div>\n
</div>\n
\n
\n
</div>\n
</div>\n
\n
</div>\n
\n
\n
\n
\n
</div>\n
</div>\n
</div>\n
\n
</div>\n
</div>\n
</div>\n
{% endblock %}
"""
#message: "Impossible to access an attribute ("description") on a null variable."
#code: 0
#file: "/home/clients/f5f18e1c12eb94b017fc21ce592a0855/web/templates/default/activiteDetail.html.twig"
#line: 4
trace: {
/home/clients/f5f18e1c12eb94b017fc21ce592a0855/web/templates/default/activiteDetail.html.twig:4 {
twig_get_attribute(Environment $env, Source $source, $object, $item, array $arguments = __CLASS__, $type = __CLASS__, $isDefinedTest = __CLASS__, $ignoreStrictCheck = __CLASS__, $sandboxed = __CLASS__, int $lineno = __CLASS__) …
› {% block title %}
› <meta name="description" content="{{article.description|striptags}}">
› <title>{{article.titre}} LIONS CLUB Laclaireau | comté de Chiny </title>
}
/home/clients/f5f18e1c12eb94b017fc21ce592a0855/web/var/cache/dev/twig/05/05eb70d95ebb86bb1cd15ac81e2c625ac53a66294aeda50a32623a06d73d336a.php:70 {
__TwigTemplate_2728ef3d4ab68112056ec97399d48323e6c8cd956a65b857f382825314f8ed42->block_title($context, array $blocks = __CLASS__) …
› echo "<meta name=\"description\" content=\"";
› echo twig_escape_filter($this->env, twig_striptags(twig_get_attribute($this->env, $this->source, (isset($context["article"]) || array_key_exists("article", $context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.', 4, $this->source); })()), "description", [], "any", false, false, false, 4)), "html", null, true);
› echo "\">
arguments: {
$env: Twig\Environment {#1636 …}
$source: Twig\Source {#1678 …}
$object: null
$item: "description"
$arguments: []
$type: "any"
$isDefinedTest: false
$ignoreStrictCheck: false
$sandboxed: false
$lineno: 4
}
}
/home/clients/f5f18e1c12eb94b017fc21ce592a0855/web/vendor/twig/twig/src/Template.php:171 {
Twig\Template->displayBlock($name, array $context, array $blocks = __CLASS__, $useBlocks = __CLASS__, self $templateContext = __CLASS__) …
› try {
› $template->$block($context, $blocks);
› } catch (Error $e) {
arguments: {
$context: [ …2]
$blocks: [ …2]
}
}
/home/clients/f5f18e1c12eb94b017fc21ce592a0855/web/templates/base.html.twig:8 {
__TwigTemplate_22a404848e6412d8c77fcefd0fe036fe205cf2ca654c240d09dcef24d74e2986->doDisplay(array $context, array $blocks = __CLASS__) …
› <meta name="author" content="AREADY.IO">
› {% block title %}{% endblock %}
›
arguments: {
$name: "title"
$context: [ …2]
$blocks: [ …2]
}
}
/home/clients/f5f18e1c12eb94b017fc21ce592a0855/web/vendor/twig/twig/src/Template.php:394 {
Twig\Template->displayWithErrorHandling(array $context, array $blocks = __CLASS__) …
› try {
› $this->doDisplay($context, $blocks);
› } catch (Error $e) {
arguments: {
$context: [ …2]
$blocks: [ …2]
}
}
/home/clients/f5f18e1c12eb94b017fc21ce592a0855/web/vendor/twig/twig/src/Template.php:367 {
Twig\Template->display(array $context, array $blocks = __CLASS__) …
› {
› $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
› }
arguments: {
$context: [ …2]
$blocks: [ …2]
}
}
/home/clients/f5f18e1c12eb94b017fc21ce592a0855/web/var/cache/dev/twig/05/05eb70d95ebb86bb1cd15ac81e2c625ac53a66294aeda50a32623a06d73d336a.php:49 {
__TwigTemplate_2728ef3d4ab68112056ec97399d48323e6c8cd956a65b857f382825314f8ed42->doDisplay(array $context, array $blocks = __CLASS__) …
› $this->parent = $this->loadTemplate("base.html.twig", "default/activiteDetail.html.twig", 1);
› $this->parent->display($context, array_merge($this->blocks, $blocks));
›
arguments: {
$context: [ …2]
$blocks: [ …2]
}
}
/home/clients/f5f18e1c12eb94b017fc21ce592a0855/web/vendor/twig/twig/src/Template.php:394 {
Twig\Template->displayWithErrorHandling(array $context, array $blocks = __CLASS__) …
› try {
› $this->doDisplay($context, $blocks);
› } catch (Error $e) {
arguments: {
$context: [ …2]
$blocks: [ …2]
}
}
/home/clients/f5f18e1c12eb94b017fc21ce592a0855/web/vendor/twig/twig/src/Template.php:367 {
Twig\Template->display(array $context, array $blocks = __CLASS__) …
› {
› $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
› }
arguments: {
$context: [ …2]
$blocks: [ …2]
}
}
/home/clients/f5f18e1c12eb94b017fc21ce592a0855/web/vendor/twig/twig/src/Template.php:379 {
Twig\Template->render(array $context) …
› try {
› $this->display($context);
› } catch (\Throwable $e) {
arguments: {
$context: [ …1]
}
}
/home/clients/f5f18e1c12eb94b017fc21ce592a0855/web/vendor/twig/twig/src/TemplateWrapper.php:40 {
Twig\TemplateWrapper->render(array $context = __CLASS__): string …
› // as it should only be used by internal code
› return $this->template->render($context, \func_get_args()[1] ?? []);
› }
arguments: {
$context: [ …1]
...: {
[]
}
}
}
/home/clients/f5f18e1c12eb94b017fc21ce592a0855/web/vendor/twig/twig/src/Environment.php:277 {
Twig\Environment->render($name, array $context = __CLASS__): string …
› {
› return $this->load($name)->render($context);
› }
arguments: {
$context: [ …1]
}
}
/home/clients/f5f18e1c12eb94b017fc21ce592a0855/web/vendor/symfony/framework-bundle/Controller/AbstractController.php:258 {
Symfony\Bundle\FrameworkBundle\Controller\AbstractController->renderView(string $view, array $parameters = __CLASS__): string …
›
› return $this->container->get('twig')->render($view, $parameters);
› }
arguments: {
$name: "default/activiteDetail.html.twig"
$context: [ …1]
}
}
/home/clients/f5f18e1c12eb94b017fc21ce592a0855/web/vendor/symfony/framework-bundle/Controller/AbstractController.php:266 {
Symfony\Bundle\FrameworkBundle\Controller\AbstractController->render(string $view, array $parameters = __CLASS__, Response $response = __CLASS__): Response …
› {
› $content = $this->renderView($view, $parameters);
›
arguments: {
$view: "default/activiteDetail.html.twig"
$parameters: [ …1]
}
}
/home/clients/f5f18e1c12eb94b017fc21ce592a0855/web/src/Controller/DefaultController.php:118 {
App\Controller\DefaultController->activiteDetail(PaginatorInterface $paginator, ArticlesRepository $articlesRepository, Request $request, CategoriesEvenementsRepository $categoriesRepository, EvenementsRepository $evenements, $id): Response …
› return $this->render('default/activiteDetail.html.twig', [
› 'article'=>$article,
›
arguments: {
$view: "default/activiteDetail.html.twig"
$parameters: [ …1]
}
}
/home/clients/f5f18e1c12eb94b017fc21ce592a0855/web/vendor/symfony/http-kernel/HttpKernel.php:152 {
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Request $request, int $type = self::MAIN_REQUEST): Response …
› // call controller
› $response = $controller(...$arguments);
›
arguments: {
$paginator: ContainerJc7ZlNF\PaginatorInterface_82dac15 {#545 …}
$articlesRepository: App\Repository\ArticlesRepository {#551 …}
$request: Symfony\Component\HttpFoundation\Request {#56 …}
$categoriesRepository: App\Repository\CategoriesEvenementsRepository {#447 …}
$evenements: App\Repository\EvenementsRepository {#372 …}
$id: "AREADY.IO"
}
}
/home/clients/f5f18e1c12eb94b017fc21ce592a0855/web/vendor/symfony/http-kernel/HttpKernel.php:74 {
Symfony\Component\HttpKernel\HttpKernel->handle(Request $request, int $type = HttpKernelInterface::MAIN_REQUEST, bool $catch = __CLASS__) …
› try {
› return $this->handleRaw($request, $type);
› } catch (\Exception $e) {
arguments: {
$request: Symfony\Component\HttpFoundation\Request {#56 …}
$type: 1
}
}
/home/clients/f5f18e1c12eb94b017fc21ce592a0855/web/vendor/symfony/http-kernel/Kernel.php:202 {
Symfony\Component\HttpKernel\Kernel->handle(Request $request, int $type = HttpKernelInterface::MAIN_REQUEST, bool $catch = __CLASS__) …
› try {
› return $this->getHttpKernel()->handle($request, $type, $catch);
› } finally {
arguments: {
$request: Symfony\Component\HttpFoundation\Request {#56 …}
$type: 1
$catch: true
}
}
/home/clients/f5f18e1c12eb94b017fc21ce592a0855/web/vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35 {
Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run(): int …
› {
› $response = $this->kernel->handle($this->request);
› $response->send();
arguments: {
$request: Symfony\Component\HttpFoundation\Request {#56 …}
}
}
/home/clients/f5f18e1c12eb94b017fc21ce592a0855/web/vendor/autoload_runtime.php:35 {
require_once …
› ->getRunner($app)
› ->run()
› );
}
/home/clients/f5f18e1c12eb94b017fc21ce592a0855/web/public/index.php:5 {
›
› require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
›
arguments: {
"/home/clients/f5f18e1c12eb94b017fc21ce592a0855/web/vendor/autoload_runtime.php"
}
}
}
} |