Simple fix for Loganalyzer plugin

Not sure if many use it but I like the Loganalyzer plugin by Paul Klinkenberg that’s available for install. It doesn’t appear to have been updated since release in 2016 and there’s now an issue with it.

I found that switching from 5x to 6x (or at least 6.2x) breaks the plugin with a variable [NAME] not found.

This occurs in the loop to build the table of log files which loops over arguments.req.logfiles. The error occurs in the loop on all variables in the loop because they are not fully scoped.

so just change the file

lucee/tomcat/lucee-server/context/context/admin/plugin/loganalyzer/overview.cfm

and change
<td class="tblContent">#name#
to
<td class="tblContent">#arguments.req.logfiles.name#"

#size# to #arguments.req.logfiles.size# etc for all the variables.

And it works as intended.

1 Like