“
An exception has been thrown during the rendering of a template ("Warning: count(): Parameter must be an array or an object that implements Countable").
500Internal Server Error -Twig_Error_Runtime
1 linked Exception:
- ContextErrorException »
”
[2/2]Twig_Error_Runtime:An exception has been thrown during the rendering of a template ("Warning: count(): Parameter must be an array or an object that implements Countable").
-
inapp/Resources/views/sito/albumVinarelli.html.twig at line 31
{% endif %}
</p>
</div>
{% if el.descrizione|length > 0 %}
<h4 style="display:none">{% if app.request.attributes.get('_locale') == 'en' and el.descrizioneEn is defined and el.descrizioneEn != '' %}{{ el.descrizioneEn }} {% else %} {{ el.descrizione }} {% endif %}</h4>
{% else %}
<h4 style="display:none"> </h4>
- at
Twig_Template->displayBlock
()
invar/cache/prod/twig/ef/efb0daa977496f4c3dbc413b817b4e4bb114585f36abb201bbe23e1b6c191cfe.php at line 214 - at
__TwigTemplate_cb572c9d96a6c45c8a24f09b3200ac2eaac6baa8f57b9a4caf9a4861d78eb0e7->doDisplay
()
invar/cache/prod/classes.php at line 7078 - at
Twig_Template->displayWithErrorHandling
()
invar/cache/prod/classes.php at line 7054 - at
Twig_Template->display
()
invar/cache/prod/twig/df/dfb40a34f42fc9d8730747f622cc16eb5a1da02b584a7da96176eac040582a6a.php at line 30$__internal_ce82235f5f230fae19cd66cbd5a6da2609f21c8a9074a7866157aafc26932ecd = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_ce82235f5f230fae19cd66cbd5a6da2609f21c8a9074a7866157aafc26932ecd->enter($__internal_ce82235f5f230fae19cd66cbd5a6da2609f21c8a9074a7866157aafc26932ecd_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "sito/albumVinarelli.html.twig"));
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_ce82235f5f230fae19cd66cbd5a6da2609f21c8a9074a7866157aafc26932ecd->leave($__internal_ce82235f5f230fae19cd66cbd5a6da2609f21c8a9074a7866157aafc26932ecd_prof);
- at
__TwigTemplate_52f063fa7ce38a145c3d511fb7c4172aa9c5f6d26211ae45108beb0330719bfc->doDisplay
()
invar/cache/prod/classes.php at line 7078 - at
Twig_Template->displayWithErrorHandling
()
invar/cache/prod/classes.php at line 7054 - at
Twig_Template->display
()
invar/cache/prod/classes.php at line 7061 - at
Twig_Template->render
()
invendor/symfony/symfony/src/Symfony/Bridge/Twig/TwigEngine.php at line 50 - at
TwigEngine->render
()
invendor/symfony/symfony/src/Symfony/Bundle/TwigBundle/TwigEngine.php at line 50 - at
TwigEngine->render
()
invendor/symfony/symfony/src/Symfony/Bundle/TwigBundle/TwigEngine.php at line 77 - at
TwigEngine->renderResponse
()
invendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Controller/Controller.php at line 235 - at
Controller->render
()
insrc/AppBundle/Controller/SitoController.php at line 142} else {
$template = 'albumVinarelli';
}
return $this->render('sito/'.$template.'.html.twig', array('form'=> $form->createView(), 'album' => $album, 'pagina' => $contenutoPagina,'pagineNavbar' => $navbar[0], 'altro' => $navbar[1], 'vinarelli' => $navbar[2], 'pagineFooter' => $footer[0], 'routeName' => $routeName ));
}
public function eventoAction(Request $request, $evento){
- at SitoController->albumAction ()
- at
call_user_func_array
()
invar/cache/prod/classes.php at line 4644$this->dispatcher->dispatch(KernelEvents::CONTROLLER_ARGUMENTS, $event);
$controller = $event->getController();
$arguments = $event->getArguments();
$response = call_user_func_array($controller, $arguments);
if (!$response instanceof Response) {
$event = new GetResponseForControllerResultEvent($this, $request, $type, $response);
$this->dispatcher->dispatch(KernelEvents::VIEW, $event);
- at
HttpKernel->handleRaw
()
invar/cache/prod/classes.php at line 4599{
$request->headers->set('X-Php-Ob-Level', ob_get_level());
try {
return $this->handleRaw($request, $type);
} catch (\Exception $e) {
if ($e instanceof ConflictingHeadersException) {
$e = new BadRequestHttpException('The request headers contain conflicting information regarding the origin of this request.', $e);
- at
HttpKernel->handle
()
invendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php at line 168 - at
Kernel->handle
()
inweb/app.php at line 16// When using the HttpCache, you need to call the method in your front controller instead of relying on the configuration parameter
//Request::enableHttpMethodParameterOverride();
$request = Request::createFromGlobals();
$response = $kernel->handle($request);
$response->send();
$kernel->terminate($request, $response);
[1/2]ContextErrorException:Warning: count(): Parameter must be an array or an object that implements Countable
- invar/cache/prod/classes.php at line 6532
- at
twig_length_filter
()
invar/cache/prod/twig/df/dfb40a34f42fc9d8730747f622cc16eb5a1da02b584a7da96176eac040582a6a.php at line 134echo " </p>
</div>";
// line 31
if ((twig_length_filter($this->env, twig_get_attribute($this->env, $this->getSourceContext(), $context["el"], "descrizione", array())) > 0)) {
// line 32
echo " <h4 style=\"display:none\">";
if ((((twig_get_attribute($this->env, $this->getSourceContext(), twig_get_attribute($this->env, $this->getSourceContext(), twig_get_attribute($this->env, $this->getSourceContext(), (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new Twig_Error_Runtime('Variable "app" does not exist.', 32, $this->getSourceContext()); })()), "request", array()), "attributes", array()), "get", array(0 => "_locale"), "method") == "en") && twig_get_attribute($this->env, $this->getSourceContext(), $context["el"], "descrizioneEn", array(), "any", true, true)) && (twig_get_attribute($this->env, $this->getSourceContext(), $context["el"], "descrizioneEn", array()) != ""))) {
- at
__TwigTemplate_52f063fa7ce38a145c3d511fb7c4172aa9c5f6d26211ae45108beb0330719bfc->block_body
()
invar/cache/prod/classes.php at line 6968 - at
Twig_Template->displayBlock
()
invar/cache/prod/twig/ef/efb0daa977496f4c3dbc413b817b4e4bb114585f36abb201bbe23e1b6c191cfe.php at line 214 - at
__TwigTemplate_cb572c9d96a6c45c8a24f09b3200ac2eaac6baa8f57b9a4caf9a4861d78eb0e7->doDisplay
()
invar/cache/prod/classes.php at line 7078 - at
Twig_Template->displayWithErrorHandling
()
invar/cache/prod/classes.php at line 7054 - at
Twig_Template->display
()
invar/cache/prod/twig/df/dfb40a34f42fc9d8730747f622cc16eb5a1da02b584a7da96176eac040582a6a.php at line 30$__internal_ce82235f5f230fae19cd66cbd5a6da2609f21c8a9074a7866157aafc26932ecd = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_ce82235f5f230fae19cd66cbd5a6da2609f21c8a9074a7866157aafc26932ecd->enter($__internal_ce82235f5f230fae19cd66cbd5a6da2609f21c8a9074a7866157aafc26932ecd_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "sito/albumVinarelli.html.twig"));
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_ce82235f5f230fae19cd66cbd5a6da2609f21c8a9074a7866157aafc26932ecd->leave($__internal_ce82235f5f230fae19cd66cbd5a6da2609f21c8a9074a7866157aafc26932ecd_prof);
- at
__TwigTemplate_52f063fa7ce38a145c3d511fb7c4172aa9c5f6d26211ae45108beb0330719bfc->doDisplay
()
invar/cache/prod/classes.php at line 7078 - at
Twig_Template->displayWithErrorHandling
()
invar/cache/prod/classes.php at line 7054 - at
Twig_Template->display
()
invar/cache/prod/classes.php at line 7061 - at
Twig_Template->render
()
invendor/symfony/symfony/src/Symfony/Bridge/Twig/TwigEngine.php at line 50 - at
TwigEngine->render
()
invendor/symfony/symfony/src/Symfony/Bundle/TwigBundle/TwigEngine.php at line 50 - at
TwigEngine->render
()
invendor/symfony/symfony/src/Symfony/Bundle/TwigBundle/TwigEngine.php at line 77 - at
TwigEngine->renderResponse
()
invendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Controller/Controller.php at line 235 - at
Controller->render
()
insrc/AppBundle/Controller/SitoController.php at line 142} else {
$template = 'albumVinarelli';
}
return $this->render('sito/'.$template.'.html.twig', array('form'=> $form->createView(), 'album' => $album, 'pagina' => $contenutoPagina,'pagineNavbar' => $navbar[0], 'altro' => $navbar[1], 'vinarelli' => $navbar[2], 'pagineFooter' => $footer[0], 'routeName' => $routeName ));
}
public function eventoAction(Request $request, $evento){
- at SitoController->albumAction ()
- at
call_user_func_array
()
invar/cache/prod/classes.php at line 4644$this->dispatcher->dispatch(KernelEvents::CONTROLLER_ARGUMENTS, $event);
$controller = $event->getController();
$arguments = $event->getArguments();
$response = call_user_func_array($controller, $arguments);
if (!$response instanceof Response) {
$event = new GetResponseForControllerResultEvent($this, $request, $type, $response);
$this->dispatcher->dispatch(KernelEvents::VIEW, $event);
- at
HttpKernel->handleRaw
()
invar/cache/prod/classes.php at line 4599{
$request->headers->set('X-Php-Ob-Level', ob_get_level());
try {
return $this->handleRaw($request, $type);
} catch (\Exception $e) {
if ($e instanceof ConflictingHeadersException) {
$e = new BadRequestHttpException('The request headers contain conflicting information regarding the origin of this request.', $e);
- at
HttpKernel->handle
()
invendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php at line 168 - at
Kernel->handle
()
inweb/app.php at line 16// When using the HttpCache, you need to call the method in your front controller instead of relying on the configuration parameter
//Request::enableHttpMethodParameterOverride();
$request = Request::createFromGlobals();
$response = $kernel->handle($request);
$response->send();
$kernel->terminate($request, $response);
Stack Trace (Plain Text)
[1]Twig_Error_Runtime:An exception has been thrown during the rendering of a template ("Warning: count(): Parameter must be an array or an object that implements Countable"). at n/a in/var/www/vhosts/vinarelli.it/httpdocs/app/Resources/views/sito/albumVinarelli.html.twig line31 atTwig_Template->displayBlock() in/var/www/vhosts/vinarelli.it/httpdocs/var/cache/prod/twig/ef/efb0daa977496f4c3dbc413b817b4e4bb114585f36abb201bbe23e1b6c191cfe.php line214 at__TwigTemplate_cb572c9d96a6c45c8a24f09b3200ac2eaac6baa8f57b9a4caf9a4861d78eb0e7->doDisplay() in/var/www/vhosts/vinarelli.it/httpdocs/var/cache/prod/classes.php line7078 atTwig_Template->displayWithErrorHandling() in/var/www/vhosts/vinarelli.it/httpdocs/var/cache/prod/classes.php line7054 atTwig_Template->display() in/var/www/vhosts/vinarelli.it/httpdocs/var/cache/prod/twig/df/dfb40a34f42fc9d8730747f622cc16eb5a1da02b584a7da96176eac040582a6a.php line30 at__TwigTemplate_52f063fa7ce38a145c3d511fb7c4172aa9c5f6d26211ae45108beb0330719bfc->doDisplay() in/var/www/vhosts/vinarelli.it/httpdocs/var/cache/prod/classes.php line7078 atTwig_Template->displayWithErrorHandling() in/var/www/vhosts/vinarelli.it/httpdocs/var/cache/prod/classes.php line7054 atTwig_Template->display() in/var/www/vhosts/vinarelli.it/httpdocs/var/cache/prod/classes.php line7061 atTwig_Template->render() in/var/www/vhosts/vinarelli.it/httpdocs/vendor/symfony/symfony/src/Symfony/Bridge/Twig/TwigEngine.php line50 atSymfony\Bridge\Twig\TwigEngine->render() in/var/www/vhosts/vinarelli.it/httpdocs/vendor/symfony/symfony/src/Symfony/Bundle/TwigBundle/TwigEngine.php line50 atSymfony\Bundle\TwigBundle\TwigEngine->render() in/var/www/vhosts/vinarelli.it/httpdocs/vendor/symfony/symfony/src/Symfony/Bundle/TwigBundle/TwigEngine.php line77 atSymfony\Bundle\TwigBundle\TwigEngine->renderResponse() in/var/www/vhosts/vinarelli.it/httpdocs/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Controller/Controller.php line235 atSymfony\Bundle\FrameworkBundle\Controller\Controller->render() in/var/www/vhosts/vinarelli.it/httpdocs/src/AppBundle/Controller/SitoController.php line142 atAppBundle\Controller\SitoController->albumAction() in line atcall_user_func_array() in/var/www/vhosts/vinarelli.it/httpdocs/var/cache/prod/classes.php line4644 atSymfony\Component\HttpKernel\HttpKernel->handleRaw() in/var/www/vhosts/vinarelli.it/httpdocs/var/cache/prod/classes.php line4599 atSymfony\Component\HttpKernel\HttpKernel->handle() in/var/www/vhosts/vinarelli.it/httpdocs/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php line168 atSymfony\Component\HttpKernel\Kernel->handle() in/var/www/vhosts/vinarelli.it/httpdocs/web/app.php line16[2]Symfony\Component\Debug\Exception\ContextErrorException:Warning: count(): Parameter must be an array or an object that implements Countable at n/a in/var/www/vhosts/vinarelli.it/httpdocs/var/cache/prod/classes.php line6532 attwig_length_filter() in/var/www/vhosts/vinarelli.it/httpdocs/var/cache/prod/twig/df/dfb40a34f42fc9d8730747f622cc16eb5a1da02b584a7da96176eac040582a6a.php line134 at__TwigTemplate_52f063fa7ce38a145c3d511fb7c4172aa9c5f6d26211ae45108beb0330719bfc->block_body() in/var/www/vhosts/vinarelli.it/httpdocs/var/cache/prod/classes.php line6968 atTwig_Template->displayBlock() in/var/www/vhosts/vinarelli.it/httpdocs/var/cache/prod/twig/ef/efb0daa977496f4c3dbc413b817b4e4bb114585f36abb201bbe23e1b6c191cfe.php line214 at__TwigTemplate_cb572c9d96a6c45c8a24f09b3200ac2eaac6baa8f57b9a4caf9a4861d78eb0e7->doDisplay() in/var/www/vhosts/vinarelli.it/httpdocs/var/cache/prod/classes.php line7078 atTwig_Template->displayWithErrorHandling() in/var/www/vhosts/vinarelli.it/httpdocs/var/cache/prod/classes.php line7054 atTwig_Template->display() in/var/www/vhosts/vinarelli.it/httpdocs/var/cache/prod/twig/df/dfb40a34f42fc9d8730747f622cc16eb5a1da02b584a7da96176eac040582a6a.php line30 at__TwigTemplate_52f063fa7ce38a145c3d511fb7c4172aa9c5f6d26211ae45108beb0330719bfc->doDisplay() in/var/www/vhosts/vinarelli.it/httpdocs/var/cache/prod/classes.php line7078 atTwig_Template->displayWithErrorHandling() in/var/www/vhosts/vinarelli.it/httpdocs/var/cache/prod/classes.php line7054 atTwig_Template->display() in/var/www/vhosts/vinarelli.it/httpdocs/var/cache/prod/classes.php line7061 atTwig_Template->render() in/var/www/vhosts/vinarelli.it/httpdocs/vendor/symfony/symfony/src/Symfony/Bridge/Twig/TwigEngine.php line50 atSymfony\Bridge\Twig\TwigEngine->render() in/var/www/vhosts/vinarelli.it/httpdocs/vendor/symfony/symfony/src/Symfony/Bundle/TwigBundle/TwigEngine.php line50 atSymfony\Bundle\TwigBundle\TwigEngine->render() in/var/www/vhosts/vinarelli.it/httpdocs/vendor/symfony/symfony/src/Symfony/Bundle/TwigBundle/TwigEngine.php line77 atSymfony\Bundle\TwigBundle\TwigEngine->renderResponse() in/var/www/vhosts/vinarelli.it/httpdocs/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Controller/Controller.php line235 atSymfony\Bundle\FrameworkBundle\Controller\Controller->render() in/var/www/vhosts/vinarelli.it/httpdocs/src/AppBundle/Controller/SitoController.php line142 atAppBundle\Controller\SitoController->albumAction() in line atcall_user_func_array() in/var/www/vhosts/vinarelli.it/httpdocs/var/cache/prod/classes.php line4644 atSymfony\Component\HttpKernel\HttpKernel->handleRaw() in/var/www/vhosts/vinarelli.it/httpdocs/var/cache/prod/classes.php line4599 atSymfony\Component\HttpKernel\HttpKernel->handle() in/var/www/vhosts/vinarelli.it/httpdocs/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php line168 atSymfony\Component\HttpKernel\Kernel->handle() in/var/www/vhosts/vinarelli.it/httpdocs/web/app.php line16