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 MerweFrom: Jesse Vincent [mailto:jesse@bestpractical.com]
Sent: 28 August 2001 23:26
To: Karel P Kerezman
Cc: rt-users@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.
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.comA 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@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-users