Exception detected!

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

500 Internal Server Error - Twig_Error_Runtime

Stack Trace

  1. in app/Resources/views/default/detail-product.html.twig at line 35  -
    1.             {% endfor %}
    2.         <br />
    3.         
    4.     {% set product = produits.0 %}
    5.     {% set inittxt = options.0 %}
    6.     <input type="hidden" class="prix" value="{{ product.prix_modif }}" />
    7.     <input type="hidden" class="id_extension" value="{{ product.id_extension }}" />
  2. at Twig_Template ->getAttribute (array(), '0', array())
    in app/cache/dev/twig/0c/0c60786ef44bbe54f0b78e9816662417b3321c7e66d46afd0836d355c2c94a5d.php at line 171  +
  3. at __TwigTemplate_b04474306107f257ab21d09160f73fc05bf7eb126520315298fdafe8594778f9 ->block_theblog_body (array('base_dir' => '/var/www/autoneo-courtoisie.clubautogenerate.com/', 'produits' => array(), 'options' => array(), 'modules' => object(stdClass), 'samecategoriesnew' => array(), 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => true), 'app' => object(AppVariable), 'site_name' => 'autoneo-courtoisie.fr', 'id_site' => '19', 'path_pop_up' => 'https://catalogue-loc-courtoisie.fr/bodev/bov2/web/uploads/produits/pop_up/'), array('title' => array(object(__TwigTemplate_f03ce752e78471e6aad3cdf7fb452e49a9387ebca9b9e57563ef9f9930105fb5), 'block_title'), 'stylesheets' => array(object(__TwigTemplate_b04474306107f257ab21d09160f73fc05bf7eb126520315298fdafe8594778f9), 'block_stylesheets'), 'stylesheets_statique' => array(object(__TwigTemplate_b04474306107f257ab21d09160f73fc05bf7eb126520315298fdafe8594778f9), 'block_stylesheets_statique'), 'header_with_slider' => array(object(__TwigTemplate_b04474306107f257ab21d09160f73fc05bf7eb126520315298fdafe8594778f9), 'block_header_with_slider'), 'header' => array(object(__TwigTemplate_b04474306107f257ab21d09160f73fc05bf7eb126520315298fdafe8594778f9), 'block_header'), 'theblog_body' => array(object(__TwigTemplate_b04474306107f257ab21d09160f73fc05bf7eb126520315298fdafe8594778f9), 'block_theblog_body'), 'footer' => array(object(__TwigTemplate_b04474306107f257ab21d09160f73fc05bf7eb126520315298fdafe8594778f9), 'block_footer'), 'footer_no_reinsurances' => array(object(__TwigTemplate_b04474306107f257ab21d09160f73fc05bf7eb126520315298fdafe8594778f9), 'block_footer_no_reinsurances'), 'javascripts' => array(object(__TwigTemplate_b04474306107f257ab21d09160f73fc05bf7eb126520315298fdafe8594778f9), 'block_javascripts'), 'javascripts_index' => array(object(__TwigTemplate_b04474306107f257ab21d09160f73fc05bf7eb126520315298fdafe8594778f9), 'block_javascripts_index')))
    in app/cache/dev/classes.php at line 5056  +
  4. at Twig_Template ->displayBlock ('theblog_body', array('base_dir' => '/var/www/autoneo-courtoisie.clubautogenerate.com/', 'produits' => array(), 'options' => array(), 'modules' => object(stdClass), 'samecategoriesnew' => array(), 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => true), 'app' => object(AppVariable), 'site_name' => 'autoneo-courtoisie.fr', 'id_site' => '19', 'path_pop_up' => 'https://catalogue-loc-courtoisie.fr/bodev/bov2/web/uploads/produits/pop_up/'), array('title' => array(object(__TwigTemplate_f03ce752e78471e6aad3cdf7fb452e49a9387ebca9b9e57563ef9f9930105fb5), 'block_title'), 'stylesheets' => array(object(__TwigTemplate_b04474306107f257ab21d09160f73fc05bf7eb126520315298fdafe8594778f9), 'block_stylesheets'), 'stylesheets_statique' => array(object(__TwigTemplate_b04474306107f257ab21d09160f73fc05bf7eb126520315298fdafe8594778f9), 'block_stylesheets_statique'), 'header_with_slider' => array(object(__TwigTemplate_b04474306107f257ab21d09160f73fc05bf7eb126520315298fdafe8594778f9), 'block_header_with_slider'), 'header' => array(object(__TwigTemplate_b04474306107f257ab21d09160f73fc05bf7eb126520315298fdafe8594778f9), 'block_header'), 'theblog_body' => array(object(__TwigTemplate_b04474306107f257ab21d09160f73fc05bf7eb126520315298fdafe8594778f9), 'block_theblog_body'), 'footer' => array(object(__TwigTemplate_b04474306107f257ab21d09160f73fc05bf7eb126520315298fdafe8594778f9), 'block_footer'), 'footer_no_reinsurances' => array(object(__TwigTemplate_b04474306107f257ab21d09160f73fc05bf7eb126520315298fdafe8594778f9), 'block_footer_no_reinsurances'), 'javascripts' => array(object(__TwigTemplate_b04474306107f257ab21d09160f73fc05bf7eb126520315298fdafe8594778f9), 'block_javascripts'), 'javascripts_index' => array(object(__TwigTemplate_b04474306107f257ab21d09160f73fc05bf7eb126520315298fdafe8594778f9), 'block_javascripts_index')))
    in app/cache/dev/twig/c6/c63b6a53c43f2f88371f8c8623f94197c2fa979f8a2c718207cb8cc85b53cd9f.php at line 89  +
  5. at __TwigTemplate_f03ce752e78471e6aad3cdf7fb452e49a9387ebca9b9e57563ef9f9930105fb5 ->doDisplay (array('base_dir' => '/var/www/autoneo-courtoisie.clubautogenerate.com/', 'produits' => array(), 'options' => array(), 'modules' => object(stdClass), 'samecategoriesnew' => array(), 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => true), 'app' => object(AppVariable), 'site_name' => 'autoneo-courtoisie.fr', 'id_site' => '19', 'path_pop_up' => 'https://catalogue-loc-courtoisie.fr/bodev/bov2/web/uploads/produits/pop_up/'), array('title' => array(object(__TwigTemplate_f03ce752e78471e6aad3cdf7fb452e49a9387ebca9b9e57563ef9f9930105fb5), 'block_title'), 'stylesheets' => array(object(__TwigTemplate_b04474306107f257ab21d09160f73fc05bf7eb126520315298fdafe8594778f9), 'block_stylesheets'), 'stylesheets_statique' => array(object(__TwigTemplate_b04474306107f257ab21d09160f73fc05bf7eb126520315298fdafe8594778f9), 'block_stylesheets_statique'), 'header_with_slider' => array(object(__TwigTemplate_b04474306107f257ab21d09160f73fc05bf7eb126520315298fdafe8594778f9), 'block_header_with_slider'), 'header' => array(object(__TwigTemplate_b04474306107f257ab21d09160f73fc05bf7eb126520315298fdafe8594778f9), 'block_header'), 'theblog_body' => array(object(__TwigTemplate_b04474306107f257ab21d09160f73fc05bf7eb126520315298fdafe8594778f9), 'block_theblog_body'), 'footer' => array(object(__TwigTemplate_b04474306107f257ab21d09160f73fc05bf7eb126520315298fdafe8594778f9), 'block_footer'), 'footer_no_reinsurances' => array(object(__TwigTemplate_b04474306107f257ab21d09160f73fc05bf7eb126520315298fdafe8594778f9), 'block_footer_no_reinsurances'), 'javascripts' => array(object(__TwigTemplate_b04474306107f257ab21d09160f73fc05bf7eb126520315298fdafe8594778f9), 'block_javascripts'), 'javascripts_index' => array(object(__TwigTemplate_b04474306107f257ab21d09160f73fc05bf7eb126520315298fdafe8594778f9), 'block_javascripts_index')))
    in app/cache/dev/classes.php at line 5174  +
  6. at Twig_Template ->displayWithErrorHandling (array('base_dir' => '/var/www/autoneo-courtoisie.clubautogenerate.com/', 'produits' => array(), 'options' => array(), 'modules' => object(stdClass), 'samecategoriesnew' => array(), 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => true), 'app' => object(AppVariable), 'site_name' => 'autoneo-courtoisie.fr', 'id_site' => '19', 'path_pop_up' => 'https://catalogue-loc-courtoisie.fr/bodev/bov2/web/uploads/produits/pop_up/'), array('title' => array(object(__TwigTemplate_f03ce752e78471e6aad3cdf7fb452e49a9387ebca9b9e57563ef9f9930105fb5), 'block_title'), 'stylesheets' => array(object(__TwigTemplate_b04474306107f257ab21d09160f73fc05bf7eb126520315298fdafe8594778f9), 'block_stylesheets'), 'stylesheets_statique' => array(object(__TwigTemplate_b04474306107f257ab21d09160f73fc05bf7eb126520315298fdafe8594778f9), 'block_stylesheets_statique'), 'header_with_slider' => array(object(__TwigTemplate_b04474306107f257ab21d09160f73fc05bf7eb126520315298fdafe8594778f9), 'block_header_with_slider'), 'header' => array(object(__TwigTemplate_b04474306107f257ab21d09160f73fc05bf7eb126520315298fdafe8594778f9), 'block_header'), 'theblog_body' => array(object(__TwigTemplate_b04474306107f257ab21d09160f73fc05bf7eb126520315298fdafe8594778f9), 'block_theblog_body'), 'footer' => array(object(__TwigTemplate_b04474306107f257ab21d09160f73fc05bf7eb126520315298fdafe8594778f9), 'block_footer'), 'footer_no_reinsurances' => array(object(__TwigTemplate_b04474306107f257ab21d09160f73fc05bf7eb126520315298fdafe8594778f9), 'block_footer_no_reinsurances'), 'javascripts' => array(object(__TwigTemplate_b04474306107f257ab21d09160f73fc05bf7eb126520315298fdafe8594778f9), 'block_javascripts'), 'javascripts_index' => array(object(__TwigTemplate_b04474306107f257ab21d09160f73fc05bf7eb126520315298fdafe8594778f9), 'block_javascripts_index')))
    in app/cache/dev/classes.php at line 5150  +
  7. at Twig_Template ->display (array('base_dir' => '/var/www/autoneo-courtoisie.clubautogenerate.com/', 'produits' => array(), 'options' => array(), 'modules' => object(stdClass), 'samecategoriesnew' => array(), 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => true), 'app' => object(AppVariable), 'site_name' => 'autoneo-courtoisie.fr', 'id_site' => '19', 'path_pop_up' => 'https://catalogue-loc-courtoisie.fr/bodev/bov2/web/uploads/produits/pop_up/'), array('stylesheets_statique' => array(object(__TwigTemplate_b04474306107f257ab21d09160f73fc05bf7eb126520315298fdafe8594778f9), 'block_stylesheets_statique'), 'header' => array(object(__TwigTemplate_b04474306107f257ab21d09160f73fc05bf7eb126520315298fdafe8594778f9), 'block_header'), 'header_with_slider' => array(object(__TwigTemplate_b04474306107f257ab21d09160f73fc05bf7eb126520315298fdafe8594778f9), 'block_header_with_slider'), 'stylesheets' => array(object(__TwigTemplate_b04474306107f257ab21d09160f73fc05bf7eb126520315298fdafe8594778f9), 'block_stylesheets'), 'theblog_body' => array(object(__TwigTemplate_b04474306107f257ab21d09160f73fc05bf7eb126520315298fdafe8594778f9), 'block_theblog_body'), 'footer_no_reinsurances' => array(object(__TwigTemplate_b04474306107f257ab21d09160f73fc05bf7eb126520315298fdafe8594778f9), 'block_footer_no_reinsurances'), 'footer' => array(object(__TwigTemplate_b04474306107f257ab21d09160f73fc05bf7eb126520315298fdafe8594778f9), 'block_footer'), 'javascripts_index' => array(object(__TwigTemplate_b04474306107f257ab21d09160f73fc05bf7eb126520315298fdafe8594778f9), 'block_javascripts_index'), 'javascripts' => array(object(__TwigTemplate_b04474306107f257ab21d09160f73fc05bf7eb126520315298fdafe8594778f9), 'block_javascripts')))
    in app/cache/dev/twig/0c/0c60786ef44bbe54f0b78e9816662417b3321c7e66d46afd0836d355c2c94a5d.php at line 35  +
  8. at __TwigTemplate_b04474306107f257ab21d09160f73fc05bf7eb126520315298fdafe8594778f9 ->doDisplay (array('base_dir' => '/var/www/autoneo-courtoisie.clubautogenerate.com/', 'produits' => array(), 'options' => array(), 'modules' => object(stdClass), 'samecategoriesnew' => array(), 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => true), 'app' => object(AppVariable), 'site_name' => 'autoneo-courtoisie.fr', 'id_site' => '19', 'path_pop_up' => 'https://catalogue-loc-courtoisie.fr/bodev/bov2/web/uploads/produits/pop_up/'), array('stylesheets_statique' => array(object(__TwigTemplate_b04474306107f257ab21d09160f73fc05bf7eb126520315298fdafe8594778f9), 'block_stylesheets_statique'), 'header' => array(object(__TwigTemplate_b04474306107f257ab21d09160f73fc05bf7eb126520315298fdafe8594778f9), 'block_header'), 'header_with_slider' => array(object(__TwigTemplate_b04474306107f257ab21d09160f73fc05bf7eb126520315298fdafe8594778f9), 'block_header_with_slider'), 'stylesheets' => array(object(__TwigTemplate_b04474306107f257ab21d09160f73fc05bf7eb126520315298fdafe8594778f9), 'block_stylesheets'), 'theblog_body' => array(object(__TwigTemplate_b04474306107f257ab21d09160f73fc05bf7eb126520315298fdafe8594778f9), 'block_theblog_body'), 'footer_no_reinsurances' => array(object(__TwigTemplate_b04474306107f257ab21d09160f73fc05bf7eb126520315298fdafe8594778f9), 'block_footer_no_reinsurances'), 'footer' => array(object(__TwigTemplate_b04474306107f257ab21d09160f73fc05bf7eb126520315298fdafe8594778f9), 'block_footer'), 'javascripts_index' => array(object(__TwigTemplate_b04474306107f257ab21d09160f73fc05bf7eb126520315298fdafe8594778f9), 'block_javascripts_index'), 'javascripts' => array(object(__TwigTemplate_b04474306107f257ab21d09160f73fc05bf7eb126520315298fdafe8594778f9), 'block_javascripts')))
    in app/cache/dev/classes.php at line 5174  +
  9. at Twig_Template ->displayWithErrorHandling (array('base_dir' => '/var/www/autoneo-courtoisie.clubautogenerate.com/', 'produits' => array(), 'options' => array(), 'modules' => object(stdClass), 'samecategoriesnew' => array(), 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => true), 'app' => object(AppVariable), 'site_name' => 'autoneo-courtoisie.fr', 'id_site' => '19', 'path_pop_up' => 'https://catalogue-loc-courtoisie.fr/bodev/bov2/web/uploads/produits/pop_up/'), array('stylesheets_statique' => array(object(__TwigTemplate_b04474306107f257ab21d09160f73fc05bf7eb126520315298fdafe8594778f9), 'block_stylesheets_statique'), 'header' => array(object(__TwigTemplate_b04474306107f257ab21d09160f73fc05bf7eb126520315298fdafe8594778f9), 'block_header'), 'header_with_slider' => array(object(__TwigTemplate_b04474306107f257ab21d09160f73fc05bf7eb126520315298fdafe8594778f9), 'block_header_with_slider'), 'stylesheets' => array(object(__TwigTemplate_b04474306107f257ab21d09160f73fc05bf7eb126520315298fdafe8594778f9), 'block_stylesheets'), 'theblog_body' => array(object(__TwigTemplate_b04474306107f257ab21d09160f73fc05bf7eb126520315298fdafe8594778f9), 'block_theblog_body'), 'footer_no_reinsurances' => array(object(__TwigTemplate_b04474306107f257ab21d09160f73fc05bf7eb126520315298fdafe8594778f9), 'block_footer_no_reinsurances'), 'footer' => array(object(__TwigTemplate_b04474306107f257ab21d09160f73fc05bf7eb126520315298fdafe8594778f9), 'block_footer'), 'javascripts_index' => array(object(__TwigTemplate_b04474306107f257ab21d09160f73fc05bf7eb126520315298fdafe8594778f9), 'block_javascripts_index'), 'javascripts' => array(object(__TwigTemplate_b04474306107f257ab21d09160f73fc05bf7eb126520315298fdafe8594778f9), 'block_javascripts')))
    in app/cache/dev/classes.php at line 5150  +
  10. at Twig_Template ->display (array('base_dir' => '/var/www/autoneo-courtoisie.clubautogenerate.com/', 'produits' => array(), 'options' => array(), 'modules' => object(stdClass), 'samecategoriesnew' => array()))
    in app/cache/dev/classes.php at line 5157  +
  11. at Twig_Template ->render (array('base_dir' => '/var/www/autoneo-courtoisie.clubautogenerate.com/', 'produits' => array(), 'options' => array(), 'modules' => object(stdClass), 'samecategoriesnew' => array()))
    in vendor/symfony/symfony/src/Symfony/Bridge/Twig/TwigEngine.php at line 49  +
  12. at TwigEngine ->render ('default/detail-product.html.twig', array('base_dir' => '/var/www/autoneo-courtoisie.clubautogenerate.com/', 'produits' => array(), 'options' => array(), 'modules' => object(stdClass), 'samecategoriesnew' => array()))
    in vendor/symfony/symfony/src/Symfony/Bundle/TwigBundle/TwigEngine.php at line 68  +
  13. at TwigEngine ->render ('default/detail-product.html.twig', array('base_dir' => '/var/www/autoneo-courtoisie.clubautogenerate.com/', 'produits' => array(), 'options' => array(), 'modules' => object(stdClass), 'samecategoriesnew' => array()))
    in vendor/symfony/symfony/src/Symfony/Bundle/TwigBundle/TwigEngine.php at line 95  +
  14. at TwigEngine ->renderResponse ('default/detail-product.html.twig', array('base_dir' => '/var/www/autoneo-courtoisie.clubautogenerate.com/', 'produits' => array(), 'options' => array(), 'modules' => object(stdClass), 'samecategoriesnew' => array()), object(Response))
    in vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Controller/Controller.php at line 185  +
  15. at Controller ->render ('default/detail-product.html.twig', array('base_dir' => '/var/www/autoneo-courtoisie.clubautogenerate.com/', 'produits' => array(), 'options' => array(), 'modules' => object(stdClass), 'samecategoriesnew' => array()))
    in src/AppBundle/Controller/DefaultController.php at line 411  +
  16. at DefaultController ->detailProductAction (object(Request), '1068', '2350')
  17. at call_user_func_array (array(object(DefaultController), 'detailProductAction'), array(object(Request), '1068', '2350'))
    in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php at line 137  +
  18. at HttpKernel ->handleRaw (object(Request), '1')
    in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php at line 57  +
  19. at HttpKernel ->handle (object(Request), '1', true)
    in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/DependencyInjection/ContainerAwareHttpKernel.php at line 67  +
  20. at ContainerAwareHttpKernel ->handle (object(Request), '1', true)
    in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php at line 183  +
  21. at Kernel ->handle (object(Request))
    in web/app_dev.php at line 18  +

Logs  -

Stack Trace (Plain Text)  +