Hi
I’m using OJS version 3.1.2-1
When generating a custom statistics report I get a warning then an error see error log below. The result is just a blank page with a 500 error.
If this is a permission error which directory would this be writing too? It already has write permissions to the cache directory so I’m a bit confused.
[Wed Jan 15 12:14:50.437308 2020] [php7:warn] PHP Warning: file_put_contents(cache/fc-pluginSettings-0-defaultthemeplugin.php): failed to open stream: Permission denied in lib/pkp/classes/cache/FileCache.inc.php on line 90
PHP Fatal error: Uncaught Error: Cannot use object of type stdClass as array in classes/statistics/MetricsDAO.inc.php:34
Stack trace:
#0 plugins/generic/usageStats/PKPUsageStatsReportPlugin.inc.php(84): MetricsDAO->getMetrics(‘ojs::counter’, Array, Object(stdClass), Array, NULL)
#1 plugins/generic/usageStats/OJSUsageStatsReportPlugin.inc.php(32): PKPUsageStatsReportPlugin->getMetrics(‘ojs::counter’, Array, Object(stdClass), Array, NULL)
#2 /lib/pkp/pages/management/PKPToolsHandler.inc.php(208): OJSUsageStatsReportPlugin->getMetrics(‘ojs::counter’, Array, Object(stdClass), Array)
#3 /lib/pkp/pages/management/PKPToolsHandler.inc.php(64): PKPToolsHandler->generateReport(Array, Object(Request))
#4 /lib/pkp/classes/core/PKPRouter.inc.php(390): PKPToolsHandler->tools(Array, Object(Request))
#5 /lib/pkp in /classes/statistics/MetricsDAO.inc.php on line 34, referer: /management/tools/reportGenerator