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\ServiciiPublice.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\a3\a3a148839b820167e7bafcaec9cf1c34c07683b6465231ce0cbd7993a07824e0.php at line 43  +
  3. at __TwigTemplate_58d7024c25b15d7aa7279fcd479658d67e12167ae380e867b58a0b41f28af79a ->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\a3\a3a148839b820167e7bafcaec9cf1c34c07683b6465231ce0cbd7993a07824e0.php at line 29  +
  8. at __TwigTemplate_58d7024c25b15d7aa7279fcd479658d67e12167ae380e867b58a0b41f28af79a ->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:ServiciiPublice.html.twig', array('r', 'S'))
    in vendor\symfony\symfony\src\Symfony\Bundle\TwigBundle\TwigEngine.php at line 72  +
  13. at TwigEngine ->render ('FrontendBundle:Default:ServiciiPublice.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:ServiciiPublice.html.twig', array('r', 'S'))
    in src\FrontendBundle\Controller\DefaultController.php at line 515  +
  16. at DefaultController ->ServiciiPubliceAction (object(Request), '3', 'proiecte-de-hotărâri')
  17. at call_user_func_array (array(object(DefaultController), 'ServiciiPubliceAction'), array(object(Request), '3', 'proiecte-de-hotărâri'))
    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)  +