Views and download of articles are not counted anymore since upgrade OJS 3.1.2

Hi @ctgraham,

I still have the same problems. I tried to looking for what happened when I execute the scheduledTasks commands by displaying some messages in the code step by step:

When I execute the command:
php tools/runScheduledTasks.php plugins/generic/usageStats/scheduledTasks.xml
I have this error:
PHP Fatal error: Cannot redeclare geoip_country_code_by_name_v6() in /ojs_home/plugins/generic/usageStats/lib/geoIp/geoip.inc on line 430

I found the error occurs when in file :
/ojs_home/plugins/generic/usageStats/UsageStatsLoader.inc.php
this command line is executed:
$geoLocationTool = $statsHelper->getGeoLocationTool();
I found that function “getGeoLocationTool()” is called in this file:
/ojs_home/lib/pkp/classes/statistics/PKPStatisticsHelper.inc.php
And the error occurs after this command line is executed:
$geoLocationTool = $plugin->getGeoLocationTool();

When I execute the command:
php tools/runScheduledTasks.php plugins/generic/usageStats/scheduledTasksAutoStage.xml
Nothing happens
I found that in the following file:
/ojs_home/lib/pkp/classes/cliTool/ScheduledTaskTool.inc.php
In function “parseTasks”
When “$frequency” variable is tested, it has got a value, and this value is tested with this function:
$canExecute = ScheduledTaskHelper::checkFrequency($className, $frequency);
The checkFrequency “function” is included in this file:
/ojs_home/lib/pkp/classes/scheduledTask/ScheduledTaskHelper.inc.php
“$frequency” variable is an array which not contains month or day. But it contains an hour value of “0” which is consider not valid:
[attributes] => Array([hour] => 0)
That’s the reason why, “$canExecute” variable is false and nothing is execute after

Do you have any idea why in the 1st command, the call of “plugin->getGeoLocationTool()” command generates the following error ?:
PHP Fatal error: Cannot redeclare geoip_country_code_by_name_v6() in /ojs_home/plugins/generic/usageStats/lib/geoIp/geoip.inc on line 430

And why in the 2nd command, the presence of the “hour” parameter with the value “0” in “$frequency” variable generates an error ?
Where does the “hour” parameter come from? And where can I change it ?

Thanks again for your help.
Kind regards.
Helene