Subject: | Conflict between RTIR-4.0 RTx-BecomeUser in RT 4.4.1 |
Date: | Thu, 4 May 2017 13:43:10 -0500 |
To: | bug-RTx-BecomeUser [...] rt.cpan.org |
From: | Kenneth Marshall <ktm [...] rice.edu> |
Hi,
I like the functionality of BecomeUser, but I currently cannot use it
because it does not work with the RTIR plugin under RT 4.4.1. If I have
them both enabled, this is the error I get when I try to enter the RTIR
tab:
error: Can't call method "child" on an undefined value at /opt/rt441/local/plugins/RTx-BecomeUser/html/Callbacks/BecomeUserCallbacks/Elements/Tabs/Privileged line 3.
context:
1: <%init>
2: # Add the BecomeUser selection page to the Admin/Tools menu:
3: if ( $session{'CurrentUser'}->HasRight( Right => 'SuperUser', Object => RT->System ) ) {
4: my $menu = Menu()->child('admin')->child('tools')->child( 'becomeuser' =>
5: title => loc('Become User'),
6: description => loc('Become another user.'),
7: path => '/Admin/Tools/BecomeUser.html',
...
code stack: /opt/rt441/local/plugins/RTx-BecomeUser/html/Callbacks/BecomeUserCallbacks/Elements/Tabs/Privileged:3
/opt/rt441/share/html/Elements/Tabs:1108
/opt/rt441/local/plugins/RT-IR/html/RTIR/index.html:49
/opt/rt441/sbin/../lib/RT/Interface/Web.pm:696
/opt/rt441/sbin/../lib/RT/Interface/Web.pm:375
/opt/rt441/share/html/autohandler:53
and more details:
Can't call method "child" on an undefined value at /opt/rt441/local/plugins/RTx-BecomeUser/html/Callbacks/BecomeUserCallbacks/Elements/Tabs/Privileged line 3.
Trace begun at /usr/local/share/perl5/HTML/Mason/Exceptions.pm line 125
HTML::Mason::Exceptions::rethrow_exception('Can\'t call method "child" on an undefined value at /opt/rt441/local/plugins/RTx-BecomeUser/html/Callbacks/BecomeUserCallbacks/Elements/Tabs/Privileged line 3.^J') called at /opt/rt441/local/plugins/RTx-BecomeUser/html/Callbacks/BecomeUserCallbacks/Elements/Tabs/Privileged line 3
HTML::Mason::Commands::__ANON__('Path', '/RTIR/index.html') called at /usr/local/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x8b19210)', 'Path', '/RTIR/index.html') called at /usr/local/share/perl5/HTML/Mason/Request.pm line 1297
eval {...} at /usr/local/share/perl5/HTML/Mason/Request.pm line 1292
HTML::Mason::Request::comp(undef, undef, 'Path', '/RTIR/index.html') called at /opt/rt441/sbin/../lib/RT/Interface/Web/Request.pm line 153
RT::Interface::Web::Request::callback('RT::Interface::Web::Request=HASH(0x87482c8)', 'CallbackName', 'Privileged', 'Path', '/RTIR/index.html') called at /opt/rt441/share/html/Elements/Tabs line 1108
HTML::Mason::Commands::__ANON__ at /opt/rt441/share/html/Elements/Tabs line 1180
HTML::Mason::Commands::__ANON__ at /usr/local/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x8aab880)') called at /usr/local/share/perl5/HTML/Mason/Request.pm line 1302
eval {...} at /usr/local/share/perl5/HTML/Mason/Request.pm line 1292
HTML::Mason::Request::comp(undef, undef) called at /opt/rt441/local/plugins/RT-IR/html/RTIR/index.html line 49
HTML::Mason::Commands::__ANON__ at /usr/local/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x888fd28)') called at /usr/local/share/perl5/HTML/Mason/Request.pm line 1302
eval {...} at /usr/local/share/perl5/HTML/Mason/Request.pm line 1292
HTML::Mason::Request::comp(undef, undef, undef) called at /opt/rt441/sbin/../lib/RT/Interface/Web.pm line 696
RT::Interface::Web::ShowRequestedPage('HASH(0x8890070)') called at /opt/rt441/sbin/../lib/RT/Interface/Web.pm line 375
RT::Interface::Web::HandleRequest('HASH(0x8890070)') called at /opt/rt441/share/html/autohandler line 53
HTML::Mason::Commands::__ANON__ at /usr/local/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x888ff98)') called at /usr/local/share/perl5/HTML/Mason/Request.pm line 1297
eval {...} at /usr/local/share/perl5/HTML/Mason/Request.pm line 1292
HTML::Mason::Request::comp(undef, undef, undef) called at /usr/local/share/perl5/HTML/Mason/Request.pm line 481
eval {...} at /usr/local/share/perl5/HTML/Mason/Request.pm line 481
eval {...} at /usr/local/share/perl5/HTML/Mason/Request.pm line 433
HTML::Mason::Request::exec('RT::Interface::Web::Request=HASH(0x87482c8)') called at /usr/local/share/perl5/HTML/Mason/PSGIHandler.pm line 96
eval {...} at /usr/local/share/perl5/HTML/Mason/PSGIHandler.pm line 96
HTML::Mason::Request::PSGI::exec('RT::Interface::Web::Request=HASH(0x87482c8)') called at /usr/local/share/perl5/HTML/Mason/Interp.pm line 342
HTML::Mason::Interp::exec(undef, undef) called at /usr/local/share/perl5/HTML/Mason/PSGIHandler.pm line 59
eval {...} at /usr/local/share/perl5/HTML/Mason/PSGIHandler.pm line 59
HTML::Mason::PSGIHandler::invoke_mason('HTML::Mason::PSGIHandler::Streamy=HASH(0x87c47a0)', 'HASH(0x205ff90)', 'HASH(0x43b8b38)') called at /usr/local/share/perl5/HTML/Mason/PSGIHandler/Streamy.pm line 52
HTML::Mason::PSGIHandler::Streamy::__ANON__('CODE(0x8890b80)') called at /usr/local/share/perl5/Plack/Util.pm line 301
Plack::Util::__ANON__('CODE(0x8807290)') called at /usr/local/share/perl5/Plack/Handler/FCGI.pm line 145
Plack::Handler::FCGI::run('Plack::Handler::FCGI=HASH(0x8804ea8)', 'CODE(0x87e7f48)') called at /usr/local/share/perl5/Plack/Loader.pm line 84
Plack::Loader::run('Plack::Loader=HASH(0x8804d40)', 'Plack::Handler::FCGI=HASH(0x8804ea8)') called at /usr/local/share/perl5/Plack/Runner.pm line 277
Plack::Runner::run('RT::PlackRunner=HASH(0x1d36e70)') called at /opt/rt441/sbin/../lib/RT/PlackRunner.pm line 141
eval {...} at /opt/rt441/sbin/../lib/RT/PlackRunner.pm line 141
RT::PlackRunner::run('RT::PlackRunner=HASH(0x1d36e70)') called at /opt/rt441/sbin/rt-server.fcgi line 162
Do you have any idea how to fix it?
Regards,
Ken