Exception detected!

Key "category" does not exist as the array is empty.

500 Internal Server Error - Twig_Error_Runtime

Stack Trace

  1. in src\FrontendBundle\Resources\views\Default\InfoPublice.html.twig at line 4  -
    1. {% extends '@Frontend/base.html.twig' %}
    2. {% block meta %}
    3.     <title>{{ activeItem.category.name }} - {{ settings['NAME_CITY'] }}</title>
    4.     <meta name="description" content="{{ activeItem.category.name }} - {{ settings['NAME_CITY'] }}">
    5. {% endblock meta %}
  2. at Twig_Template ->getAttribute (array(), 'category', array())
    in app\cache\prod\twig\cb\cbc6d26553d8f2e882dc9a96938ccce38644109bbd68d4c6c2aaa2811e552721.php at line 43  +
  3. at __TwigTemplate_31786973fdfe57b707f34435d117b1127bcc452a14746ce5b184d2a8a26c174e ->block_meta ('r', 'S')
    in app\cache\prod\classes.php at line 4955  +
  4. at Twig_Template ->displayBlock ('r', 'S')
    in app\cache\prod\twig\75\750a97bc5b0d775979b9a5683f8a56a6ada4cbd3099c155bed8b2b5215b8494f.php at line 50  +
  5. at __TwigTemplate_729c348724e3de9af155ff47e52b135d5910d02771cb52351a1a452fe263c1a7 ->doDisplay ('r', 'S')
    in app\cache\prod\classes.php at line 5073  +
  6. at Twig_Template ->displayWithErrorHandling ('r', 'S')
    in app\cache\prod\classes.php at line 5049  +
  7. at Twig_Template ->display ('r', 'S')
    in app\cache\prod\twig\cb\cbc6d26553d8f2e882dc9a96938ccce38644109bbd68d4c6c2aaa2811e552721.php at line 29  +
  8. at __TwigTemplate_31786973fdfe57b707f34435d117b1127bcc452a14746ce5b184d2a8a26c174e ->doDisplay ('r', 'S')
    in app\cache\prod\classes.php at line 5073  +
  9. at Twig_Template ->displayWithErrorHandling ('r', 'S')
    in app\cache\prod\classes.php at line 5049  +
  10. at Twig_Template ->display (array('r', 'S'))
    in app\cache\prod\classes.php at line 5056  +
  11. at Twig_Template ->render (array('r', 'S'))
    in vendor\symfony\symfony\src\Symfony\Bridge\Twig\TwigEngine.php at line 50  +
  12. at TwigEngine ->render ('FrontendBundle:Default:InfoPublice.html.twig', array('r', 'S'))
    in vendor\symfony\symfony\src\Symfony\Bundle\TwigBundle\TwigEngine.php at line 72  +
  13. at TwigEngine ->render ('FrontendBundle:Default:InfoPublice.html.twig', array('r', 'S'))
    in vendor\symfony\symfony\src\Symfony\Bundle\TwigBundle\TwigEngine.php at line 99  +
  14. at TwigEngine ->renderResponse ('r', 'S')
    in vendor\symfony\symfony\src\Symfony\Bundle\FrameworkBundle\Controller\Controller.php at line 176  +
  15. at Controller ->render ('FrontendBundle:Default:InfoPublice.html.twig', array('r', 'S'))
    in src\FrontendBundle\Controller\DefaultController.php at line 449  +
  16. at DefaultController ->InfoPubliceAction (object(Request), '11', 'buget')
  17. at call_user_func_array (array(object(DefaultController), 'InfoPubliceAction'), array(object(Request), '11', 'buget'))
    in app\bootstrap.php.cache at line 3140  +
  18. at HttpKernel ->handleRaw (object(Request), '1')
    in app\bootstrap.php.cache at line 3099  +
  19. at HttpKernel ->handle (object(Request), '1', true)
    in app\bootstrap.php.cache at line 3253  +
  20. at ContainerAwareHttpKernel ->handle (object(Request), '1', true)
    in app\bootstrap.php.cache at line 2484  +
  21. at Kernel ->handle (object(Request))
    in web\app_dev.php at line 17  +

Logs  -

Stack Trace (Plain Text)  +