[jifty-devel] Undefined subroutine &Scalar::Util::weaken ...

Paul Barry paul.barry at itcarlow.ie
Thu Jun 1 08:31:16 EDT 2006


Hi.

I'm trying to build my first Jifty app which is a jifty-ized version of
the little database from my Maypole article printed in Linux Journal
(http://www.linuxjournal.com/article/7937).

Everything seems fine until I fire up the server and try to add new
players/squads/conditions.  I get the following in the browser,
identified as a "Mason error":


Error in /usr/local/share/perl/5.8.7/Jifty/Web/Form/Field.pm, lines
254: 
Undefined subroutine &Scalar::Util::weaken called at /usr/local/share/perl/5.8.7/Jifty/Web/Form/Field.pm line 254.

Call stack
      * /usr/local/share/perl/5.8.7/Jifty/Web/Form/Field.pm line 254
      * /usr/local/share/perl/5.8.7/Jifty/Web/Form/Field.pm line 83
      * /usr/local/share/perl/5.8.7/Jifty/Action.pm line 301
      * /usr/local/share/perl/5.8.7/Jifty/Action.pm line 258
      * /usr/local/share/perl/5.8.7/auto/Jifty/web/templates/__jifty/admin/fragments/list/new_item line 12
      * /usr/local/share/perl/5.8.7/auto/Jifty/web/templates/__jifty/admin/autohandler line 10
      * /usr/local/share/perl/5.8.7/auto/Jifty/web/templates/autohandler
        line 10


I've had a quick look at line 254 in the offending file and I've also
looked at where Scalar::Util is used.  Making any changes to either
lines in the Field.pm file makes things worse.

Anybody got any ideas?

Attached are my three .pm files (Condition, Player and Squad).

Thanks.

Paul.

-- 
Paul Barry
paul.barry at itcarlow.ie
http://glasnost.itcarlow.ie/~barryp/
Institute of Technology, Carlow, Ireland
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Condition.pm
Type: application/x-perl
Size: 441 bytes
Desc: not available
Url : http://lists.bestpractical.com/pipermail/jifty-devel/attachments/20060601/903152d6/Condition.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Player.pm
Type: application/x-perl
Size: 894 bytes
Desc: not available
Url : http://lists.bestpractical.com/pipermail/jifty-devel/attachments/20060601/903152d6/Player.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Squad.pm
Type: application/x-perl
Size: 421 bytes
Desc: not available
Url : http://lists.bestpractical.com/pipermail/jifty-devel/attachments/20060601/903152d6/Squad.bin


More information about the jifty-devel mailing list