[Catalyst] Session, DateTime and Storable

Christopher Laco claco at chrislaco.com
Tue Jan 1 18:28:24 GMT 2008


Ruben Fonseca wrote:
> =

> 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


A Catalyst project?
What Session Store were you using?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 249 bytes
Desc: OpenPGP digital signature
Url : http://lists.scsys.co.uk/pipermail/catalyst/attachments/20080101/7034=
e782/signature-0001.pgp


More information about the Catalyst mailing list