[rt-users] RT 4.2.11 ActivityReports-Billing: Use of uninitialized value $_ in pattern match

Aaron C. de Bruyn aaron at heyaaron.com
Fri Jul 31 00:37:22 EDT 2015


I have had RT 4.2.11 up and running for a few months now, and we
wanted to test billing directly from RT.

I installed the latest RT-Extension-ActivityReports from github along
with RT-Extension-ActivityReports-Billing.

They installed without errors.

Every report I try to run comes up the following logged to syslog:

Jul 30 21:29:27 tickets RT: [27076] Use of uninitialized value $_ in
pattern match (m//) at
/opt/rt4/local/plugins/RT-Extension-ActivityReports/html/Reports/Activity/Elements/ActivitySummary
line 38.

There's usually a delay (I'm guessing while it fetches the report
data) and then I get this:
Jul 30 21:30:11 tickets RT: [27076] Use of uninitialized value
$printable_args{"Query"} in concatenation (.) or string at
/opt/rt4/local/plugins/RT-Extension-ActivityReports/html/Reports/Activity/Elements/ScreenFooter
line 7.

Some of the reports produce output--like the Activity Summary report.

The Billable Activity Detail report returns no data, with the
following error messages in syslog:

Jul 30 21:31:46 tickets RT: [27074] Use of uninitialized value $_ in
pattern match (m//) at
/opt/rt4/share/html/Reports/Activity/Elements/BillableActivityDetail
line 55.

Jul 30 21:31:46 tickets RT: [27074] Use of uninitialized value
$printable_args{"Query"} in concatenation (.) or string at
/opt/rt4/local/plugins/RT-Extension-ActivityReports/html/Reports/Activity/Elements/ScreenFooter
line 7.

I looked at BillableActivityDetail at line 55 and see that it's
hard-coded to use 'resolved' as the status.  We changed ours to
'complete', so I modified the line like so:

$tickets->FromSQL(join " AND ", map {"($_)"} grep {/\S/} ($query,
"Updated >= '$start' AND Updated <= '$end'", "Status = 'complete'"));

We get the same errors in syslog before and after the change with no
data in the report either way.

Am I missing something?

Thanks,

-A



More information about the rt-users mailing list