Impossible to access an attribute ("id") on a null variable.
500 Internal Server Error - Twig_Error_Runtime
Stack Trace
-
in /home/dance/htdocs/danceera/src/Acme/ServiceBundle/Resources/views/Photos/photosingle.html.twig at line 136
<div class="clear"></div>
</div>
{% if photo.thead.id %}
<div class=" ">
-
at
Twig_Template
->getAttribute
(null, 'id', array())
in kernel.root_dir/cache/prod/twig/2d/2d27f860ac45f8035eb85c64be87895a95fed031d9b006d2cb9da53c6e4c4d63.php at line 263 -
at
__TwigTemplate_319dd61ab87fbfa5188ada5b880396c716f566ec020e7949a0eae9441509498e
->block_content
(array('id' => '1751', '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 -
at
Twig_Template
->displayBlock
('content', array('id' => '1751', '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 -
at
__TwigTemplate_c9a5a73a902171c2331bbaa41e3b226994ebb49865c7660b29b245acb19d0195
->doDisplay
(array('id' => '1751', '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 -
at
Twig_Template
->displayWithErrorHandling
(array('id' => '1751', '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 -
at
Twig_Template
->display
(array('id' => '1751', '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 -
at
__TwigTemplate_319dd61ab87fbfa5188ada5b880396c716f566ec020e7949a0eae9441509498e
->doDisplay
(array('id' => '1751', '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 -
at
Twig_Template
->displayWithErrorHandling
(array('id' => '1751', '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 -
at
Twig_Template
->display
(array('id' => '1751', 'photo' => object(UsersPhotos), 'myPhoto' => false))
in kernel.root_dir/cache/prod/classes.php at line 4854 -
at
Twig_Template
->render
(array('id' => '1751', 'photo' => object(UsersPhotos), 'myPhoto' => false))
in /home/dance/htdocs/danceera/vendor/symfony/symfony/src/Symfony/Bridge/Twig/TwigEngine.php at line 53 -
at
TwigEngine
->render
(object(TemplateReference), array('id' => '1751', 'photo' => object(UsersPhotos), 'myPhoto' => false))
in /home/dance/htdocs/danceera/vendor/symfony/symfony/src/Symfony/Bundle/TwigBundle/TwigEngine.php at line 76 -
at
TwigEngine
->render
(object(TemplateReference), array('id' => '1751', 'photo' => object(UsersPhotos), 'myPhoto' => false))
in /home/dance/htdocs/danceera/vendor/symfony/symfony/src/Symfony/Bundle/TwigBundle/Debug/TimedTwigEngine.php at line 50 -
at
TimedTwigEngine
->render
(object(TemplateReference), array('id' => '1751', 'photo' => object(UsersPhotos), 'myPhoto' => false))
in /home/dance/htdocs/danceera/vendor/friendsofsymfony/rest-bundle/FOS/RestBundle/View/ViewHandler.php at line 419 -
at
ViewHandler
->renderTemplate
(object(View), 'html')
in /home/dance/htdocs/danceera/vendor/friendsofsymfony/rest-bundle/FOS/RestBundle/View/ViewHandler.php at line 494 -
at
ViewHandler
->initResponse
(object(View), 'html')
in /home/dance/htdocs/danceera/vendor/friendsofsymfony/rest-bundle/FOS/RestBundle/View/ViewHandler.php at line 473 -
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 -
at
ViewHandler
->handle
(object(View), object(Request))
in /home/dance/htdocs/danceera/vendor/friendsofsymfony/rest-bundle/FOS/RestBundle/EventListener/ViewResponseListener.php at line 154 - at ViewResponseListener ->onKernelView (object(GetResponseForControllerResultEvent))
-
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 - at TraceableEventDispatcher ->Symfony\Component\HttpKernel\Debug\{closure} (object(GetResponseForControllerResultEvent))
-
at
call_user_func
(object(Closure), object(GetResponseForControllerResultEvent))
in kernel.root_dir/cache/prod/classes.php at line 1691 -
at
EventDispatcher
->doDispatch
(array(object(Closure)), 'kernel.view', object(GetResponseForControllerResultEvent))
in kernel.root_dir/cache/prod/classes.php at line 1617 -
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 -
at
TraceableEventDispatcher
->dispatch
('kernel.view', object(GetResponseForControllerResultEvent))
in kernel.root_dir/bootstrap.php.cache at line 2978 -
at
HttpKernel
->handleRaw
(object(Request), '1')
in kernel.root_dir/bootstrap.php.cache at line 2949 -
at
HttpKernel
->handle
(object(Request), '1', true)
in kernel.root_dir/bootstrap.php.cache at line 3078 -
at
ContainerAwareHttpKernel
->handle
(object(Request), '1', true)
in kernel.root_dir/bootstrap.php.cache at line 2348 -
at
Kernel
->handle
(object(Request))
in /home/dance/htdocs/danceera/web/app.php at line 24