Key "0" does not exist as the array is empty.
500 Internal Server Error - RuntimeError
Stack Trace
-
in src/Acme/SiteBundle/Resources/views/Default/dettaglio.html.twig at line 99
</div>
<div class="one-fifth last qr-pdf">
<div class="qr">
{% if sottocategorie[0].sottocategoria == '' %}
{% set link1 = app.request.scheme ~'://' ~ app.request.httpHost ~ asset('schede/'~prodotto.categoria|replace({' ': '%2520'})~'/'~prodotto.titolo|replace({' ': '%2520'})~'/'~prodotto.titolo|replace({' ': '%2520'})~'.pdf') %}
-
at
twig_get_attribute
(object(Environment), object(Source), array(), '0', array(), 'array', false, false, false, '99')
in app/cache/prod/twig/61/613c5ca1e392e4653cae0b8221ab1afb716763701a19f55bef943cc34befa99c.php at line 219 -
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' => 'Sint Fogacem', 'description' => 'Sint Fogacem', 'keywords' => 'Sint Fogacem'), array('content' => array(object(__TwigTemplate_6c38336982c768e597a582d51be4afb572b23d660035b486bd8151971456a33e), 'block_content')))
in app/cache/prod/classes.php at line 4932 -
at
Template
->displayBlock
('content', array('prodotto' => object(Lavoro), 'sottocategorie' => array(), 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => false), 'app' => object(AppVariable), 'title' => 'Sint Fogacem', 'description' => 'Sint Fogacem', 'keywords' => 'Sint Fogacem'), array('content' => array(object(__TwigTemplate_6c38336982c768e597a582d51be4afb572b23d660035b486bd8151971456a33e), 'block_content')))
in app/cache/prod/twig/ba/bab4e33d731dcaebb599286795e5a3442efea72e3365798f3c766b84b17f268a.php at line 348 -
at
__TwigTemplate_5f3b61d5c0712e90120d2c2bb75648eeb96e7a345621f4f74fb83caefb620b3a
->doDisplay
(array('prodotto' => object(Lavoro), 'sottocategorie' => array(), 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => false), 'app' => object(AppVariable), 'title' => 'Sint Fogacem', 'description' => 'Sint Fogacem', 'keywords' => 'Sint Fogacem'), array('content' => array(object(__TwigTemplate_6c38336982c768e597a582d51be4afb572b23d660035b486bd8151971456a33e), 'block_content')))
in app/cache/prod/classes.php at line 5060 -
at
Template
->displayWithErrorHandling
(array('prodotto' => object(Lavoro), 'sottocategorie' => array(), 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => false), 'app' => object(AppVariable), 'title' => 'Sint Fogacem', 'description' => 'Sint Fogacem', 'keywords' => 'Sint Fogacem'), array('content' => array(object(__TwigTemplate_6c38336982c768e597a582d51be4afb572b23d660035b486bd8151971456a33e), 'block_content')))
in app/cache/prod/classes.php at line 5037 -
at
Template
->display
(array('prodotto' => object(Lavoro), 'sottocategorie' => array(), 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => false), 'app' => object(AppVariable), 'title' => 'Sint Fogacem', 'description' => 'Sint Fogacem', 'keywords' => 'Sint Fogacem'), array('content' => array(object(__TwigTemplate_6c38336982c768e597a582d51be4afb572b23d660035b486bd8151971456a33e), 'block_content')))
in app/cache/prod/twig/61/613c5ca1e392e4653cae0b8221ab1afb716763701a19f55bef943cc34befa99c.php at line 52 -
at
__TwigTemplate_6c38336982c768e597a582d51be4afb572b23d660035b486bd8151971456a33e
->doDisplay
(array('prodotto' => object(Lavoro), 'sottocategorie' => array(), 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => false), 'app' => object(AppVariable), 'title' => 'Sint Fogacem', 'description' => 'Sint Fogacem', 'keywords' => 'Sint Fogacem'), array('content' => array(object(__TwigTemplate_6c38336982c768e597a582d51be4afb572b23d660035b486bd8151971456a33e), 'block_content')))
in app/cache/prod/classes.php at line 5060 -
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 -
at
Template
->display
(array('prodotto' => object(Lavoro), 'sottocategorie' => array()))
in app/cache/prod/classes.php at line 5048 -
at
Template
->render
(array('prodotto' => object(Lavoro), 'sottocategorie' => array()))
in vendor/symfony/symfony/src/Symfony/Bridge/Twig/TwigEngine.php at line 49 -
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 -
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 -
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 -
at
Controller
->render
('AcmeSiteBundle:Default:dettaglio.html.twig', array('prodotto' => object(Lavoro), 'sottocategorie' => array()))
in src/Acme/SiteBundle/Controller/DefaultController.php at line 104 -
at
DefaultController
->dettaglioAction
('Rasanti%20e%20Malte%20cementizie', '38')
in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php at line 135 -
at
HttpKernel
->handleRaw
(object(Request), '1')
in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php at line 57 -
at
HttpKernel
->handle
(object(Request), '1', true)
in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/DependencyInjection/ContainerAwareHttpKernel.php at line 67 -
at
ContainerAwareHttpKernel
->handle
(object(Request), '1', true)
in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php at line 183 -
at
Kernel
->handle
(object(Request))
in web/app.php at line 58