Impossible to access an attribute ("slug") on a null variable.
500 Internal Server Error - Twig_Error_Runtime
Stack Trace
-
in src/FrontBundle/Resources/views/Actuality/actuality.html.twig at line 3
{% extends 'base.html.twig' %}
{% block ogurl %}{{ article.slug }}{% endblock %}
{% block ogtitle %}{{ article.title }}{% endblock %}
{% block ogdescription %}{{ article.content | striptags }}s{% endblock %}
{% block ogimage %}{% path article.image, 'big' %}{% endblock %}
-
at
Twig_Template
->getAttribute
(null, 'slug', array())
in app/cache/prod/twig/a8/a811d63eb680358ecb6105823f27609567737971ce6076625baa935071f05aa6.php at line 43 -
at
__TwigTemplate_cdf143787ae0f7ff7906d1c85436a5fc9f1608a309f77af7ea01ff5c87343930
->block_ogurl
(array('article' => null, 'category' => object(Category), 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => true), 'wrap_fields_with_addons' => true, 'app' => object(AppVariable), 'back_lib_strings_handling' => object(StringsHandling), 'back_lib_news_checker' => object(NewsChecker), 'fos_csrf_provider' => object(CsrfTokenManagerAdapter), 'sonata_block' => object(GlobalVariables), 'sonata_media' => object(GlobalVariables), 'sonata_admin' => object(GlobalVariables), 'sonata_user' => object(GlobalVariables)), array('title' => array(object(__TwigTemplate_5dbe0881af9ccec6b46b4e549b964c03f88172ef20eba4880cc6ea4f0e020945), 'block_title'), 'ogurl' => array(object(__TwigTemplate_cdf143787ae0f7ff7906d1c85436a5fc9f1608a309f77af7ea01ff5c87343930), 'block_ogurl'), 'ogtitle' => array(object(__TwigTemplate_cdf143787ae0f7ff7906d1c85436a5fc9f1608a309f77af7ea01ff5c87343930), 'block_ogtitle'), 'ogdescription' => array(object(__TwigTemplate_cdf143787ae0f7ff7906d1c85436a5fc9f1608a309f77af7ea01ff5c87343930), 'block_ogdescription'), 'ogimage' => array(object(__TwigTemplate_cdf143787ae0f7ff7906d1c85436a5fc9f1608a309f77af7ea01ff5c87343930), 'block_ogimage'), 'stylesheets' => array(object(__TwigTemplate_5dbe0881af9ccec6b46b4e549b964c03f88172ef20eba4880cc6ea4f0e020945), 'block_stylesheets'), 'headjavascripts' => array(object(__TwigTemplate_5dbe0881af9ccec6b46b4e549b964c03f88172ef20eba4880cc6ea4f0e020945), 'block_headjavascripts'), 'header' => array(object(__TwigTemplate_5dbe0881af9ccec6b46b4e549b964c03f88172ef20eba4880cc6ea4f0e020945), 'block_header'), 'content' => array(object(__TwigTemplate_cdf143787ae0f7ff7906d1c85436a5fc9f1608a309f77af7ea01ff5c87343930), 'block_content'), 'footer' => array(object(__TwigTemplate_5dbe0881af9ccec6b46b4e549b964c03f88172ef20eba4880cc6ea4f0e020945), 'block_footer'), 'javascripts' => array(object(__TwigTemplate_5dbe0881af9ccec6b46b4e549b964c03f88172ef20eba4880cc6ea4f0e020945), 'block_javascripts'), 'javascript' => array(object(__TwigTemplate_5dbe0881af9ccec6b46b4e549b964c03f88172ef20eba4880cc6ea4f0e020945), 'block_javascript')))
in app/cache/prod/classes.php at line 5063 -
at
Twig_Template
->displayBlock
('ogurl', array('article' => null, 'category' => object(Category), 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => true), 'wrap_fields_with_addons' => true, 'app' => object(AppVariable), 'back_lib_strings_handling' => object(StringsHandling), 'back_lib_news_checker' => object(NewsChecker), 'fos_csrf_provider' => object(CsrfTokenManagerAdapter), 'sonata_block' => object(GlobalVariables), 'sonata_media' => object(GlobalVariables), 'sonata_admin' => object(GlobalVariables), 'sonata_user' => object(GlobalVariables)), array('title' => array(object(__TwigTemplate_5dbe0881af9ccec6b46b4e549b964c03f88172ef20eba4880cc6ea4f0e020945), 'block_title'), 'ogurl' => array(object(__TwigTemplate_cdf143787ae0f7ff7906d1c85436a5fc9f1608a309f77af7ea01ff5c87343930), 'block_ogurl'), 'ogtitle' => array(object(__TwigTemplate_cdf143787ae0f7ff7906d1c85436a5fc9f1608a309f77af7ea01ff5c87343930), 'block_ogtitle'), 'ogdescription' => array(object(__TwigTemplate_cdf143787ae0f7ff7906d1c85436a5fc9f1608a309f77af7ea01ff5c87343930), 'block_ogdescription'), 'ogimage' => array(object(__TwigTemplate_cdf143787ae0f7ff7906d1c85436a5fc9f1608a309f77af7ea01ff5c87343930), 'block_ogimage'), 'stylesheets' => array(object(__TwigTemplate_5dbe0881af9ccec6b46b4e549b964c03f88172ef20eba4880cc6ea4f0e020945), 'block_stylesheets'), 'headjavascripts' => array(object(__TwigTemplate_5dbe0881af9ccec6b46b4e549b964c03f88172ef20eba4880cc6ea4f0e020945), 'block_headjavascripts'), 'header' => array(object(__TwigTemplate_5dbe0881af9ccec6b46b4e549b964c03f88172ef20eba4880cc6ea4f0e020945), 'block_header'), 'content' => array(object(__TwigTemplate_cdf143787ae0f7ff7906d1c85436a5fc9f1608a309f77af7ea01ff5c87343930), 'block_content'), 'footer' => array(object(__TwigTemplate_5dbe0881af9ccec6b46b4e549b964c03f88172ef20eba4880cc6ea4f0e020945), 'block_footer'), 'javascripts' => array(object(__TwigTemplate_5dbe0881af9ccec6b46b4e549b964c03f88172ef20eba4880cc6ea4f0e020945), 'block_javascripts'), 'javascript' => array(object(__TwigTemplate_5dbe0881af9ccec6b46b4e549b964c03f88172ef20eba4880cc6ea4f0e020945), 'block_javascript')))
in app/cache/prod/twig/97/9749096bbfd81dfbcbd1ed0bf0685d9e7402aa09246481dacfeaa5d4b46d82a1.php at line 68 -
at
__TwigTemplate_5dbe0881af9ccec6b46b4e549b964c03f88172ef20eba4880cc6ea4f0e020945
->doDisplay
(array('article' => null, 'category' => object(Category), 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => true), 'wrap_fields_with_addons' => true, 'app' => object(AppVariable), 'back_lib_strings_handling' => object(StringsHandling), 'back_lib_news_checker' => object(NewsChecker), 'fos_csrf_provider' => object(CsrfTokenManagerAdapter), 'sonata_block' => object(GlobalVariables), 'sonata_media' => object(GlobalVariables), 'sonata_admin' => object(GlobalVariables), 'sonata_user' => object(GlobalVariables)), array('title' => array(object(__TwigTemplate_5dbe0881af9ccec6b46b4e549b964c03f88172ef20eba4880cc6ea4f0e020945), 'block_title'), 'ogurl' => array(object(__TwigTemplate_cdf143787ae0f7ff7906d1c85436a5fc9f1608a309f77af7ea01ff5c87343930), 'block_ogurl'), 'ogtitle' => array(object(__TwigTemplate_cdf143787ae0f7ff7906d1c85436a5fc9f1608a309f77af7ea01ff5c87343930), 'block_ogtitle'), 'ogdescription' => array(object(__TwigTemplate_cdf143787ae0f7ff7906d1c85436a5fc9f1608a309f77af7ea01ff5c87343930), 'block_ogdescription'), 'ogimage' => array(object(__TwigTemplate_cdf143787ae0f7ff7906d1c85436a5fc9f1608a309f77af7ea01ff5c87343930), 'block_ogimage'), 'stylesheets' => array(object(__TwigTemplate_5dbe0881af9ccec6b46b4e549b964c03f88172ef20eba4880cc6ea4f0e020945), 'block_stylesheets'), 'headjavascripts' => array(object(__TwigTemplate_5dbe0881af9ccec6b46b4e549b964c03f88172ef20eba4880cc6ea4f0e020945), 'block_headjavascripts'), 'header' => array(object(__TwigTemplate_5dbe0881af9ccec6b46b4e549b964c03f88172ef20eba4880cc6ea4f0e020945), 'block_header'), 'content' => array(object(__TwigTemplate_cdf143787ae0f7ff7906d1c85436a5fc9f1608a309f77af7ea01ff5c87343930), 'block_content'), 'footer' => array(object(__TwigTemplate_5dbe0881af9ccec6b46b4e549b964c03f88172ef20eba4880cc6ea4f0e020945), 'block_footer'), 'javascripts' => array(object(__TwigTemplate_5dbe0881af9ccec6b46b4e549b964c03f88172ef20eba4880cc6ea4f0e020945), 'block_javascripts'), 'javascript' => array(object(__TwigTemplate_5dbe0881af9ccec6b46b4e549b964c03f88172ef20eba4880cc6ea4f0e020945), 'block_javascript')))
in app/cache/prod/classes.php at line 5181 -
at
Twig_Template
->displayWithErrorHandling
(array('article' => null, 'category' => object(Category), 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => true), 'wrap_fields_with_addons' => true, 'app' => object(AppVariable), 'back_lib_strings_handling' => object(StringsHandling), 'back_lib_news_checker' => object(NewsChecker), 'fos_csrf_provider' => object(CsrfTokenManagerAdapter), 'sonata_block' => object(GlobalVariables), 'sonata_media' => object(GlobalVariables), 'sonata_admin' => object(GlobalVariables), 'sonata_user' => object(GlobalVariables)), array('title' => array(object(__TwigTemplate_5dbe0881af9ccec6b46b4e549b964c03f88172ef20eba4880cc6ea4f0e020945), 'block_title'), 'ogurl' => array(object(__TwigTemplate_cdf143787ae0f7ff7906d1c85436a5fc9f1608a309f77af7ea01ff5c87343930), 'block_ogurl'), 'ogtitle' => array(object(__TwigTemplate_cdf143787ae0f7ff7906d1c85436a5fc9f1608a309f77af7ea01ff5c87343930), 'block_ogtitle'), 'ogdescription' => array(object(__TwigTemplate_cdf143787ae0f7ff7906d1c85436a5fc9f1608a309f77af7ea01ff5c87343930), 'block_ogdescription'), 'ogimage' => array(object(__TwigTemplate_cdf143787ae0f7ff7906d1c85436a5fc9f1608a309f77af7ea01ff5c87343930), 'block_ogimage'), 'stylesheets' => array(object(__TwigTemplate_5dbe0881af9ccec6b46b4e549b964c03f88172ef20eba4880cc6ea4f0e020945), 'block_stylesheets'), 'headjavascripts' => array(object(__TwigTemplate_5dbe0881af9ccec6b46b4e549b964c03f88172ef20eba4880cc6ea4f0e020945), 'block_headjavascripts'), 'header' => array(object(__TwigTemplate_5dbe0881af9ccec6b46b4e549b964c03f88172ef20eba4880cc6ea4f0e020945), 'block_header'), 'content' => array(object(__TwigTemplate_cdf143787ae0f7ff7906d1c85436a5fc9f1608a309f77af7ea01ff5c87343930), 'block_content'), 'footer' => array(object(__TwigTemplate_5dbe0881af9ccec6b46b4e549b964c03f88172ef20eba4880cc6ea4f0e020945), 'block_footer'), 'javascripts' => array(object(__TwigTemplate_5dbe0881af9ccec6b46b4e549b964c03f88172ef20eba4880cc6ea4f0e020945), 'block_javascripts'), 'javascript' => array(object(__TwigTemplate_5dbe0881af9ccec6b46b4e549b964c03f88172ef20eba4880cc6ea4f0e020945), 'block_javascript')))
in app/cache/prod/classes.php at line 5157 -
at
Twig_Template
->display
(array('article' => null, 'category' => object(Category), 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => true), 'wrap_fields_with_addons' => true, 'app' => object(AppVariable), 'back_lib_strings_handling' => object(StringsHandling), 'back_lib_news_checker' => object(NewsChecker), 'fos_csrf_provider' => object(CsrfTokenManagerAdapter), 'sonata_block' => object(GlobalVariables), 'sonata_media' => object(GlobalVariables), 'sonata_admin' => object(GlobalVariables), 'sonata_user' => object(GlobalVariables)), array('ogurl' => array(object(__TwigTemplate_cdf143787ae0f7ff7906d1c85436a5fc9f1608a309f77af7ea01ff5c87343930), 'block_ogurl'), 'ogtitle' => array(object(__TwigTemplate_cdf143787ae0f7ff7906d1c85436a5fc9f1608a309f77af7ea01ff5c87343930), 'block_ogtitle'), 'ogdescription' => array(object(__TwigTemplate_cdf143787ae0f7ff7906d1c85436a5fc9f1608a309f77af7ea01ff5c87343930), 'block_ogdescription'), 'ogimage' => array(object(__TwigTemplate_cdf143787ae0f7ff7906d1c85436a5fc9f1608a309f77af7ea01ff5c87343930), 'block_ogimage'), 'content' => array(object(__TwigTemplate_cdf143787ae0f7ff7906d1c85436a5fc9f1608a309f77af7ea01ff5c87343930), 'block_content')))
in app/cache/prod/twig/a8/a811d63eb680358ecb6105823f27609567737971ce6076625baa935071f05aa6.php at line 31 -
at
__TwigTemplate_cdf143787ae0f7ff7906d1c85436a5fc9f1608a309f77af7ea01ff5c87343930
->doDisplay
(array('article' => null, 'category' => object(Category), 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => true), 'wrap_fields_with_addons' => true, 'app' => object(AppVariable), 'back_lib_strings_handling' => object(StringsHandling), 'back_lib_news_checker' => object(NewsChecker), 'fos_csrf_provider' => object(CsrfTokenManagerAdapter), 'sonata_block' => object(GlobalVariables), 'sonata_media' => object(GlobalVariables), 'sonata_admin' => object(GlobalVariables), 'sonata_user' => object(GlobalVariables)), array('ogurl' => array(object(__TwigTemplate_cdf143787ae0f7ff7906d1c85436a5fc9f1608a309f77af7ea01ff5c87343930), 'block_ogurl'), 'ogtitle' => array(object(__TwigTemplate_cdf143787ae0f7ff7906d1c85436a5fc9f1608a309f77af7ea01ff5c87343930), 'block_ogtitle'), 'ogdescription' => array(object(__TwigTemplate_cdf143787ae0f7ff7906d1c85436a5fc9f1608a309f77af7ea01ff5c87343930), 'block_ogdescription'), 'ogimage' => array(object(__TwigTemplate_cdf143787ae0f7ff7906d1c85436a5fc9f1608a309f77af7ea01ff5c87343930), 'block_ogimage'), 'content' => array(object(__TwigTemplate_cdf143787ae0f7ff7906d1c85436a5fc9f1608a309f77af7ea01ff5c87343930), 'block_content')))
in app/cache/prod/classes.php at line 5181 -
at
Twig_Template
->displayWithErrorHandling
(array('article' => null, 'category' => object(Category), 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => true), 'wrap_fields_with_addons' => true, 'app' => object(AppVariable), 'back_lib_strings_handling' => object(StringsHandling), 'back_lib_news_checker' => object(NewsChecker), 'fos_csrf_provider' => object(CsrfTokenManagerAdapter), 'sonata_block' => object(GlobalVariables), 'sonata_media' => object(GlobalVariables), 'sonata_admin' => object(GlobalVariables), 'sonata_user' => object(GlobalVariables)), array('ogurl' => array(object(__TwigTemplate_cdf143787ae0f7ff7906d1c85436a5fc9f1608a309f77af7ea01ff5c87343930), 'block_ogurl'), 'ogtitle' => array(object(__TwigTemplate_cdf143787ae0f7ff7906d1c85436a5fc9f1608a309f77af7ea01ff5c87343930), 'block_ogtitle'), 'ogdescription' => array(object(__TwigTemplate_cdf143787ae0f7ff7906d1c85436a5fc9f1608a309f77af7ea01ff5c87343930), 'block_ogdescription'), 'ogimage' => array(object(__TwigTemplate_cdf143787ae0f7ff7906d1c85436a5fc9f1608a309f77af7ea01ff5c87343930), 'block_ogimage'), 'content' => array(object(__TwigTemplate_cdf143787ae0f7ff7906d1c85436a5fc9f1608a309f77af7ea01ff5c87343930), 'block_content')))
in app/cache/prod/classes.php at line 5157 -
at
Twig_Template
->display
(array('article' => null, 'category' => object(Category)))
in app/cache/prod/classes.php at line 5164 -
at
Twig_Template
->render
(array('article' => null, 'category' => object(Category)))
in vendor/symfony/symfony/src/Symfony/Bridge/Twig/TwigEngine.php at line 49 -
at
TwigEngine
->render
('FrontBundle:Actuality:actuality.html.twig', array('article' => null, 'category' => object(Category)))
in vendor/symfony/symfony/src/Symfony/Bundle/TwigBundle/TwigEngine.php at line 68 -
at
TwigEngine
->render
('FrontBundle:Actuality:actuality.html.twig', array('article' => null, 'category' => object(Category)))
in vendor/symfony/symfony/src/Symfony/Bundle/TwigBundle/TwigEngine.php at line 95 -
at
TwigEngine
->renderResponse
('FrontBundle:Actuality:actuality.html.twig', array('article' => null, 'category' => object(Category)), object(Response))
in vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Controller/Controller.php at line 185 -
at
Controller
->render
('FrontBundle:Actuality:actuality.html.twig', array('article' => null, 'category' => object(Category)))
in src/FrontBundle/Controller/ActualityController.php at line 56 - at ActualityController ->ActualityArticleAction ('non-a-la-reintroduction-de-neonicotinoides', 'au-senat')
-
at
call_user_func_array
(array(object(ActualityController), 'ActualityArticleAction'), array('non-a-la-reintroduction-de-neonicotinoides', 'au-senat'))
in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php at line 144 -
at
HttpKernel
->handleRaw
(object(Request), '1')
in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php at line 64 -
at
HttpKernel
->handle
(object(Request), '1', true)
in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/DependencyInjection/ContainerAwareHttpKernel.php at line 69 -
at
ContainerAwareHttpKernel
->handle
(object(Request), '1', true)
in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php at line 185 -
at
Kernel
->handle
(object(Request))
in web/app.php at line 28