Hi RT User/Todd,
today i installed at a testbox AT under the actual RT Release (3.6.4) and i get the following error if i jump to the RT At a Glance Page:
If I do a reload then it works. This Error occurs only if I enable develmode inside RT.
System error
error:
Error during compilation of /opt/rt3/share/html/Callbacks/AssetTracker/autohandler/Default:
"my" variable $groupmembers masks earlier declaration in same scope at /opt/rt3/local/lib/RTx/AssetTracker/Assets_Overlay.pm line 907.
context:
...
code stack:
/usr/lib/perl5/site_perl/5.8.8/HTML/Mason/Interp.pm:454
/usr/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm:1093
/usr/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm:1007
/usr/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm:1204
/opt/rt3/share/html/Elements/Callback:85
/opt/rt3/share/html/autohandler:270
raw error
Error during compilation of /opt/rt3/share/html/Callbacks/AssetTracker/autohandler/Default:
"my" variable $groupmembers masks earlier declaration in same scope at /opt/rt3/local/lib/RTx/AssetTracker/Assets_Overlay.pm line 907.
Trace begun at /usr/lib/perl5/site_perl/5.8.8/HTML/Mason/Interp.pm line 845
HTML::Mason::Interp::_compilation_error('HTML::Mason::Interp=HASH(0xaf8997c)', '/opt/rt3/share/html/Callbacks/AssetTracker/autohandler/Default', 'Error during compilation of :^J"my" variable $groupmembers masks earlier declaration in same scope at /opt/rt3/local/lib/RTx/AssetTracker/Assets_Overlay.pm line 907.^J^J^JStack:^J [/usr/lib/perl5/site_perl/5.8.8/HTML/Mason/Interp.pm:453]^J [/usr/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm:1093]^J [/usr/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm:1007]^J [/usr/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm:1204]^J [/opt/rt3/share/html/Elements/Callback:85]^J [/opt/rt3/share/html/autohandler:270]^J') called at /usr/lib/perl5/site_perl/5.8.8/HTML/Mason/Interp.pm line 454
HTML::Mason::Interp::load('HTML::Mason::Interp=HASH(0xaf8997c)', '/Callbacks/AssetTracker/autohandler/Default') called at /usr/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm line 1093
HTML::Mason::Request::_fetch_comp('HTML::Mason::Request::CGI=HASH(0xb32f558)', '/Callbacks/AssetTracker/autohandler/Default', 'HTML::Mason::Component::FileBased=HASH(0xb3e969c)', 'SCALAR(0xb3e9954)') called at /usr/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm line 1007
HTML::Mason::Request::fetch_comp('HTML::Mason::Request::CGI=HASH(0xb32f558)', '/Callbacks/AssetTracker/autohandler/Default', undef, 'SCALAR(0xb3e9954)') called at /usr/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm line 1204
HTML::Mason::Request::comp('HTML::Mason::Request::CGI=HASH(0xb32f558)', '/Callbacks/AssetTracker/autohandler/Default') called at /opt/rt3/share/html/Elements/Callback line 85
HTML::Mason::Commands::__ANON__ at /usr/lib/perl5/site_perl/5.8.8/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0xb3e969c)') called at /usr/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm line 1262
eval {...} at /usr/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm line 1252
HTML::Mason::Request::comp(undef, undef) called at /opt/rt3/share/html/autohandler line 270
HTML::Mason::Commands::__ANON__ at /usr/lib/perl5/site_perl/5.8.8/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0xb350038)') called at /usr/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm line 1257
eval {...} at /usr/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm line 1252
HTML::Mason::Request::comp(undef, undef, undef) called at /usr/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm line 466
eval {...} at /usr/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm line 466
eval {...} at /usr/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm line 418
HTML::Mason::Request::exec('HTML::Mason::Request::CGI=HASH(0xb32f558)') called at /usr/lib/perl5/site_perl/5.8.8/HTML/Mason/CGIHandler.pm line 192
eval {...} at /usr/lib/perl5/site_perl/5.8.8/HTML/Mason/CGIHandler.pm line 192
HTML::Mason::Request::CGI::exec('HTML::Mason::Request::CGI=HASH(0xb32f558)') called at /usr/lib/perl5/site_perl/5.8.8/HTML/Mason/Interp.pm line 342
HTML::Mason::Interp::exec(undef, undef) called at /usr/lib/perl5/site_perl/5.8.8/HTML/Mason/CGIHandler.pm line 123
eval {...} at /usr/lib/perl5/site_perl/5.8.8/HTML/Mason/CGIHandler.pm line 123
HTML::Mason::CGIHandler::_handler('HTML::Mason::CGIHandler=HASH(0xaf6fcd4)', 'HASH(0xb325c20)') called at /usr/lib/perl5/site_perl/5.8.8/HTML/Mason/CGIHandler.pm line 73
HTML::Mason::CGIHandler::handle_cgi_object('HTML::Mason::CGIHandler=HASH(0xaf6fcd4)', 'CGI::Fast=HASH(0xb2c6044)') called at /opt/rt3/bin/mason_handler.fcgi line 78
eval {...} at /opt/rt3/bin/mason_handler.fcgi line 78
This error happens if I create a CF for a asset by type select one value and this CF has the category Option filled, if I then choose a category, then the value and press return:
System error
error:
Can't call method "Name" without a package or object reference at /opt/rt3/local/lib/RTx/AssetTracker/Interface/Web.pm line 896.
context:
...
892:
push ( @results, $msg );
893:
}
894:
}
895:
else {
896:
push ( @results, loc("User asked for an unknown update type for custom field [_1] for [_2] object #[_3]", $cf->Name, $class, $Object->id ) );
897:
}
898:
}
899:
}
900:
return (@results);
...
code stack:
/opt/rt3/local/lib/RTx/AssetTracker/Interface/Web.pm:896
/opt/rt3/share/html/AssetTracker/Asset/ModifyFields.html:74
/opt/rt3/share/html/autohandler:291
raw error
Can't call method "Name" without a package or object reference at /opt/rt3/local/lib/RTx/AssetTracker/Interface/Web.pm line 896.
Trace begun at /usr/lib/perl5/site_perl/5.8.8/HTML/Mason/Exceptions.pm line 129
HTML::Mason::Exceptions::rethrow_exception('Can\'t call method "Name" without a package or object reference at /opt/rt3/local/lib/RTx/AssetTracker/Interface/Web.pm line 896.^J') called at /opt/rt3/local/lib/RTx/AssetTracker/Interface/Web.pm line 896
HTML::Mason::Commands::ProcessATObjectCustomFieldUpdates('Object', 'RTx::AssetTracker::Asset=HASH(0xafb2d0c)', 'ARGSRef', 'HASH(0xab455bc)') called at /opt/rt3/share/html/AssetTracker/Asset/ModifyFields.html line 74
HTML::Mason::Commands::__ANON__('Object-RTx::AssetTracker::Asset-1-CustomField-22-Values-Magic', 1, 'id', 1, 'Object-RTx::AssetTracker::Asset-1-CustomField-15-Values-Magic', 1, 'Object-RTx::AssetTracker::Asset-1-CustomField-16-Values-Magic', 1, 'FieldComment', '', 'Object-RTx::AssetTracker::Asset-1-CustomField-15-Value', 'messenger.int.kn', 'Object-RTx::AssetTracker::Asset-1-CustomField-22-Category', 'Server', 'Object-RTx::AssetTracker::Asset-1-CustomField-22-Values', 'Windows 2003 Server', 'Object-RTx::AssetTracker::Asset-1-CustomField-16-Upload', '') called at /usr/lib/perl5/site_perl/5.8.8/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0xaae73f8)', 'Object-RTx::AssetTracker::Asset-1-CustomField-22-Values-Magic', 1, 'id', 1, 'Object-RTx::AssetTracker::Asset-1-CustomField-15-Values-Magic', 1, 'Object-RTx::AssetTracker::Asset-1-CustomField-16-Values-Magic', 1, 'FieldComment', '', 'Object-RTx::AssetTracker::Asset-1-CustomField-15-Value', 'messenger.int.kn', 'Object-RTx::AssetTracker::Asset-1-CustomField-22-Category', 'Server', 'Object-RTx::AssetTracker::Asset-1-CustomField-22-Values', 'Windows 2003 Server', 'Object-RTx::AssetTracker::Asset-1-CustomField-16-Upload', '') called at /usr/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm line 1262
eval {...} at /usr/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm line 1252
HTML::Mason::Request::comp(undef, undef, undef, 'Object-RTx::AssetTracker::Asset-1-CustomField-22-Values-Magic', 1, 'id', 1, 'Object-RTx::AssetTracker::Asset-1-CustomField-15-Values-Magic', 1, 'Object-RTx::AssetTracker::Asset-1-CustomField-16-Values-Magic', 1, 'FieldComment', '', 'Object-RTx::AssetTracker::Asset-1-CustomField-15-Value', 'messenger.int.kn', 'Object-RTx::AssetTracker::Asset-1-CustomField-22-Category', 'Server', 'Object-RTx::AssetTracker::Asset-1-CustomField-22-Values', 'Windows 2003 Server', 'Object-RTx::AssetTracker::Asset-1-CustomField-16-Upload', '') called at /opt/rt3/share/html/autohandler line 291
HTML::Mason::Commands::__ANON__('Object-RTx::AssetTracker::Asset-1-CustomField-22-Values-Magic', 1, 'id', 1, 'Object-RTx::AssetTracker::Asset-1-CustomField-15-Values-Magic', 1, 'Object-RTx::AssetTracker::Asset-1-CustomField-16-Values-Magic', 1, 'FieldComment', '', 'Object-RTx::AssetTracker::Asset-1-CustomField-15-Value', 'messenger.int.kn', 'Object-RTx::AssetTracker::Asset-1-CustomField-22-Category', 'Server', 'Object-RTx::AssetTracker::Asset-1-CustomField-22-Values', 'Windows 2003 Server', 'Object-RTx::AssetTracker::Asset-1-CustomField-16-Upload', '') called at /usr/lib/perl5/site_perl/5.8.8/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x9fcd21c)', 'Object-RTx::AssetTracker::Asset-1-CustomField-22-Values-Magic', 1, 'id', 1, 'Object-RTx::AssetTracker::Asset-1-CustomField-15-Values-Magic', 1, 'Object-RTx::AssetTracker::Asset-1-CustomField-16-Values-Magic', 1, 'FieldComment', '', 'Object-RTx::AssetTracker::Asset-1-CustomField-15-Value', 'messenger.int.kn', 'Object-RTx::AssetTracker::Asset-1-CustomField-22-Category', 'Server', 'Object-RTx::AssetTracker::Asset-1-CustomField-22-Values', 'Windows 2003 Server', 'Object-RTx::AssetTracker::Asset-1-CustomField-16-Upload', '') called at /usr/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm line 1257
eval {...} at /usr/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm line 1252
HTML::Mason::Request::comp(undef, undef, undef, 'Object-RTx::AssetTracker::Asset-1-CustomField-22-Values-Magic', 1, 'id', 1, 'Object-RTx::AssetTracker::Asset-1-CustomField-15-Values-Magic', 1, 'Object-RTx::AssetTracker::Asset-1-CustomField-16-Values-Magic', 1, 'FieldComment', '', 'Object-RTx::AssetTracker::Asset-1-CustomField-15-Value', 'messenger.int.kn', 'Object-RTx::AssetTracker::Asset-1-CustomField-22-Category', 'Server', 'Object-RTx::AssetTracker::Asset-1-CustomField-22-Values', 'Windows 2003 Server', 'Object-RTx::AssetTracker::Asset-1-CustomField-16-Upload', '') called at /usr/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm line 466
eval {...} at /usr/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm line 466
eval {...} at /usr/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm line 418
HTML::Mason::Request::exec('HTML::Mason::Request::CGI=HASH(0xaae7980)') called at /usr/lib/perl5/site_perl/5.8.8/HTML/Mason/CGIHandler.pm line 192
eval {...} at /usr/lib/perl5/site_perl/5.8.8/HTML/Mason/CGIHandler.pm line 192
HTML::Mason::Request::CGI::exec('HTML::Mason::Request::CGI=HASH(0xaae7980)') called at /usr/lib/perl5/site_perl/5.8.8/HTML/Mason/Interp.pm line 342
HTML::Mason::Interp::exec(undef, undef, 'Object-RTx::AssetTracker::Asset-1-CustomField-22-Values-Magic', 1, 'id', 1, 'Object-RTx::AssetTracker::Asset-1-CustomField-15-Values-Magic', 1, 'Object-RTx::AssetTracker::Asset-1-CustomField-16-Values-Magic', 1, 'FieldComment', '', 'Object-RTx::AssetTracker::Asset-1-CustomField-15-Value', 'messenger.int.kn', 'Object-RTx::AssetTracker::Asset-1-CustomField-22-Category', 'Server', 'Object-RTx::AssetTracker::Asset-1-CustomField-22-Values', 'Windows 2003 Server', 'Object-RTx::AssetTracker::Asset-1-CustomField-16-Upload', '') called at /usr/lib/perl5/site_perl/5.8.8/HTML/Mason/CGIHandler.pm line 123
eval {...} at /usr/lib/perl5/site_perl/5.8.8/HTML/Mason/CGIHandler.pm line 123
HTML::Mason::CGIHandler::_handler('HTML::Mason::CGIHandler=HASH(0x9c57bb0)', 'HASH(0xb1161f0)') called at /usr/lib/perl5/site_perl/5.8.8/HTML/Mason/CGIHandler.pm line 73
HTML::Mason::CGIHandler::handle_cgi_object('HTML::Mason::CGIHandler=HASH(0x9c57bb0)', 'CGI::Fast=HASH(0xabc4260)') called at /opt/rt3/bin/mason_handler.fcgi line 78
eval {...} at /opt/rt3/bin/mason_handler.fcgi line 78
Any Ideas or hints?
Thanks
Torsten