This is the notice that i am getting on my controller Notice: serialize(): "sessionverses" returned as member variable from __sleep() but does not exist in /home/cordoval/sites-2/ memorizescripture/vendor/symfony/src/Symfony/Component/Security/Core/ Authentication/Token/AbstractToken.php on line 136 Notice: serialize(): "chapter" returned as member variable from __sleep() but does not exist in /home/cordoval/sites-2/memorizescripture/vendor/ symfony/src/Symfony/Component/Security/Core/Authentication/Token/ AbstractToken.php on line 136 Notice: serialize(): "sessionverses" returned as member variable from __sleep() but does not exist in /home/ cordoval/sites-2/memorizescripture/vendor/symfony/src/Symfony/ Component/Security/Core/Authentication/Token/AbstractToken.php on line 136 Notice: serialize(): "chapter" returned as member variable from __sleep() but does not exist in /home/cordoval/sites-2/ memorizescripture/vendor/symfony/src/Symfony/Component/Security/Core/ Authentication/Token/AbstractToken.php on line 136 Notice: serialize(): "sessionverses" returned as member variable from __sleep() but does not exist in /home/cordoval/sites-2/ memorizescripture/vendor/symfony/src/Symfony/Component/Security/Core/ Authentication/Token/AbstractToken.php on line 136 Notice: serialize(): "chapter" returned as member variable from __sleep() but does not exist in /home/cordoval/sites-2/memorizescripture/vendor/ symfony/src/Symfony/Component/Security/Core/Authentication/Token/ AbstractToken.php on line 136
and while running functional tests on the controller I get a real exception: string(13521) "[exception] 500 | Internal Server Error | Exception [message] Symfony\Component\Security\Core\Authentication\Token \UsernamePasswordToken::serialize() must return a string or NULL [1] Exception: Symfony\Component\Security\Core\Authentication\Token \UsernamePasswordToken::serialize() must return a string or NULL at n/a in /home/cordoval/sites-2/memorizescripture/vendor/ symfony/src/Symfony/Component/Security/Http/Firewall/ ContextListener.php line 107 Anyone have any hints please? I have reported this as a bug however I have previously tried to discuss it here at the mailing list, please help all the code is @ https://github.com/cordoval/Memorize-Scripture-2/blob/master/src/Cordova/MemorizeScriptureBundle/Controller/TrackerController.php and at the project on github there, thanks, Luis On Apr 15, 9:46 pm, Luis Cordova <cordo...@gmail.com> wrote: > I am getting a notice: > > Notice: serialize(): "sessionverses" returned as member variable from > __sleep() but does not exist in > /home/cordoval/sites-2/memorizescripture/vendor/symfony/src/Symfony/Compone > nt/Security/Core/Authentication/Token/AbstractToken.php > on line 136 Notice: serialize(): "chapter" returned as member variable > from __sleep() but does not exist in > /home/cordoval/sites-2/memorizescripture/vendor/symfony/src/Symfony/Compone > nt/Security/Core/Authentication/Token/AbstractToken.php > on line 136 > > I found : > To summerize: in a given class hierarchy in which parent classes > contain private member variables, those variables are serialized when > __sleep() is not defined. However, once __sleep() is defined, there is > no way to make those private member variables serialized as well. From > that point on, serialization is performed from the visibility scope of > the subclass. It is particularly important to note this little quirk > when designing base classes that their derivables may be serialized, > or when subclassing an external library class. > > However my question is how do i avoid this, since this is in twig that > I am doing lazy loading with user then user.sessions, then > session.sessionverses, then sessionverse.verse.Chapter etc > > Can someone please hint? thanks > > Luis -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en