quba / ZPI

System obsługujący konferencję naukową

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Object of class DateTime could not be converted to string w %conf%/registration/show.

lyzkov opened this issue · comments

Wywala mi błąd przy próbie obejrzenia mojej rejestracji. Po zarejestrowaniu na konferencję po redirekcie na registration/show też chyba miałem ten sam błąd.

An exception has been thrown during the rendering of a template ("Catchable Fatal Error: Object of class DateTime could not be converted to string in /home/lyzkov/public_html/ZPI/app/cache/dev/twig/79/cb/f6eb686263edaadefa319bbafad6.php line 93") in "ZpiConferenceBundle:Registration:show.html.twig" at line 17. 
[2/2] Twig_Error_Runtime: An exception has been thrown during the rendering of a template ("Catchable Fatal Error: Object of class DateTime could not be converted to string in /home/lyzkov/public_html/ZPI/app/cache/dev/twig/79/cb/f6eb686263edaadefa319bbafad6.php line 93") in "ZpiConferenceBundle:Registration:show.html.twig" at line 17.  -+
    in kernel.root_dir/cache/dev/classes.php at line 7794  -+
    at Twig_Template ->display (array('assetic' => array('debug' => true, 'use_controller' => true), 'app' => object(GlobalVariables), 'conference' => object(Conference), 'deadline' => '2011-11-16', 'papers' => object(PersistentCollection), 'registration' => object(Registration)), array('title' => array(object(__TwigTemplate_79cbf6eb686263edaadefa319bbafad6), 'block_title'), 'bodytitle' => array(object(__TwigTemplate_79cbf6eb686263edaadefa319bbafad6), 'block_bodytitle'), 'body' => array(object(__TwigTemplate_79cbf6eb686263edaadefa319bbafad6), 'block_body')))
    in kernel.root_dir/cache/dev/twig/79/cb/f6eb686263edaadefa319bbafad6.php at line 38  -+
    at __TwigTemplate_79cbf6eb686263edaadefa319bbafad6 ->doDisplay (array('conference' => object(Conference), 'deadline' => '2011-11-16', 'papers' => object(PersistentCollection), 'registration' => object(Registration)), array())
    in kernel.root_dir/cache/dev/classes.php at line 7790  -+
    at Twig_Template ->display (array('conference' => object(Conference), 'deadline' => '2011-11-16', 'papers' => object(PersistentCollection), 'registration' => object(Registration)))
    in kernel.root_dir/cache/dev/classes.php at line 7809  -+
    at Twig_Template ->render (array('conference' => object(Conference), 'deadline' => '2011-11-16', 'papers' => object(PersistentCollection), 'registration' => object(Registration)))
    in /home/lyzkov/public_html/ZPI/vendor/symfony/src/Symfony/Bundle/TwigBundle/TwigEngine.php at line 59  -+
    at TwigEngine ->render ('ZpiConferenceBundle:Registration:show.html.twig', array('conference' => object(Conference), 'deadline' => '2011-11-16', 'papers' => object(PersistentCollection), 'registration' => object(Registration)))
    in /home/lyzkov/public_html/ZPI/vendor/symfony/src/Symfony/Bundle/TwigBundle/TwigEngine.php at line 113  -+
    at TwigEngine ->renderResponse ('ZpiConferenceBundle:Registration:show.html.twig', array('conference' => object(Conference), 'deadline' => '2011-11-16', 'papers' => object(PersistentCollection), 'registration' => object(Registration)), null)
    in /home/lyzkov/public_html/ZPI/vendor/symfony/src/Symfony/Bundle/FrameworkBundle/Controller/Controller.php at line 98  -+
    at Controller ->render ('ZpiConferenceBundle:Registration:show.html.twig', array('conference' => object(Conference), 'deadline' => '2011-11-16', 'papers' => object(PersistentCollection), 'registration' => object(Registration)))
    in /home/lyzkov/public_html/ZPI/src/Zpi/ConferenceBundle/Controller/RegistrationController.php at line 173  -+
    at RegistrationController ->showAction (null)
    in at line   -+
    at call_user_func_array (array(object(RegistrationController), 'showAction'), array(null))
    in kernel.root_dir/cache/dev/classes.php at line 3883  -+
    at HttpKernel ->handleRaw (object(Request), '1')
    in kernel.root_dir/cache/dev/classes.php at line 3853  -+
    at HttpKernel ->handle (object(Request), '1', true)
    in kernel.root_dir/cache/dev/classes.php at line 4828  -+
    at HttpKernel ->handle (object(Request), '1', true)
    in kernel.root_dir/bootstrap.php.cache at line 547  -+
    at Kernel ->handle (object(Request))
    in /home/lyzkov/public_html/ZPI/web/app_dev.php at line 19  -
