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

Steve Peters steve at fisharerojo.org
Thu Jun 1 09:57:21 EDT 2006


On Thu, Jun 01, 2006 at 01:31:16PM +0100, Paul Barry wrote:
> 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.
> 

Oddly enough, this problem appears to have been licked in the Debian 
family and bleadperl just this morning.

The workaround is to reinstall Scalar::Util.  The following command 
should fix it (remember to login as a user who can update the Perl libs 
or use sudo).

  cpan -fi Scalar::Util


Steve Peters
steve at fisharerojo.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: Digital signature
Url : http://lists.bestpractical.com/pipermail/jifty-devel/attachments/20060601/c200e5e3/attachment.pgp


More information about the jifty-devel mailing list