@courtens opened this Issue on November 6th 2022

I have 5 sites in Matomo, but site ID 2 is always producing a 500 POST error on the page Visitors > Locations.


And, also, for almost always, on Dashboard > Visits in real-time


Warning: the module=Live&action=widget&widget=1&disableLink=0&idSite=2&period=range request failed!

Uncaught (in promise)
Object { readyState: 4, getResponseHeader: getResponseHeader(a), getAllResponseHeaders: getAllResponseHeaders(), setRequestHeader: setRequestHeader(a, b), overrideMimeType: overrideMimeType(a), statusCode: statusCode(a), abort: abort(a), state: state(), always: always(), then: then(), … }

I did notice that if I reduce the date range to fewer days:

The error goes away on Visitors > Locations; but it is back, with a normal range; such as:


Please note that I am not getting this error with any of the other sites!

This link provides further information https://forum.matomo.org/t/oops-there-was-a-problem-during-the-request-failed-to-write-cache-file/47390/21

@peterhashair commented on November 6th 2022 Contributor

@courtens I read the original forum, and it seems like this is caused by a tracking URL containing special/broken characters. It may be the same issue https://github.com/matomo-org/matomo/issues/18763

@MatomoForumNotifications commented on November 7th 2022

This issue has been mentioned on Matomo forums. There might be relevant details there:


@peterhashair commented on November 9th 2022 Contributor

ping @sgiehl any suggestion on that one?

@sgiehl commented on November 10th 2022 Member

I haven't read the forum post in detail. Might be helpful to get the exact response content of the failing request (if any) or maybe a error message from the error log. Otherwise it's hard making a guess where the problem is.

@courtens commented on November 21st 2022

Without chasing after error-logs I just ran across the use of a Zero-width-space (​) in the code. Maybe using such a character in the title is what is tripping out matomo.

@sgiehl commented on November 22nd 2022 Member

@courtens I've tested tracking a zero width space locally, and for me that works without issues. Visits log is showing the visit correctly.

Powered by GitHub Issue Mirror