[Catalyst] Session, DateTime and Storable
Ruben Fonseca
krani1 at 0x82.com
Tue Jan 1 12:12:33 GMT 2008
On 2008/01/01, at 04:57, Christopher Laco wrote:
> I've heard mention of this before, but I can't find the thread.
> I have the latest DateTime, Storable and
> Catalyst::Plugin::Session/Authentication and I've getting heap of
> these
> in my logs:
>
>> Use of uninitialized value in subroutine entry at blib/lib/
>> Storable.pm (autosplit into blib/lib/auto/Storable/_freeze.al)
>> line 339.
>
> This seems to be caused by storaing a DateTime object in the
> session. If
> I store a string instead of a DT instance, the warnings go away.
>
> Anyone have any ideas on this one?
The only thing I can tell you about this is: STAY WAY FROM
SERIALIZING DATETIME INTO STORABLE!
I've had a project that did that, and I had tons of problems, some
like the warnings you mentioned and others resulting in real 'dies'.
I've asked this mailling list without any good tip. I was so angry
then that I solved my problem once and for all by storing the
individual parts of datetime in the storable (month, day, year, ....).
Probably the stupidest solution, but it solved my problems after 1
month of battle.
Ruben
>
> -=Chris
>
> _______________________________________________
> List: Catalyst at lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-archive.com/
> catalyst at lists.scsys.co.uk/
> Dev site: http://dev.catalyst.perl.org/
---------------------------------------------------------
Rúben Fonseca <ruben.fonseca at log.pt>
Technical Consultant
log <www.log.pt>
Tel: +351 21 330 42 20
Fax: +351 21 330 42 19
Calçada Marquês de Abrantes, 45 - 3º Dto
1200-718 Lisboa
---------------------------------------------------------
More information about the Catalyst
mailing list