[rt-users] statistics addon problem

Elaine . cmap_sec at yahoo.co.uk
Mon Nov 29 07:36:18 EST 2004


hi
Maybe i'll get there eventually.
I installed the Statistics addon and I can generate
tables and 1 graph (calls per queue per day works) but
the others are broken links. I'm not sure what else to
try. I've cleared the cache and restarted apache. 
Whats different about that 1 graph from the others ?


I have fedora 2, perl 5.8.3, apache 2.0.51, libgd
2.0.33 , gd and gd::graph installed without error and
i have libpng and libjpeg installed. 

The old one that generates an error on screen is 
RequestsPerDayofWeek -

error:  Error during compilation of
/usr/local/rt3/share/html/Statistics/DayOfWeek/index.html:
"my" variable $status masks earlier declaration in
same scope at
/usr/local/rt3/share/html/Statistics/DayOfWeek/index.html
line 17.
syntax error at
/usr/local/rt3/share/html/Statistics/DayOfWeek/index.html
line 2, near ");"

 
context:  1:  <& /Elements/Header, Title =>loc('RT
Statistics: Calls by Day Of Week in Queue:' .
$QueueObj->Name() &> 
2:  <& /Statistics/Elements/Tabs, Title =>loc('RT
Statistics: Calls by Day Of Week in Queue:' .
$QueueObj->Name()) &> 
3:   
4:  <H2><&|/l, $QueueObj->Name&>Number of Tickets
Handled in [_1] Per Day</&></H2> 
5:  <form method="POST"> 
6:   
...   
13:  </tr> 
14:  % for my $d (0..$#days) { 
15:  <tr> 
16:  <td> <% loc($days[$d]) %> </td> 
17:  % for my $status (qw(resolved created deleted)) {

18:  <td> <% $counts[$d]{$status} %></td> 
19:  % } 
20:  </tr> 
21:  % } 
...   
 
code stack: 
/usr/lib/perl5/site_perl/5.8.3/HTML/Mason/Interp.pm:326
/usr/lib/perl5/site_perl/5.8.3/HTML/Mason/Request.pm:198
/usr/lib/perl5/site_perl/5.8.3/HTML/Mason/Request.pm:166
/usr/lib/perl5/site_perl/5.8.3/HTML/Mason/ApacheHandler.pm:62
/usr/lib/perl5/site_perl/5.8.3/Class/Container.pm:265
/usr/lib/perl5/site_perl/5.8.3/Class/Container.pm:343
/usr/lib/perl5/site_perl/5.8.3/HTML/Mason/Interp.pm:222
/usr/lib/perl5/site_perl/5.8.3/HTML/Mason/ApacheHandler.pm:897
/usr/lib/perl5/site_perl/5.8.3/HTML/Mason/ApacheHandler.pm:822
/usr/local/rt3/bin/webmux.pl:126
-e:0

Elaine


	
	
		
___________________________________________________________ 
ALL-NEW Yahoo! Messenger - all new features - even more fun! http://uk.messenger.yahoo.com



More information about the rt-users mailing list