[Rt-devel] RT 3.5.3 Custom Field Problems
Stewart Tranter
S.G.Tranter at lboro.ac.uk
Tue Sep 20 05:30:43 EDT 2005
Hello everyone,
Some, all or none of you may have been following my trials and
tribulations on getting the latest versions of RT to work with
mod_perl2, or as it turns out, mod_perl 1.99.22 (apparently the first
version of mod_perl2).
Anyhow, I've now managed to get RT3.5.3 up and running, but I encounter
the following problem, possibly a bug?
When I create "Custom fields for tickets" I get the following error when
clicking on "Applies To":
error: Error during compilation of
/opt/rt3/share/html/Admin/Elements/PickObjects:
"my" variable $id masks earlier declaration in same scope at
/opt/rt3/share/html/Admin/Elements/PickObjects line 54.
context:
...
50: % my $count;
51: % foreach my $Object (@Objects) {
52: <tr>
53: % my $id = "Object-".$Object->id."-CF-".$id;
54: % my $id = "Object-".$Object->id."-CF-".$id;
55: % if (!$ReadOnly) {
56: <TD valign="TOP">
57: <input type="checkbox" id="<% $id %>" name="<% $id %>" value="1"
<% $Checked ? 'CHECKED' : ''%>
58: >
...
code stack: /usr/lib/perl5/site_perl/5.8.6/HTML/Mason/Interp.pm:426
/usr/lib/perl5/site_perl/5.8.6/HTML/Mason/Request.pm:1092
/usr/lib/perl5/site_perl/5.8.6/HTML/Mason/Request.pm:1023
/usr/lib/perl5/site_perl/5.8.6/HTML/Mason/Request.pm:1202
/opt/rt3/share/html/Admin/CustomFields/Objects.html:60
/opt/rt3/share/html/Admin/autohandler:47
/opt/rt3/share/html/autohandler:247
raw error:
Error during compilation of /opt/rt3/share/html/Admin/Elements/PickObjects:
"my" variable $id masks earlier declaration in same scope at
/opt/rt3/share/html/Admin/Elements/PickObjects line 54.
Trace begun at /usr/lib/perl5/site_perl/5.8.6/HTML/Mason/Interp.pm line 826
HTML::Mason::Interp::_compilation_error('HTML::Mason::Interp=HASH(0xa8a97dc)',
'/opt/rt3/share/html/Admin/Elements/PickObjects', 'Error during
compilation of :^J"my" variable $id masks earlier declaration in same
scope at /opt/rt3/share/html/Admin/Elements/PickObjects line
54.^J^J^JStack:^J
[/usr/lib/perl5/site_perl/5.8.6/HTML/Mason/Interp.pm:422]^J
[/usr/lib/perl5/site_perl/5.8.6/HTML/Mason/Request.pm:1092]^J
[/usr/lib/perl5/site_perl/5.8.6/HTML/Mason/Request.pm:1023]^J
[/usr/lib/perl5/site_perl/5.8.6/HTML/Mason/Request.pm:1202]^J
[/opt/rt3/share/html/Admin/CustomFields/Objects.html:60]^J
[/opt/rt3/share/html/Admin/autohandler:47]^J
[/opt/rt3/share/html/autohandler:247]^J') called at
/usr/lib/perl5/site_perl/5.8.6/HTML/Mason/Interp.pm line 426
HTML::Mason::Interp::load('HTML::Mason::Interp=HASH(0xa8a97dc)',
'/Admin/Elements/PickObjects') called at
/usr/lib/perl5/site_perl/5.8.6/HTML/Mason/Request.pm line 1092
HTML::Mason::Request::_fetch_comp('HTML::Mason::Request::ApacheHandler=HASH(0xa4c7358)',
'/Admin/Elements/PickObjects',
'HTML::Mason::Component::FileBased=HASH(0xb2f6438)',
'SCALAR(0xa4c67e8)') called at
/usr/lib/perl5/site_perl/5.8.6/HTML/Mason/Request.pm line 1023
HTML::Mason::Request::fetch_comp('HTML::Mason::Request::ApacheHandler=HASH(0xa4c7358)',
'/Admin/Elements/PickObjects', undef, 'SCALAR(0xa4c67e8)') called at
/usr/lib/perl5/site_perl/5.8.6/HTML/Mason/Request.pm line 1202
HTML::Mason::Request::comp('HTML::Mason::Request::ApacheHandler=HASH(0xa4c7358)',
'/Admin/Elements/PickObjects', 'Objects', 'ARRAY(0xb376d30)', 'id', 6,
'Checked', 1) called at
/opt/rt3/share/html/Admin/CustomFields/Objects.html line 60
HTML::Mason::Commands::__ANON__('id', 6, 'id', 6, 'id', 6) called at
/usr/lib/perl5/site_perl/5.8.6/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0xb2f6438)',
'id', 6, 'id', 6, 'id', 6) called at
/usr/lib/perl5/site_perl/5.8.6/HTML/Mason/Request.pm line 1255
eval {...} at /usr/lib/perl5/site_perl/5.8.6/HTML/Mason/Request.pm line 1249
HTML::Mason::Request::comp(undef, undef, 'id', 6, 'id', 6, 'id', 6)
called at /usr/lib/perl5/site_perl/5.8.6/HTML/Mason/Request.pm line 916
HTML::Mason::Request::call_next('HTML::Mason::Request::ApacheHandler=HASH(0xa4c7358)',
'id', 6) called at /opt/rt3/share/html/Admin/autohandler line 47
HTML::Mason::Commands::__ANON__('id', 6, 'id', 6) called at
/usr/lib/perl5/site_perl/5.8.6/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0xb2413dc)',
'id', 6, 'id', 6) called at
/usr/lib/perl5/site_perl/5.8.6/HTML/Mason/Request.pm line 1255
eval {...} at /usr/lib/perl5/site_perl/5.8.6/HTML/Mason/Request.pm line 1249
HTML::Mason::Request::comp(undef, undef, 'id', 6, 'id', 6) called at
/usr/lib/perl5/site_perl/5.8.6/HTML/Mason/Request.pm line 916
HTML::Mason::Request::call_next('HTML::Mason::Request::ApacheHandler=HASH(0xa4c7358)',
'id', 6) called at /opt/rt3/share/html/autohandler line 247
HTML::Mason::Commands::__ANON__('id', 6) called at
/usr/lib/perl5/site_perl/5.8.6/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0xb19de70)',
'id', 6) called at /usr/lib/perl5/site_perl/5.8.6/HTML/Mason/Request.pm
line 1250
eval {...} at /usr/lib/perl5/site_perl/5.8.6/HTML/Mason/Request.pm line 1249
HTML::Mason::Request::comp(undef, undef, undef, 'id', 6) called at
/usr/lib/perl5/site_perl/5.8.6/HTML/Mason/Request.pm line 461
eval {...} at /usr/lib/perl5/site_perl/5.8.6/HTML/Mason/Request.pm line 461
eval {...} at /usr/lib/perl5/site_perl/5.8.6/HTML/Mason/Request.pm line 413
HTML::Mason::Request::exec('HTML::Mason::Request::ApacheHandler=HASH(0xa4c7358)')
called at /usr/lib/perl5/site_perl/5.8.6/HTML/Mason/ApacheHandler.pm
line 167
HTML::Mason::Request::ApacheHandler::exec('HTML::Mason::Request::ApacheHandler=HASH(0xa4c7358)')
called at /usr/lib/perl5/site_perl/5.8.6/HTML/Mason/ApacheHandler.pm
line 817
HTML::Mason::ApacheHandler::handle_request('HTML::Mason::ApacheHandler=HASH(0xa8a9698)',
'Apache2::RequestRec=SCALAR(0xb2915e8)') called at
/opt/rt3/bin/webmux.pl line 122
eval {...} at /opt/rt3/bin/webmux.pl line 122
RT::Mason::handler('Apache2::RequestRec=SCALAR(0xb2915e8)') called at -e
line 0
eval {...} at -e line 0
Is this a bug?
Thanks and kind regards,
Stewart
------------------------------------------------
Stewart Tranter
Computing Services
Loughborough University
E: s.g.tranter at lboro.ac.uk
W: http://www.lboro.ac.uk/computing/
T: +44 (0) 1509 223719
F: +44 (0) 1509 223989
------------------------------------------------
More information about the Rt-devel
mailing list