@tsteur opened this Issue on May 16th 2022 Member

I have the visits log & profile disabled in the site:

image

In a dashboard I have the "Visits in Real-time" widget.

This shows below error

image

Expected:

Show a nice error message saying this visitor is disabled and that an admin can enable it.

Background

This is the request that fails

image

The response includes the correct message. But Matomo doesn't show it and instead replaces it with a generic one

image
@sgiehl commented on May 16th 2022 Member

@tsteur Shouldn't we simply disable the widget if visits log & profile are disabled?

@tsteur commented on May 16th 2022 Member

@sgiehl disable the widget when the feature is disabled for a site would work too 👍

@sgiehl commented on May 17th 2022 Member

Actually it seems the widget should already be disabled if the visits log was disabled. Just tested that locally and the widget isn't shown anymore, even if it was added to the dashboard before. It for sure might fail if a dashboard is opened and you disable the visits log in another tab.

@tsteur commented on May 18th 2022 Member

👍 I'll close it again as I now can't reproduce it either. Maybe some caching or so. It's been disabled for days though and I had reloaded the page a few times and the error still showed up. I'll re-open if I see the error again.

This Issue was closed on May 18th 2022
Powered by GitHub Issue Mirror