Exception detected!

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

500 Internal Server Error - Twig_Error_Runtime

Stack Trace

  1. in src/FrontBundle/Resources/views/Actuality/actuality.html.twig at line 3  -
    1. {% extends 'base.html.twig' %}
    2. {% block ogurl %}{{ article.slug }}{% endblock %}
    3. {% block ogtitle %}{{ article.title }}{% endblock %}
    4. {% block ogdescription %}{{ article.content | striptags }}s{% endblock %}
    5. {% block ogimage %}{% path article.image, 'big' %}{% endblock %}
  2. at Twig_Template ->getAttribute (null, 'slug', array())
    in app/cache/prod/twig/a8/a811d63eb680358ecb6105823f27609567737971ce6076625baa935071f05aa6.php at line 43  +
  3. 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  +
  4. 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  +
  5. 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  +
  6. 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  +
  7. 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  +
  8. 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  +
  9. 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  +
  10. at Twig_Template ->display (array('article' => null, 'category' => object(Category)))
    in app/cache/prod/classes.php at line 5164  +
  11. at Twig_Template ->render (array('article' => null, 'category' => object(Category)))
    in vendor/symfony/symfony/src/Symfony/Bridge/Twig/TwigEngine.php at line 49  +
  12. 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  +
  13. 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  +
  14. 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  +
  15. at Controller ->render ('FrontBundle:Actuality:actuality.html.twig', array('article' => null, 'category' => object(Category)))
    in src/FrontBundle/Controller/ActualityController.php at line 56  +
  16. at ActualityController ->ActualityArticleAction ('delegation-aux-droits-des-femmes-lancement-des-travaux-femmes-et-ruralite', 'au-senat')
  17. at call_user_func_array (array(object(ActualityController), 'ActualityArticleAction'), array('delegation-aux-droits-des-femmes-lancement-des-travaux-femmes-et-ruralite', 'au-senat'))
    in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php at line 144  +
  18. at HttpKernel ->handleRaw (object(Request), '1')
    in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php at line 64  +
  19. at HttpKernel ->handle (object(Request), '1', true)
    in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/DependencyInjection/ContainerAwareHttpKernel.php at line 69  +
  20. at ContainerAwareHttpKernel ->handle (object(Request), '1', true)
    in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php at line 185  +
  21. at Kernel ->handle (object(Request))
    in web/app.php at line 28  +

Logs  -

Stack Trace (Plain Text)  +