Impossible to access an attribute ("title") on a null variable in src/JagurBundle/Resources/views/Product/view.html.twig at line 3
500 Internal Server Error - Twig_Error_Runtime
Stack Trace
-
in app/cache/dev/classes.php at line 18964
} else {
$message = sprintf('Impossible to access an attribute ("%s") on a %s variable ("%s")', $item, gettype($object), $object);
}
throw new Twig_Error_Runtime($message, -1, $this->getTemplateName());
}
}
if (!is_object($object)) {
-
at
Twig_Template
->getAttribute
(null, 'title', array())
in app/cache/dev/twig/90/90e218159c52d1ec218cd3ea900a482dff6b3e9aa4388aa4919f27b85e20657c.php at line 41 -
at
__TwigTemplate_795d89f2b6461114aee803a074fcf7a09529e50932dbbb61498109d10ccb892e
->block_title
(array('product' => null, 'relatedProducts' => array(object(Product), object(Product), object(Product), object(Product)), 'categories' => array(object(Category), object(Category), object(Category), object(Category), object(Category), object(Category), object(Category)), 'categorySlug' => 'uf_piechat', 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => true), 'wrap_fields_with_addons' => true, 'app' => object(AppVariable), 'sonata_block' => object(GlobalVariables), 'sonata_media' => object(GlobalVariables), 'sonata_user' => object(GlobalVariables)), array('title' => array(object(__TwigTemplate_795d89f2b6461114aee803a074fcf7a09529e50932dbbb61498109d10ccb892e), 'block_title'), 'stylesheets' => array(object(__TwigTemplate_554fefe43f5d6a94ff86ca6953e60b7746273717f0b6b845af33ac1ad5a68274), 'block_stylesheets'), 'javascripts' => array(object(__TwigTemplate_554fefe43f5d6a94ff86ca6953e60b7746273717f0b6b845af33ac1ad5a68274), 'block_javascripts'), 'body' => array(object(__TwigTemplate_795d89f2b6461114aee803a074fcf7a09529e50932dbbb61498109d10ccb892e), 'block_body')))
in app/cache/dev/classes.php at line 18795 -
at
Twig_Template
->displayBlock
('title', array('product' => null, 'relatedProducts' => array(object(Product), object(Product), object(Product), object(Product)), 'categories' => array(object(Category), object(Category), object(Category), object(Category), object(Category), object(Category), object(Category)), 'categorySlug' => 'uf_piechat', 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => true), 'wrap_fields_with_addons' => true, 'app' => object(AppVariable), 'sonata_block' => object(GlobalVariables), 'sonata_media' => object(GlobalVariables), 'sonata_user' => object(GlobalVariables)), array('title' => array(object(__TwigTemplate_795d89f2b6461114aee803a074fcf7a09529e50932dbbb61498109d10ccb892e), 'block_title'), 'stylesheets' => array(object(__TwigTemplate_554fefe43f5d6a94ff86ca6953e60b7746273717f0b6b845af33ac1ad5a68274), 'block_stylesheets'), 'javascripts' => array(object(__TwigTemplate_554fefe43f5d6a94ff86ca6953e60b7746273717f0b6b845af33ac1ad5a68274), 'block_javascripts'), 'body' => array(object(__TwigTemplate_795d89f2b6461114aee803a074fcf7a09529e50932dbbb61498109d10ccb892e), 'block_body')))
in app/cache/dev/twig/bb/bb03a38a20db5d64639f10f72b661ac6773ebfff98039ecb0c2808716d4898cd.php at line 33 -
at
__TwigTemplate_554fefe43f5d6a94ff86ca6953e60b7746273717f0b6b845af33ac1ad5a68274
->doDisplay
(array('product' => null, 'relatedProducts' => array(object(Product), object(Product), object(Product), object(Product)), 'categories' => array(object(Category), object(Category), object(Category), object(Category), object(Category), object(Category), object(Category)), 'categorySlug' => 'uf_piechat', 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => true), 'wrap_fields_with_addons' => true, 'app' => object(AppVariable), 'sonata_block' => object(GlobalVariables), 'sonata_media' => object(GlobalVariables), 'sonata_user' => object(GlobalVariables)), array('title' => array(object(__TwigTemplate_795d89f2b6461114aee803a074fcf7a09529e50932dbbb61498109d10ccb892e), 'block_title'), 'stylesheets' => array(object(__TwigTemplate_554fefe43f5d6a94ff86ca6953e60b7746273717f0b6b845af33ac1ad5a68274), 'block_stylesheets'), 'javascripts' => array(object(__TwigTemplate_554fefe43f5d6a94ff86ca6953e60b7746273717f0b6b845af33ac1ad5a68274), 'block_javascripts'), 'body' => array(object(__TwigTemplate_795d89f2b6461114aee803a074fcf7a09529e50932dbbb61498109d10ccb892e), 'block_body')))
in app/cache/dev/classes.php at line 18899 -
at
Twig_Template
->displayWithErrorHandling
(array('product' => null, 'relatedProducts' => array(object(Product), object(Product), object(Product), object(Product)), 'categories' => array(object(Category), object(Category), object(Category), object(Category), object(Category), object(Category), object(Category)), 'categorySlug' => 'uf_piechat', 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => true), 'wrap_fields_with_addons' => true, 'app' => object(AppVariable), 'sonata_block' => object(GlobalVariables), 'sonata_media' => object(GlobalVariables), 'sonata_user' => object(GlobalVariables)), array('title' => array(object(__TwigTemplate_795d89f2b6461114aee803a074fcf7a09529e50932dbbb61498109d10ccb892e), 'block_title'), 'stylesheets' => array(object(__TwigTemplate_554fefe43f5d6a94ff86ca6953e60b7746273717f0b6b845af33ac1ad5a68274), 'block_stylesheets'), 'javascripts' => array(object(__TwigTemplate_554fefe43f5d6a94ff86ca6953e60b7746273717f0b6b845af33ac1ad5a68274), 'block_javascripts'), 'body' => array(object(__TwigTemplate_795d89f2b6461114aee803a074fcf7a09529e50932dbbb61498109d10ccb892e), 'block_body')))
in app/cache/dev/classes.php at line 18880 -
at
Twig_Template
->display
(array('product' => null, 'relatedProducts' => array(object(Product), object(Product), object(Product), object(Product)), 'categories' => array(object(Category), object(Category), object(Category), object(Category), object(Category), object(Category), object(Category)), 'categorySlug' => 'uf_piechat', 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => true), 'wrap_fields_with_addons' => true, 'app' => object(AppVariable), 'sonata_block' => object(GlobalVariables), 'sonata_media' => object(GlobalVariables), 'sonata_user' => object(GlobalVariables)), array('title' => array(object(__TwigTemplate_795d89f2b6461114aee803a074fcf7a09529e50932dbbb61498109d10ccb892e), 'block_title'), 'body' => array(object(__TwigTemplate_795d89f2b6461114aee803a074fcf7a09529e50932dbbb61498109d10ccb892e), 'block_body')))
in app/cache/dev/twig/90/90e218159c52d1ec218cd3ea900a482dff6b3e9aa4388aa4919f27b85e20657c.php at line 28 -
at
__TwigTemplate_795d89f2b6461114aee803a074fcf7a09529e50932dbbb61498109d10ccb892e
->doDisplay
(array('product' => null, 'relatedProducts' => array(object(Product), object(Product), object(Product), object(Product)), 'categories' => array(object(Category), object(Category), object(Category), object(Category), object(Category), object(Category), object(Category)), 'categorySlug' => 'uf_piechat', 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => true), 'wrap_fields_with_addons' => true, 'app' => object(AppVariable), 'sonata_block' => object(GlobalVariables), 'sonata_media' => object(GlobalVariables), 'sonata_user' => object(GlobalVariables)), array('title' => array(object(__TwigTemplate_795d89f2b6461114aee803a074fcf7a09529e50932dbbb61498109d10ccb892e), 'block_title'), 'body' => array(object(__TwigTemplate_795d89f2b6461114aee803a074fcf7a09529e50932dbbb61498109d10ccb892e), 'block_body')))
in app/cache/dev/classes.php at line 18899 -
at
Twig_Template
->displayWithErrorHandling
(array('product' => null, 'relatedProducts' => array(object(Product), object(Product), object(Product), object(Product)), 'categories' => array(object(Category), object(Category), object(Category), object(Category), object(Category), object(Category), object(Category)), 'categorySlug' => 'uf_piechat', 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => true), 'wrap_fields_with_addons' => true, 'app' => object(AppVariable), 'sonata_block' => object(GlobalVariables), 'sonata_media' => object(GlobalVariables), 'sonata_user' => object(GlobalVariables)), array('title' => array(object(__TwigTemplate_795d89f2b6461114aee803a074fcf7a09529e50932dbbb61498109d10ccb892e), 'block_title'), 'body' => array(object(__TwigTemplate_795d89f2b6461114aee803a074fcf7a09529e50932dbbb61498109d10ccb892e), 'block_body')))
in app/cache/dev/classes.php at line 18880 -
at
Twig_Template
->display
(array('product' => null, 'relatedProducts' => array(object(Product), object(Product), object(Product), object(Product)), 'categories' => array(object(Category), object(Category), object(Category), object(Category), object(Category), object(Category), object(Category)), 'categorySlug' => 'uf_piechat'))
in app/cache/dev/classes.php at line 18887 -
at
Twig_Template
->render
(array('product' => null, 'relatedProducts' => array(object(Product), object(Product), object(Product), object(Product)), 'categories' => array(object(Category), object(Category), object(Category), object(Category), object(Category), object(Category), object(Category)), 'categorySlug' => 'uf_piechat'))
in vendor/symfony/symfony/src/Symfony/Bridge/Twig/TwigEngine.php at line 50 -
at
TwigEngine
->render
(object(TemplateReference), array('product' => null, 'relatedProducts' => array(object(Product), object(Product), object(Product), object(Product)), 'categories' => array(object(Category), object(Category), object(Category), object(Category), object(Category), object(Category), object(Category)), 'categorySlug' => 'uf_piechat'))
in vendor/symfony/symfony/src/Symfony/Bundle/TwigBundle/TwigEngine.php at line 72 -
at
TwigEngine
->render
(object(TemplateReference), array('product' => null, 'relatedProducts' => array(object(Product), object(Product), object(Product), object(Product)), 'categories' => array(object(Category), object(Category), object(Category), object(Category), object(Category), object(Category), object(Category)), 'categorySlug' => 'uf_piechat'))
in vendor/symfony/symfony/src/Symfony/Bundle/TwigBundle/TwigEngine.php at line 97 -
at
TwigEngine
->renderResponse
(object(TemplateReference), array('product' => null, 'relatedProducts' => array(object(Product), object(Product), object(Product), object(Product)), 'categories' => array(object(Category), object(Category), object(Category), object(Category), object(Category), object(Category), object(Category)), 'categorySlug' => 'uf_piechat'))
in app/cache/dev/classes.php at line 2043 - at TemplateListener ->onKernelView (object(GetResponseForControllerResultEvent), 'kernel.view', object(TraceableEventDispatcher))
-
at
call_user_func
(array(object(TemplateListener), 'onKernelView'), object(GetResponseForControllerResultEvent), 'kernel.view', object(TraceableEventDispatcher))
in vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/Debug/WrappedListener.php at line 61 - at WrappedListener ->__invoke (object(GetResponseForControllerResultEvent), 'kernel.view', object(ContainerAwareEventDispatcher))
-
at
call_user_func
(object(WrappedListener), object(GetResponseForControllerResultEvent), 'kernel.view', object(ContainerAwareEventDispatcher))
in app/cache/dev/classes.php at line 15305 -
at
EventDispatcher
->doDispatch
(array(object(WrappedListener)), 'kernel.view', object(GetResponseForControllerResultEvent))
in app/cache/dev/classes.php at line 15234 -
at
EventDispatcher
->dispatch
('kernel.view', object(GetResponseForControllerResultEvent))
in vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/Debug/TraceableEventDispatcher.php at line 124 -
at
TraceableEventDispatcher
->dispatch
('kernel.view', object(GetResponseForControllerResultEvent))
in app/bootstrap.php.cache at line 3112 -
at
HttpKernel
->handleRaw
(object(Request), '1')
in app/bootstrap.php.cache at line 3071 -
at
HttpKernel
->handle
(object(Request), '1', true)
in app/bootstrap.php.cache at line 3222 -
at
ContainerAwareHttpKernel
->handle
(object(Request), '1', true)
in app/bootstrap.php.cache at line 2444 -
at
Kernel
->handle
(object(Request))
in httpdocs/app.php at line 32