[rt-users] Undefined subroutine &Scalar::Util::weaken

Jesse Vincent jesse at bestpractical.com
Thu Dec 30 16:33:57 EST 2004




On Thu, Dec 30, 2004 at 12:52:35PM -0500, Mathew Walker wrote:
> I've finally stumbled along enough to get things working (gotta love the 
> list archives), however when I click TOOLS from the main menu on the left, 
> I get the following errror.  A little direction would be greatly 
> appreciated. To the best of my ability, I can't find any glaring errors.

Try reinstalling Scalar::Util. It turns out that the "pure perl" version
of the module doesn't have the 'weaken' method.

> error:  Undefined subroutine &Scalar::Util::weaken called at 
> /opt/rt3/lib/RT/Action/Generic.pm line 104.
> 
> context:  ...
> 100:  $self->{'TransactionObj'} = $args{'TransactionObj'};
> 101:  $self->{'TemplateObj'} = $args{'TemplateObj'};
> 102:  $self->{'Type'} = $args{'Type'};
> 103:  $self->CurrentUser( $args{'CurrentUser'});
> 104:  Scalar::Util::weaken($self->{'ScripObj'});
> 105:  Scalar::Util::weaken($self->{'TicketObj'});
> 106:  Scalar::Util::weaken($self->{'TemplateObj'});
> 107:  Scalar::Util::weaken($self->{'TransactionObj'});
> 108:
> ...
> 
> code stack:  /opt/rt3/lib/RT/Action/Generic.pm:104
> /opt/rt3/lib/RT/Action/Generic.pm:79
> /opt/rt3/share/html/Tools/Offline.html:107
> /opt/rt3/share/html/autohandler:221
> 
> raw error
> 
> 
> _______________________________________________
> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
> 
> Be sure to check out the RT wiki at http://wiki.bestpractical.com
> 

-- 



More information about the rt-users mailing list