Exception detected!

Impossible to access an attribute ("id") on a null variable.

500 Internal Server Error - Twig_Error_Runtime

Stack Trace

  1. in /home/dance/htdocs/danceera/src/Acme/ServiceBundle/Resources/views/Photos/photosingle.html.twig at line 136  -
    1.                 <div class="clear"></div>
    2.         </div>
    3.         
    4.         {% if photo.thead.id %}  
    5.         
    6.             <div class="  ">  
    7.  
  2. at Twig_Template ->getAttribute (null, 'id', array())
    in kernel.root_dir/cache/prod/twig/2d/2d27f860ac45f8035eb85c64be87895a95fed031d9b006d2cb9da53c6e4c4d63.php at line 263  +
  3. at __TwigTemplate_319dd61ab87fbfa5188ada5b880396c716f566ec020e7949a0eae9441509498e ->block_content (array('id' => '2198', 'photo' => object(UsersPhotos), 'myPhoto' => false, 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => false), 'grid' => null, 'column' => null, 'row' => null, 'value' => null, 'submitOnChange' => null, 'withjs' => true, 'pagerfanta' => false, 'op' => 'eq', 'app' => object(GlobalVariables), 'main_domain' => 'http://danceera.com', 'competiton24' => '33', 'competitonn' => '', 'showPopup' => true), array('content' => array(object(__TwigTemplate_319dd61ab87fbfa5188ada5b880396c716f566ec020e7949a0eae9441509498e), 'block_content')))
    in kernel.root_dir/cache/prod/classes.php at line 4753  +
  4. at Twig_Template ->displayBlock ('content', array('id' => '2198', 'photo' => object(UsersPhotos), 'myPhoto' => false, 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => false), 'grid' => null, 'column' => null, 'row' => null, 'value' => null, 'submitOnChange' => null, 'withjs' => true, 'pagerfanta' => false, 'op' => 'eq', 'app' => object(GlobalVariables), 'main_domain' => 'http://danceera.com', 'competiton24' => '33', 'competitonn' => '', 'showPopup' => true), array('content' => array(object(__TwigTemplate_319dd61ab87fbfa5188ada5b880396c716f566ec020e7949a0eae9441509498e), 'block_content')))
    in kernel.root_dir/cache/prod/twig/29/2934c236ebfddc195b611ef91fba85f9bd1be5c7314e44ef69bd57f397601c8b.php at line 20  +
  5. at __TwigTemplate_c9a5a73a902171c2331bbaa41e3b226994ebb49865c7660b29b245acb19d0195 ->doDisplay (array('id' => '2198', 'photo' => object(UsersPhotos), 'myPhoto' => false, 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => false), 'grid' => null, 'column' => null, 'row' => null, 'value' => null, 'submitOnChange' => null, 'withjs' => true, 'pagerfanta' => false, 'op' => 'eq', 'app' => object(GlobalVariables), 'main_domain' => 'http://danceera.com', 'competiton24' => '33', 'competitonn' => '', 'showPopup' => true), array('content' => array(object(__TwigTemplate_319dd61ab87fbfa5188ada5b880396c716f566ec020e7949a0eae9441509498e), 'block_content')))
    in kernel.root_dir/cache/prod/classes.php at line 4871  +
  6. at Twig_Template ->displayWithErrorHandling (array('id' => '2198', 'photo' => object(UsersPhotos), 'myPhoto' => false, 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => false), 'grid' => null, 'column' => null, 'row' => null, 'value' => null, 'submitOnChange' => null, 'withjs' => true, 'pagerfanta' => false, 'op' => 'eq', 'app' => object(GlobalVariables), 'main_domain' => 'http://danceera.com', 'competiton24' => '33', 'competitonn' => '', 'showPopup' => true), array('content' => array(object(__TwigTemplate_319dd61ab87fbfa5188ada5b880396c716f566ec020e7949a0eae9441509498e), 'block_content')))
    in kernel.root_dir/cache/prod/classes.php at line 4847  +
  7. at Twig_Template ->display (array('id' => '2198', 'photo' => object(UsersPhotos), 'myPhoto' => false, 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => false), 'grid' => null, 'column' => null, 'row' => null, 'value' => null, 'submitOnChange' => null, 'withjs' => true, 'pagerfanta' => false, 'op' => 'eq', 'app' => object(GlobalVariables), 'main_domain' => 'http://danceera.com', 'competiton24' => '33', 'competitonn' => '', 'showPopup' => true), array('content' => array(object(__TwigTemplate_319dd61ab87fbfa5188ada5b880396c716f566ec020e7949a0eae9441509498e), 'block_content')))
    in kernel.root_dir/cache/prod/twig/2d/2d27f860ac45f8035eb85c64be87895a95fed031d9b006d2cb9da53c6e4c4d63.php at line 24  +
  8. at __TwigTemplate_319dd61ab87fbfa5188ada5b880396c716f566ec020e7949a0eae9441509498e ->doDisplay (array('id' => '2198', 'photo' => object(UsersPhotos), 'myPhoto' => false, 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => false), 'grid' => null, 'column' => null, 'row' => null, 'value' => null, 'submitOnChange' => null, 'withjs' => true, 'pagerfanta' => false, 'op' => 'eq', 'app' => object(GlobalVariables), 'main_domain' => 'http://danceera.com', 'competiton24' => '33', 'competitonn' => '', 'showPopup' => true), array('content' => array(object(__TwigTemplate_319dd61ab87fbfa5188ada5b880396c716f566ec020e7949a0eae9441509498e), 'block_content')))
    in kernel.root_dir/cache/prod/classes.php at line 4871  +
  9. at Twig_Template ->displayWithErrorHandling (array('id' => '2198', 'photo' => object(UsersPhotos), 'myPhoto' => false, 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => false), 'grid' => null, 'column' => null, 'row' => null, 'value' => null, 'submitOnChange' => null, 'withjs' => true, 'pagerfanta' => false, 'op' => 'eq', 'app' => object(GlobalVariables), 'main_domain' => 'http://danceera.com', 'competiton24' => '33', 'competitonn' => '', 'showPopup' => true), array('content' => array(object(__TwigTemplate_319dd61ab87fbfa5188ada5b880396c716f566ec020e7949a0eae9441509498e), 'block_content')))
    in kernel.root_dir/cache/prod/classes.php at line 4847  +
  10. at Twig_Template ->display (array('id' => '2198', 'photo' => object(UsersPhotos), 'myPhoto' => false))
    in kernel.root_dir/cache/prod/classes.php at line 4854  +
  11. at Twig_Template ->render (array('id' => '2198', 'photo' => object(UsersPhotos), 'myPhoto' => false))
    in /home/dance/htdocs/danceera/vendor/symfony/symfony/src/Symfony/Bridge/Twig/TwigEngine.php at line 53  +
  12. at TwigEngine ->render (object(TemplateReference), array('id' => '2198', 'photo' => object(UsersPhotos), 'myPhoto' => false))
    in /home/dance/htdocs/danceera/vendor/symfony/symfony/src/Symfony/Bundle/TwigBundle/TwigEngine.php at line 76  +
  13. at TwigEngine ->render (object(TemplateReference), array('id' => '2198', 'photo' => object(UsersPhotos), 'myPhoto' => false))
    in /home/dance/htdocs/danceera/vendor/symfony/symfony/src/Symfony/Bundle/TwigBundle/Debug/TimedTwigEngine.php at line 50  +
  14. at TimedTwigEngine ->render (object(TemplateReference), array('id' => '2198', 'photo' => object(UsersPhotos), 'myPhoto' => false))
    in /home/dance/htdocs/danceera/vendor/friendsofsymfony/rest-bundle/FOS/RestBundle/View/ViewHandler.php at line 419  +
  15. at ViewHandler ->renderTemplate (object(View), 'html')
    in /home/dance/htdocs/danceera/vendor/friendsofsymfony/rest-bundle/FOS/RestBundle/View/ViewHandler.php at line 494  +
  16. at ViewHandler ->initResponse (object(View), 'html')
    in /home/dance/htdocs/danceera/vendor/friendsofsymfony/rest-bundle/FOS/RestBundle/View/ViewHandler.php at line 473  +
  17. at ViewHandler ->createResponse (object(View), object(Request), 'html')
    in /home/dance/htdocs/danceera/vendor/friendsofsymfony/rest-bundle/FOS/RestBundle/View/ViewHandler.php at line 358  +
  18. at ViewHandler ->handle (object(View), object(Request))
    in /home/dance/htdocs/danceera/vendor/friendsofsymfony/rest-bundle/FOS/RestBundle/EventListener/ViewResponseListener.php at line 154  +
  19. at ViewResponseListener ->onKernelView (object(GetResponseForControllerResultEvent))
  20. at call_user_func (array(object(ViewResponseListener), 'onKernelView'), object(GetResponseForControllerResultEvent))
    in /home/dance/htdocs/danceera/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Debug/TraceableEventDispatcher.php at line 476  +
  21. at TraceableEventDispatcher ->Symfony\Component\HttpKernel\Debug\{closure} (object(GetResponseForControllerResultEvent))
  22. at call_user_func (object(Closure), object(GetResponseForControllerResultEvent))
    in kernel.root_dir/cache/prod/classes.php at line 1691  +
  23. at EventDispatcher ->doDispatch (array(object(Closure)), 'kernel.view', object(GetResponseForControllerResultEvent))
    in kernel.root_dir/cache/prod/classes.php at line 1617  +
  24. at EventDispatcher ->dispatch ('kernel.view', object(GetResponseForControllerResultEvent))
    in /home/dance/htdocs/danceera/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Debug/TraceableEventDispatcher.php at line 155  +
  25. at TraceableEventDispatcher ->dispatch ('kernel.view', object(GetResponseForControllerResultEvent))
    in kernel.root_dir/bootstrap.php.cache at line 2978  +
  26. at HttpKernel ->handleRaw (object(Request), '1')
    in kernel.root_dir/bootstrap.php.cache at line 2949  +
  27. at HttpKernel ->handle (object(Request), '1', true)
    in kernel.root_dir/bootstrap.php.cache at line 3078  +
  28. at ContainerAwareHttpKernel ->handle (object(Request), '1', true)
    in kernel.root_dir/bootstrap.php.cache at line 2348  +
  29. at Kernel ->handle (object(Request))
    in /home/dance/htdocs/danceera/web/app.php at line 24  +

Logs  -

Stack Trace (Plain Text)  +