[Catalyst] Re: Moose/Object error in Catalyst
Gavin Aiken
gavin at aiken.org.uk
Fri Oct 1 18:06:39 GMT 2010
>
> [Thu Sep 30 19:57:59 2010] [warn] [client 208.93.49.4] mod_fcgid:
> stderr: Odd number of elements in anonymous hash at /usr/lib64/perl5/
> site_perl/5.8.8/x86_64-linux-thread-multi/Moose/Object.pm line 39.
>
>
> Any ideas what is causing it? I've tried to debug it but haven't
> managed to figure it out myself yet. If I roll back to the previous
> version of the table classes without the Moose stuff the error goes
> away - but I don't want to do that!
I just discovered that if I keep the Moose stuff at the top of the
table classes, but comment out the line:
__PACKAGE__->meta->make_immutable;
at the bottom of all of them, the "Odd number of elements" error stops
happening. I still don't know why, or if this is a BAD THING to do -
if anyone can offer any advice I'd be grateful.
ps I've posted this to the Catalyst list rather than DBIx::Class,
because I can use the Moose-ified schema outside of Catalyst without
getting any errors. I'm not sure if this really is therefore a
Catalyst error, but as that's the only place I see the error it seemed
like the best place to start asking for help.
More information about the Catalyst
mailing list