Old statistics not shown

Sorry to resurrect this after sooo long, but this impacts in counter statistics too and today I found the solution.

@NateWr, I lied to you because looking into the logs I found they were http so looks like base_url changed from “http” to “httpS”.

If somebody else fall in same hole:

  1. Check your archived logs (older vs newer ones) and confirm the URI (url including the protocol) is the same.
  2. Backup your old logs and replace uris to the right name. For example:
$ find . -name '*.log' -exec sed -i -e 's/http:\/\/atheneadigital/https:\/\/atheneadigital/g' {} \;

  1. Move log files from archive to stage.
  2. Reprocess as follows:
$ php tools/runScheduledTasks.php plugins/generic/usageStats/schedu
ledTasks.xml
2 Likes