New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VisitsSummary - Empty results in weeks where a month change ocurrs #11799
Comments
Larger dataset. I can't seem to find a pattern. By "day":
By week:
|
Anyone? |
Looking through the data again, it seems to be happening when the results range contains a month change: 2016-11-28,2016-12-04 Could you at least point me to the files responsible for this functionality? |
Hi @elpendor Thank you for the report! If this issue is confirmed, we will definitely address it.
Do you maybe manage to reproduce this issue on https://demo.piwik.org , If so please post the URLs & steps to reproduce? that would be very helpful |
I think I know what's the problem is (or at least the source). I've been importing old logs and running archive.php after each import. I've removed the archive tables and reprocessed the logs via:
And the problem seems to be gone now. I'm guessing archive.php is not supposed to be used for old logs, just the cron jobs? |
As long as your logs are imported in chronological order then it should work? becausewhen importing log data in the past, we automatically invalidate the archives for those days and periods and the core:archive re-processes them at the next run. |
I seem to be getting wrong results when I get user count and "week" period.
https://piwikinstance/?module=API&language=es&token_auth=xxxxxxxx&method=VisitsSummary.getUsers&idSite=xx&date=2017-05-16,2017-06-16&period=day returns:
But https://piwikinstance/?module=API&language=es&token_auth=xxxxxxxx&method=VisitsSummary.getUsers&idSite=xx&date=2017-05-16,2017-06-16&period=week returns:
Is this a bug or am I doing something wrong?
The text was updated successfully, but these errors were encountered: