Skip to content
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

Occasional Error message when Visitor Log is deactivate (regression) #20948

Closed
9joshua opened this issue Jun 29, 2023 · 4 comments · Fixed by #21176
Closed

Occasional Error message when Visitor Log is deactivate (regression) #20948

9joshua opened this issue Jun 29, 2023 · 4 comments · Fixed by #21176
Assignees
Labels
Bug For errors / faults / flaws / inconsistencies etc. Regression Indicates a feature used to work in a certain way but it no longer does even though it should.
Milestone

Comments

@9joshua
Copy link
Contributor

9joshua commented Jun 29, 2023

When the visitor log is deactivated for a website an error message can be seen at times...
image

In this particular case, the date range included the current date (related to live data?)

@9joshua 9joshua added Potential Bug Something that might be a bug, but needs validation and confirmation it can be reproduced. To Triage An issue awaiting triage by a Matomo core team member labels Jun 29, 2023
@michalkleiner
Copy link
Contributor

Hi @9joshua, can you provide more details about when the error appears? Is it when viewing a particular report only, e.g. the Goal as in the picture, or it appears elsewhere too?

@9joshua
Copy link
Contributor Author

9joshua commented Jul 2, 2023

@michalkleiner The issue affected another user and they were not able to reproduce it, nor was I.

@sgiehl
Copy link
Member

sgiehl commented Jul 3, 2023

Without looking too much into details I would assume this can happen here:
https://github.com/matomo-org/matomo/blob/5.x-dev/plugins/CoreHome/vue/src/ReportingPage/ReportingPage.vue#L276

If there are not visits, we check for raw data to consider which notification to show. If visits log is disabled that API method might throw an error, that is then possibly displayed.

Guess we need to check if visits log is enabled (piwik.visitorLogEnabled) or not before before calling this API method.

@sgiehl sgiehl added Bug For errors / faults / flaws / inconsistencies etc. and removed Potential Bug Something that might be a bug, but needs validation and confirmation it can be reproduced. To Triage An issue awaiting triage by a Matomo core team member labels Jul 3, 2023
@sgiehl sgiehl added this to the For Prioritization milestone Jul 3, 2023
@sgiehl sgiehl added the Regression Indicates a feature used to work in a certain way but it no longer does even though it should. label Jul 3, 2023
@9joshua
Copy link
Contributor Author

9joshua commented Aug 21, 2023

This can be reproduced by:

  • viewing a report that has no data
  • for a site which has the visitor log disabled
  • where the calendar period includes the current day (i.e. current month)

I think Matomo assumes that the disabling of the visit log produced the empty table, even if the reason is simply that no data exists for the requested table/period...
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc. Regression Indicates a feature used to work in a certain way but it no longer does even though it should.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants