Exception detected!

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

  1. in app/cache/dev/classes.php at line 18964  -
    1. } else {
    2. $message sprintf('Impossible to access an attribute ("%s") on a %s variable ("%s")'$itemgettype($object), $object);
    3. }
    4. throw new Twig_Error_Runtime($message, -1$this->getTemplateName());
    5. }
    6. }
    7. if (!is_object($object)) {
  2. at Twig_Template ->getAttribute (null, 'title', array())
    in app/cache/dev/twig/90/90e218159c52d1ec218cd3ea900a482dff6b3e9aa4388aa4919f27b85e20657c.php at line 41  +
  3. 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  +
  4. 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  +
  5. 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  +
  6. 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  +
  7. 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  +
  8. 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  +
  9. 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  +
  10. 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  +
  11. 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  +
  12. 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  +
  13. 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  +
  14. 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  +
  15. at TemplateListener ->onKernelView (object(GetResponseForControllerResultEvent), 'kernel.view', object(TraceableEventDispatcher))
  16. 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  +
  17. at WrappedListener ->__invoke (object(GetResponseForControllerResultEvent), 'kernel.view', object(ContainerAwareEventDispatcher))
  18. at call_user_func (object(WrappedListener), object(GetResponseForControllerResultEvent), 'kernel.view', object(ContainerAwareEventDispatcher))
    in app/cache/dev/classes.php at line 15305  +
  19. at EventDispatcher ->doDispatch (array(object(WrappedListener)), 'kernel.view', object(GetResponseForControllerResultEvent))
    in app/cache/dev/classes.php at line 15234  +
  20. at EventDispatcher ->dispatch ('kernel.view', object(GetResponseForControllerResultEvent))
    in vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/Debug/TraceableEventDispatcher.php at line 124  +
  21. at TraceableEventDispatcher ->dispatch ('kernel.view', object(GetResponseForControllerResultEvent))
    in app/bootstrap.php.cache at line 3112  +
  22. at HttpKernel ->handleRaw (object(Request), '1')
    in app/bootstrap.php.cache at line 3071  +
  23. at HttpKernel ->handle (object(Request), '1', true)
    in app/bootstrap.php.cache at line 3222  +
  24. at ContainerAwareHttpKernel ->handle (object(Request), '1', true)
    in app/bootstrap.php.cache at line 2444  +
  25. at Kernel ->handle (object(Request))
    in httpdocs/app.php at line 32  +

Logs  -

Stack Trace (Plain Text)  +