[rt-users] Error in log: "Use of uninitialized value $ticketcount in numeric lt"

Loshkovskyi Andrii loshkovskyi at yandex.ua
Tue Jan 29 08:20:11 EST 2013


Hello,

I noticed that my RT logs are full with the errors like below:

[Tue Jan 29 09:56:01 2013] [warning]: Use of uninitialized value $ticketcount in numeric lt (<) at /usr/share/request-tracker4/html/Search/Results.html line 185. (/usr/share/request-tracker4/html/Search/Results.html:185)
[Tue Jan 29 09:56:01 2013] [warning]: Use of uninitialized value $ticketcount in numeric lt (<) at /usr/share/request-tracker4/html/Search/Results.html line 186. (/usr/share/request-tracker4/html/Search/Results.html:186)

Those errors match the following lines in the Results.html file:

link_rel{next}  = $BaseURL . $genpage->($Page + 1) if ($Page * $Rows) < $ticketcount;
$link_rel{last}  = $BaseURL . $genpage->(POSIX::ceil($ticketcount/$Rows)) if $Rows and ($Page * $Rows) < $ticketcount;

So, it looks like the variable $ticketcount is undefined. 
Can someone suggest a work around on this issue? What this variable and file are for?

I'm using RT 4.0.4-2 on Ubuntu 12.04 LTS.

Thank you.



More information about the rt-users mailing list