[1/2] ErrorException: Catchable Fatal Error: Object of class DateTime could not be converted to string in /home/lyzkov/public_html/ZPI/app/cache/dev/twig/79/cb/f6eb686263edaadefa319bbafad6.php line 93  -+

    in /home/lyzkov/public_html/ZPI/vendor/symfony/src/Symfony/Component/HttpKernel/Debug/ErrorHandler.php at line 65  -+
    at ErrorHandler ->handle ('4096', 'Object of class DateTime could not be converted to string', '/home/lyzkov/public_html/ZPI/app/cache/dev/twig/79/cb/f6eb686263edaadefa319bbafad6.php', '93', array('context' => array('assetic' => array('debug' => true, 'use_controller' => true), 'app' => object(GlobalVariables), 'conference' => object(Conference), 'deadline' => '2011-11-16', 'papers' => object(PersistentCollection), 'registration' => object(Registration)), 'blocks' => array('title' => array(object(__TwigTemplate_79cbf6eb686263edaadefa319bbafad6), 'block_title'), 'bodytitle' => array(object(__TwigTemplate_79cbf6eb686263edaadefa319bbafad6), 'block_bodytitle'))))
    in kernel.root_dir/cache/dev/twig/79/cb/f6eb686263edaadefa319bbafad6.php at line 93  -+
    at __TwigTemplate_79cbf6eb686263edaadefa319bbafad6 ->block_body (array('assetic' => array('debug' => true, 'use_controller' => true), 'app' => object(GlobalVariables), 'conference' => object(Conference), 'deadline' => '2011-11-16', 'papers' => object(PersistentCollection), 'registration' => object(Registration)), array('title' => array(object(__TwigTemplate_79cbf6eb686263edaadefa319bbafad6), 'block_title'), 'bodytitle' => array(object(__TwigTemplate_79cbf6eb686263edaadefa319bbafad6), 'block_bodytitle')))
    in at line   -+
    at call_user_func (array(object(__TwigTemplate_79cbf6eb686263edaadefa319bbafad6), 'block_body'), array('assetic' => array('debug' => true, 'use_controller' => true), 'app' => object(GlobalVariables), 'conference' => object(Conference), 'deadline' => '2011-11-16', 'papers' => object(PersistentCollection), 'registration' => object(Registration)), array('title' => array(object(__TwigTemplate_79cbf6eb686263edaadefa319bbafad6), 'block_title'), 'bodytitle' => array(object(__TwigTemplate_79cbf6eb686263edaadefa319bbafad6), 'block_bodytitle')))
    in kernel.root_dir/cache/dev/classes.php at line 7715  -+
    at Twig_Template ->displayBlock ('body', array('assetic' => array('debug' => true, 'use_controller' => true), 'app' => object(GlobalVariables), 'conference' => object(Conference), 'deadline' => '2011-11-16', 'papers' => object(PersistentCollection), 'registration' => object(Registration)), array('title' => array(object(__TwigTemplate_79cbf6eb686263edaadefa319bbafad6), 'block_title'), 'bodytitle' => array(object(__TwigTemplate_79cbf6eb686263edaadefa319bbafad6), 'block_bodytitle'), 'body' => array(object(__TwigTemplate_79cbf6eb686263edaadefa319bbafad6), 'block_body')))
    in kernel.root_dir/cache/dev/twig/3c/37/f3c0e9da0cdb067e0aa894c274e4.php at line 246  -+
    at __TwigTemplate_3c37f3c0e9da0cdb067e0aa894c274e4 ->doDisplay (array('assetic' => array('debug' => true, 'use_controller' => true), 'app' => object(GlobalVariables), 'conference' => object(Conference), 'deadline' => '2011-11-16', 'papers' => object(PersistentCollection), 'registration' => object(Registration)), array('title' => array(object(__TwigTemplate_79cbf6eb686263edaadefa319bbafad6), 'block_title'), 'bodytitle' => array(object(__TwigTemplate_79cbf6eb686263edaadefa319bbafad6), 'block_bodytitle'), 'body' => array(object(__TwigTemplate_79cbf6eb686263edaadefa319bbafad6), 'block_body')))
    in kernel.root_dir/cache/dev/classes.php at line 7790  -+
    at Twig_Template ->display (array('assetic' => array('debug' => true, 'use_controller' => true), 'app' => object(GlobalVariables), 'conference' => object(Conference), 'deadline' => '2011-11-16', 'papers' => object(PersistentCollection), 'registration' => object(Registration)), array('title' => array(object(__TwigTemplate_79cbf6eb686263edaadefa319bbafad6), 'block_title'), 'bodytitle' => array(object(__TwigTemplate_79cbf6eb686263edaadefa319bbafad6), 'block_bodytitle'), 'body' => array(object(__TwigTemplate_79cbf6eb686263edaadefa319bbafad6), 'block_body')))
    in kernel.root_dir/cache/dev/twig/79/cb/f6eb686263edaadefa319bbafad6.php at line 38  -+
    at __TwigTemplate_79cbf6eb686263edaadefa319bbafad6 ->doDisplay (array('conference' => object(Conference), 'deadline' => '2011-11-16', 'papers' => object(PersistentCollection), 'registration' => object(Registration)), array())
    in kernel.root_dir/cache/dev/classes.php at line 7790  -+
    at Twig_Template ->display (array('conference' => object(Conference), 'deadline' => '2011-11-16', 'papers' => object(PersistentCollection), 'registration' => object(Registration)))
    in kernel.root_dir/cache/dev/classes.php at line 7809  -+
    at Twig_Template ->render (array('conference' => object(Conference), 'deadline' => '2011-11-16', 'papers' => object(PersistentCollection), 'registration' => object(Registration)))
    in /home/lyzkov/public_html/ZPI/vendor/symfony/src/Symfony/Bundle/TwigBundle/TwigEngine.php at line 59  -+
    at TwigEngine ->render ('ZpiConferenceBundle:Registration:show.html.twig', array('conference' => object(Conference), 'deadline' => '2011-11-16', 'papers' => object(PersistentCollection), 'registration' => object(Registration)))
    in /home/lyzkov/public_html/ZPI/vendor/symfony/src/Symfony/Bundle/TwigBundle/TwigEngine.php at line 113  -+
    at TwigEngine ->renderResponse ('ZpiConferenceBundle:Registration:show.html.twig', array('conference' => object(Conference), 'deadline' => '2011-11-16', 'papers' => object(PersistentCollection), 'registration' => object(Registration)), null)
    in /home/lyzkov/public_html/ZPI/vendor/symfony/src/Symfony/Bundle/FrameworkBundle/Controller/Controller.php at line 98  -+
    at Controller ->render ('ZpiConferenceBundle:Registration:show.html.twig', array('conference' => object(Conference), 'deadline' => '2011-11-16', 'papers' => object(PersistentCollection), 'registration' => object(Registration)))
    in /home/lyzkov/public_html/ZPI/src/Zpi/ConferenceBundle/Controller/RegistrationController.php at line 173  -+
    at RegistrationController ->showAction (null)
    in at line   -+
    at call_user_func_array (array(object(RegistrationController), 'showAction'), array(null))
    in kernel.root_dir/cache/dev/classes.php at line 3883  -+
    at HttpKernel ->handleRaw (object(Request), '1')
    in kernel.root_dir/cache/dev/classes.php at line 3853  -+
    at HttpKernel ->handle (object(Request), '1', true)
    in kernel.root_dir/cache/dev/classes.php at line 4828  -+
    at HttpKernel ->handle (object(Request), '1', true)
    in kernel.root_dir/bootstrap.php.cache at line 547  -+
    at Kernel ->handle (object(Request))
    in /home/lyzkov/public_html/ZPI/web/app_dev.php at line 19  -

Solved