Apache-Error-Log: OJS usage statistics report

When clicking OJS usage statistics report i get the following entry in apache’s error-log

[Thu Oct 29 12:02:59.304466 2015] [:error] [pid 22072] [client ...] ojs2 has produced an error\n  Message: WARNING: Missing argument 2 for ReportPlugin::display(), called in /var/www/html/ojs-2.4.7_neu/plugins/generic/usageStats/UsageStatsReportPlugin.inc.php on line 57 and defined\n  In file: /var/www/html/ojs-2.4.7_neu/classes/plugins/ReportPlugin.inc.php\n  At line: 200\n  Stacktrace: \n  Server info:\n   OS: Linux\n   PHP Version: 5.5.9-1ubuntu4.11\n   Apache Version: Apache/2.4.7 (Ubuntu)\n   DB Driver: mysql\n   DB server version: 5.5.44-0ubuntu0.14.04.1, referer: http://ub-ojs.ub.unibas.ch/index.php/cdrs_0277/manager/statistics?statisticsYear=2015

When I checked in /var/www/html/ojs-2.4.7_neu/classes/plugins/ReportPlugin.inc.php I saw that only one Argument was handed over and “@param $request Object The PKP Request object initiating the call” was missing. Maybe that’s a bug?

I concur. I initially looked at this in [OJS] ReportPlugin::report() parameter implementation is inconsistent · Issue #253 · pkp/pkp-lib · GitHub .

I’m not entirely convinced $request should be passed along the whole chain rather than just instanciated as needed for TimedViewReportPlugin, but we’re a little far down that rabbit hole to go back now.

https://github.com/pkp/pkp-lib/issues/848