Exception detected!

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

500 Internal Server Error - RuntimeError

Stack Trace

  1. in src/Acme/SiteBundle/Resources/views/Default/dettaglio.html.twig at line 50  -
    1.                                               {% for i in 1..prodotto.slide %}
    2.                                                   
    3.                                                   
    4.                                                    {% if sottocategorie[0].sottocategoria == ''  %}
    5.                      <li><img src="{{ asset('schede/'~prodotto.categoria~'/'~prodotto.titolo~'/slide'~i~'.jpg') }}" /></li>
    6.                 {% else %}
    7.                      <li><img src="{{ asset('schede/'~prodotto.categoria~'/'~prodotto.sottocategoria~'/'~prodotto.titolo~'/slide'~i~'.jpg') }}" /></li>
  2. at twig_get_attribute (object(Environment), object(Source), array(), '0', array(), 'array', false, false, false, '50')
    in app/cache/prod/twig/61/613c5ca1e392e4653cae0b8221ab1afb716763701a19f55bef943cc34befa99c.php at line 129  +
  3. at __TwigTemplate_6c38336982c768e597a582d51be4afb572b23d660035b486bd8151971456a33e ->block_content (array('prodotto' => object(Lavoro), 'sottocategorie' => array(), 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => false), 'app' => object(AppVariable), 'title' => 'Ceramizzato', 'description' => 'Ceramizzato', 'keywords' => 'Ceramizzato', '_parent' => array('prodotto' => object(Lavoro), 'sottocategorie' => array(), 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => false), 'app' => object(AppVariable), 'title' => 'Ceramizzato', 'description' => 'Ceramizzato', 'keywords' => 'Ceramizzato'), '_seq' => array('1', '2'), 'i' => '1', '_key' => '0'), array('content' => array(object(__TwigTemplate_6c38336982c768e597a582d51be4afb572b23d660035b486bd8151971456a33e), 'block_content')))
    in app/cache/prod/classes.php at line 4932  +
  4. at Template ->displayBlock ('content', array('prodotto' => object(Lavoro), 'sottocategorie' => array(), 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => false), 'app' => object(AppVariable), 'title' => 'Ceramizzato', 'description' => 'Ceramizzato', 'keywords' => 'Ceramizzato'), array('content' => array(object(__TwigTemplate_6c38336982c768e597a582d51be4afb572b23d660035b486bd8151971456a33e), 'block_content')))
    in app/cache/prod/twig/ba/bab4e33d731dcaebb599286795e5a3442efea72e3365798f3c766b84b17f268a.php at line 348  +
  5. at __TwigTemplate_5f3b61d5c0712e90120d2c2bb75648eeb96e7a345621f4f74fb83caefb620b3a ->doDisplay (array('prodotto' => object(Lavoro), 'sottocategorie' => array(), 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => false), 'app' => object(AppVariable), 'title' => 'Ceramizzato', 'description' => 'Ceramizzato', 'keywords' => 'Ceramizzato'), array('content' => array(object(__TwigTemplate_6c38336982c768e597a582d51be4afb572b23d660035b486bd8151971456a33e), 'block_content')))
    in app/cache/prod/classes.php at line 5060  +
  6. at Template ->displayWithErrorHandling (array('prodotto' => object(Lavoro), 'sottocategorie' => array(), 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => false), 'app' => object(AppVariable), 'title' => 'Ceramizzato', 'description' => 'Ceramizzato', 'keywords' => 'Ceramizzato'), array('content' => array(object(__TwigTemplate_6c38336982c768e597a582d51be4afb572b23d660035b486bd8151971456a33e), 'block_content')))
    in app/cache/prod/classes.php at line 5037  +
  7. at Template ->display (array('prodotto' => object(Lavoro), 'sottocategorie' => array(), 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => false), 'app' => object(AppVariable), 'title' => 'Ceramizzato', 'description' => 'Ceramizzato', 'keywords' => 'Ceramizzato'), array('content' => array(object(__TwigTemplate_6c38336982c768e597a582d51be4afb572b23d660035b486bd8151971456a33e), 'block_content')))
    in app/cache/prod/twig/61/613c5ca1e392e4653cae0b8221ab1afb716763701a19f55bef943cc34befa99c.php at line 52  +
  8. at __TwigTemplate_6c38336982c768e597a582d51be4afb572b23d660035b486bd8151971456a33e ->doDisplay (array('prodotto' => object(Lavoro), 'sottocategorie' => array(), 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => false), 'app' => object(AppVariable), 'title' => 'Ceramizzato', 'description' => 'Ceramizzato', 'keywords' => 'Ceramizzato'), array('content' => array(object(__TwigTemplate_6c38336982c768e597a582d51be4afb572b23d660035b486bd8151971456a33e), 'block_content')))
    in app/cache/prod/classes.php at line 5060  +
  9. at Template ->displayWithErrorHandling (array('prodotto' => object(Lavoro), 'sottocategorie' => array(), 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => false), 'app' => object(AppVariable)), array('content' => array(object(__TwigTemplate_6c38336982c768e597a582d51be4afb572b23d660035b486bd8151971456a33e), 'block_content')))
    in app/cache/prod/classes.php at line 5037  +
  10. at Template ->display (array('prodotto' => object(Lavoro), 'sottocategorie' => array()))
    in app/cache/prod/classes.php at line 5048  +
  11. at Template ->render (array('prodotto' => object(Lavoro), 'sottocategorie' => array()))
    in vendor/symfony/symfony/src/Symfony/Bridge/Twig/TwigEngine.php at line 49  +
  12. at TwigEngine ->render ('AcmeSiteBundle:Default:dettaglio.html.twig', array('prodotto' => object(Lavoro), 'sottocategorie' => array()))
    in vendor/symfony/symfony/src/Symfony/Bundle/TwigBundle/TwigEngine.php at line 68  +
  13. at TwigEngine ->render ('AcmeSiteBundle:Default:dettaglio.html.twig', array('prodotto' => object(Lavoro), 'sottocategorie' => array()))
    in vendor/symfony/symfony/src/Symfony/Bundle/TwigBundle/TwigEngine.php at line 95  +
  14. at TwigEngine ->renderResponse ('AcmeSiteBundle:Default:dettaglio.html.twig', array('prodotto' => object(Lavoro), 'sottocategorie' => array()), object(Response))
    in vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Controller/Controller.php at line 185  +
  15. at Controller ->render ('AcmeSiteBundle:Default:dettaglio.html.twig', array('prodotto' => object(Lavoro), 'sottocategorie' => array()))
    in src/Acme/SiteBundle/Controller/DefaultController.php at line 104  +
  16. at DefaultController ->dettaglioAction ('Rivestimenti%20a%20spessore', '44')
    in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php at line 135  +
  17. at HttpKernel ->handleRaw (object(Request), '1')
    in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php at line 57  +
  18. at HttpKernel ->handle (object(Request), '1', true)
    in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/DependencyInjection/ContainerAwareHttpKernel.php at line 67  +
  19. at ContainerAwareHttpKernel ->handle (object(Request), '1', true)
    in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php at line 183  +
  20. at Kernel ->handle (object(Request))
    in web/app.php at line 58  +

Logs  -

Stack Trace (Plain Text)  +