[rt-users] RT HeadsUp, a quick statistical view for administr ators.

Rehan van der Merwe Rehan at nha.co.za
Wed Aug 29 06:16:37 EDT 2001


I copied the directory into my html directory - login shows fine, but when
entering I get the following error on the screen:


error in file:   /opt/rt2/WebRT/data/obj/STANDARD/masonstats/New 
  line 18:  Can't call method "CreatedObj" on an undefined value 
 
context:   ...   
14:  my $total; 
15:  my $new = new RT::Tickets($session{'CurrentUser'}); 
16:  $new->LimitStatus(VALUE => 'new'); 
17:  $new->OrderBy(FIELD => 'Created', ORDER => 'asc'); 
18:  my $oldest_in_sec = (time - $new->First->CreatedObj->Unix()); 
19:  $new->GotoItem(($new->Count-1)); 
20:  my $newest_in_sec = (time - $new->Next->CreatedObj->Unix()); 
21:  $new->GotoFirstItem(); 
22:  my $count = grep { $total = $total + $_->CreatedObj->Unix }  
...   
 
component stack:   /masonstats/New [standard]
/masonstats/index.html [standard]
/autohandler [standard]
 
code stack:   /opt/rt2/WebRT/data/obj/STANDARD/masonstats/New:18
/opt/rt2/WebRT/data/obj/STANDARD/masonstats/index.html:19
/opt/rt2/WebRT/data/obj/STANDARD/autohandler:52
 
 
Any ideas?

Rehan van der Merwe





-----Original Message-----
From: Jesse Vincent [mailto:jesse at bestpractical.com]
Sent: 28 August 2001 23:26
To: Karel P Kerezman
Cc: rt-users at fsck.com
Subject: Re: [rt-users] RT HeadsUp, a quick statistical view for
administrators.


It does in fact require a recentish 2.0.x rev.  I don't know off the top
of my head if 2.0.4 will suffice. 2.0.5 forward are definitely fine.


On Tue, Aug 28, 2001 at 02:26:08PM -0700, Karel P Kerezman wrote:
> On 28 Aug 2001 16:58:18 -0400, Jesse Vincent wrote:
> > Drop the HeadsUp directory in rt/local/WebRT/html  (or rt/WebRT/html if
that 
> > doesn't exist.)
> 
> Looks neat enough. Question: Is it RT2 version-dependent? I'm running
> 2.0.1 and when I try to view the HeadsUp I get a Mason error to the
> effect that "can't call CreatedObj on an undefined value" and so on.
> 
> -- 
> Karel P Kerezman, IS Admin Entercom Portland - http://zero.kgon.com
> 
> A male gynecologist is like an auto mechanic who never owned a car.
> 
> 

-- 
http://www.bestpractical.com/products/rt  -- Trouble Ticketing. Free.

_______________________________________________
rt-users mailing list
rt-users at lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-users




More information about the rt-users mailing list