Too many packages? ....When viewing configuration

When clicking Configuration | Tools | System Configuration

error: Too many packages? at
/usr/lib/perl5/site_perl/5.8.5/Module/Versions/Report.pm line 103.

context: …
99: my $count = 0;
100: my $pref;
101: while(@stack) {
102: $this = shift @stack;
103: die “Too many packages?” if ++$count > 1000;
104: next if exists $v{$this};
105: next if $this eq ‘main’; # %main:: is %::
106:
107: #print “Peeking at $this => ${$this . ‘::VERSION’}\n”;

code stack:
/usr/lib/perl5/site_perl/5.8.5/Module/Versions/Report.pm:103
/usr/local/rt3/share/html/Admin/Tools/Configuration.html:66
/usr/local/rt3/share/html/Admin/autohandler:47
/usr/local/rt3/share/html/autohandler:215

raw error
https://int1.int.broadsoft.com/rt/Admin/Tools/Configuration.html#raw

When clicking on Tools

System error

error: Undefined subroutine &Scalar::Util::weaken called at
/usr/local/rt3/lib/RT/Action/Generic.pm line 108.

context: …
104: $self->{‘TicketObj’} = $args{‘TicketObj’};
105: $self->{‘TransactionObj’} = $args{‘TransactionObj’};
106: $self->{‘Type’} = $args{‘Type’};
107:
108: Scalar::Util::weaken($self->{‘ScripActionObj’});
109: Scalar::Util::weaken($self->{‘ScripObj’});
110: Scalar::Util::weaken($self->{‘TemplateObj’});
111: Scalar::Util::weaken($self->{‘TicketObj’});
112: Scalar::Util::weaken($self->{‘TransactionObj’});

code stack: /usr/local/rt3/lib/RT/Action/Generic.pm:108
/usr/local/rt3/lib/RT/Action/Generic.pm:80
/usr/local/rt3/share/html/Tools/Offline.html:107
/usr/local/rt3/share/html/autohandler:215

raw error https://int1.int.broadsoft.com/rt/Tools/Offline.html#raw

When clicking on raw error
Undefined subroutine &Scalar::Util::weaken called at
/usr/local/rt3/lib/RT/Action/Generic.pm line 108.

Trace begun at /usr/lib/perl5/site_perl/5.8.5/HTML/Mason/Exceptions.pm
line 129
HTML::Mason::Exceptions::rethrow_exception(‘Undefined subroutine
&Scalar::Util::weaken called at /usr/local/rt3/lib/RT/Action/Generic.pm
line 108.^J’) called at /usr/local/rt3/lib/RT/Action/Generic.pm line 108
RT::Action::Generic::_Init(‘RT::Action::CreateTickets=HASH(0x690eb20)’,
‘CurrentUser’, ‘RT::CurrentUser=HASH(0x6af7960)’) called at
/usr/local/rt3/lib/RT/Action/Generic.pm line 80
RT::Action::Generic::new(‘RT::Action::CreateTickets’, ‘CurrentUser’,
‘RT::CurrentUser=HASH(0x6af7960)’) called at
/usr/local/rt3/share/html/Tools/Offline.html line 107
HTML::Mason::Commands::ANON at
/usr/lib/perl5/site_perl/5.8.5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run(‘HTML::Mason::Component::FileBased=HASH(0x74
c7a50)’) called at /usr/lib/perl5/site_perl/5.8.5/HTML/Mason/Request.pm
line 1251
eval {…} at /usr/lib/perl5/site_perl/5.8.5/HTML/Mason/Request.pm line
1245
HTML::Mason::Request::comp(undef, undef) called at
/usr/lib/perl5/site_perl/5.8.5/HTML/Mason/Request.pm line 914
HTML::Mason::Request::call_next(‘HTML::Mason::Request::CGI=HASH(0x73ac39
0)’) called at /usr/local/rt3/share/html/autohandler line 215
HTML::Mason::Commands::ANON at
/usr/lib/perl5/site_perl/5.8.5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run(‘HTML::Mason::Component::FileBased=HASH(0x2f
53ed0)’) called at /usr/lib/perl5/site_perl/5.8.5/HTML/Mason/Request.pm
line 1246
eval {…} at /usr/lib/perl5/site_perl/5.8.5/HTML/Mason/Request.pm line
1245
HTML::Mason::Request::comp(undef, undef, undef) called at
/usr/lib/perl5/site_perl/5.8.5/HTML/Mason/Request.pm line 459
eval {…} at /usr/lib/perl5/site_perl/5.8.5/HTML/Mason/Request.pm line
459
eval {…} at /usr/lib/perl5/site_perl/5.8.5/HTML/Mason/Request.pm line
411
HTML::Mason::Request::exec(‘HTML::Mason::Request::CGI=HASH(0x73ac390)’)
called at /usr/lib/perl5/site_perl/5.8.5/HTML/Mason/CGIHandler.pm line
192
eval {…} at /usr/lib/perl5/site_perl/5.8.5/HTML/Mason/CGIHandler.pm
line 192
HTML::Mason::Request::CGI::exec(‘HTML::Mason::Request::CGI=HASH(0x73ac39
0)’) called at /usr/lib/perl5/site_perl/5.8.5/HTML/Mason/Interp.pm line
342
HTML::Mason::Interp::exec(undef, undef) called at
/usr/lib/perl5/site_perl/5.8.5/HTML/Mason/CGIHandler.pm line 123
eval {…} at /usr/lib/perl5/site_perl/5.8.5/HTML/Mason/CGIHandler.pm
line 123
HTML::Mason::CGIHandler::_handler(‘HTML::Mason::CGIHandler=HASH(0x279298
0)’, ‘HASH(0x729b4e0)’) called at
/usr/lib/perl5/site_perl/5.8.5/HTML/Mason/CGIHandler.pm line 73
HTML::Mason::CGIHandler::handle_cgi_object(‘HTML::Mason::CGIHandler=HASH
(0x2792980)’, ‘CGI::Fast=HASH(0x74e93b0)’) called at
/usr/local/rt3/bin/mason_handler.fcgi line 76
eval {…} at /usr/local/rt3/bin/mason_handler.fcgi line 76

Thanks,
James

Hi,

which version of Scalar::Util you have in place?

i remember a threat some days ago with a problem with Scalar::Util.

Torsten2007/11/17, James Bolden JBolden@broadsoft.com:

**
When clicking Configuration | Tools | System Configuration

  • error: Too many packages? at
    /usr/lib/perl5/site_perl/5.8.5/Module/Versions/Report.pm line 103.
    context: …
    99: my $count = 0; 100: my $pref; 101: while(@stack) { 102: $this =
    shift @stack; 103: die “Too many packages?” if ++$count > 1000; 104: next
    if exists $v{$this}; 105: next if $this eq ‘main’; # %main:: is %:: 106:
    107: #print “Peeking at $this => ${$this . ‘::VERSION’}\n”; …
    code stack: /usr/lib/perl5/site_perl/5.8.5/Module/Versions/Report.pm:103
    /usr/local/rt3/share/html/Admin/Tools/Configuration.html:66
    /usr/local/rt3/share/html/Admin/autohandler:47
    /usr/local/rt3/share/html/autohandler:215
    raw errorhttps://int1.int.broadsoft.com/rt/Admin/Tools/Configuration.html#raw

**

When clicking on Tools

**

**

System error
error: Undefined subroutine &Scalar::Util::weaken called at
/usr/local/rt3/lib/RT/Action/Generic.pm line 108.
context:
104: $self->{‘TicketObj’} = $args{‘TicketObj’}; 105: $self->{‘TransactionObj’}
= $args{‘TransactionObj’}; 106: $self->{‘Type’} = $args{‘Type’}; 107:

108: Scalar::Util::weaken($self->{‘ScripActionObj’}); 109:
Scalar::Util::weaken($self->{‘ScripObj’}); 110:
Scalar::Util::weaken($self->{‘TemplateObj’}); 111:
Scalar::Util::weaken($self->{‘TicketObj’}); 112:
Scalar::Util::weaken($self->{‘TransactionObj’});
code stack: /usr/local/rt3/lib/RT/Action/Generic.pm:108
/usr/local/rt3/lib/RT/Action/Generic.pm:80
/usr/local/rt3/share/html/Tools/Offline.html:107
/usr/local/rt3/share/html/autohandler:215
raw error https://int1.int.broadsoft.com/rt/Tools/Offline.html#raw

When clicking on raw error

Undefined subroutine &Scalar::Util::weaken called at /usr/local/rt3/lib/RT/Action/Generic.pm line 108.

Trace begun at /usr/lib/perl5/site_perl/5.8.5/HTML/Mason/Exceptions.pm line 129
HTML::Mason::Exceptions::rethrow_exception(‘Undefined subroutine &Scalar::Util::weaken called at /usr/local/rt3/lib/RT/Action/Generic.pm line 108.^J’) called at /usr/local/rt3/lib/RT/Action/Generic.pm line 108
RT::Action::Generic::_Init(‘RT::Action::CreateTickets=HASH(0x690eb20)’, ‘CurrentUser’, ‘RT::CurrentUser=HASH(0x6af7960)’) called at /usr/local/rt3/lib/RT/Action/Generic.pm line 80
RT::Action::Generic::new(‘RT::Action::CreateTickets’, ‘CurrentUser’, ‘RT::CurrentUser=HASH(0x6af7960)’) called at /usr/local/rt3/share/html/Tools/Offline.html line 107
HTML::Mason::Commands::ANON at /usr/lib/perl5/site_perl/5.8.5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run(‘HTML::Mason::Component::FileBased=HASH(0x74c7a50)’) called at /usr/lib/perl5/site_perl/5.8.5/HTML/Mason/Request.pm line 1251
eval {…} at /usr/lib/perl5/site_perl/5.8.5/HTML/Mason/Request.pm line 1245
HTML::Mason::Request::comp(undef, undef) called at /usr/lib/perl5/site_perl/5.8.5/HTML/Mason/Request.pm line 914
HTML::Mason::Request::call_next(‘HTML::Mason::Request::CGI=HASH(0x73ac390)’) called at /usr/local/rt3/share/html/autohandler line 215
HTML::Mason::Commands::ANON at /usr/lib/perl5/site_perl/5.8.5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run(‘HTML::Mason::Component::FileBased=HASH(0x2f53ed0)’) called at /usr/lib/perl5/site_perl/5.8.5/HTML/Mason/Request.pm line 1246
eval {…} at /usr/lib/perl5/site_perl/5.8.5/HTML/Mason/Request.pm line 1245
HTML::Mason::Request::comp(undef, undef, undef) called at /usr/lib/perl5/site_perl/5.8.5/HTML/Mason/Request.pm line 459
eval {…} at /usr/lib/perl5/site_perl/5.8.5/HTML/Mason/Request.pm line 459
eval {…} at /usr/lib/perl5/site_perl/5.8.5/HTML/Mason/Request.pm line 411
HTML::Mason::Request::exec(‘HTML::Mason::Request::CGI=HASH(0x73ac390)’) called at /usr/lib/perl5/site_perl/5.8.5/HTML/Mason/CGIHandler.pm line 192
eval {…} at /usr/lib/perl5/site_perl/5.8.5/HTML/Mason/CGIHandler.pm line 192
HTML::Mason::Request::CGI::exec(‘HTML::Mason::Request::CGI=HASH(0x73ac390)’) called at /usr/lib/perl5/site_perl/5.8.5/HTML/Mason/Interp.pm line 342
HTML::Mason::Interp::exec(undef, undef) called at /usr/lib/perl5/site_perl/5.8.5/HTML/Mason/CGIHandler.pm line 123
eval {…} at /usr/lib/perl5/site_perl/5.8.5/HTML/Mason/CGIHandler.pm line 123
HTML::Mason::CGIHandler::_handler(‘HTML::Mason::CGIHandler=HASH(0x2792980)’, ‘HASH(0x729b4e0)’) called at /usr/lib/perl5/site_perl/5.8.5/HTML/Mason/CGIHandler.pm line 73
HTML::Mason::CGIHandler::handle_cgi_object(‘HTML::Mason::CGIHandler=HASH(0x2792980)’, ‘CGI::Fast=HASH(0x74e93b0)’) called at /usr/local/rt3/bin/mason_handler.fcgi line 76
eval {…} at /usr/local/rt3/bin/mason_handler.fcgi line 76

Thanks,
James


The rt-users Archives

SAVE THOUSANDS OF DOLLARS ON RT SUPPORT:

If you sign up for a new RT support contract before December 31, we’ll
take
up to 20 percent off the price. This sale won’t last long, so get in touch
today.
Email us at sales@bestpractical.com or call us at +1 617 812 0745.

Community help: http://wiki.bestpractical.com
Commercial support: sales@bestpractical.com

Discover RT’s hidden secrets with RT Essentials from O’Reilly Media.
Buy a copy at http://rtbook.bestpractical.com

MFG

Torsten Brumm

http://www.torsten-brumm.de

I believe that the correct fix is to install the latest version of
Module::Versions::Report from CPAN.