I have been using Matomo with Wordpress for nearly a year with no issues. I have the latest version of Wordpress and Matomo plugin installed.
When clicking on “reporting”, the dashboard page attempts to load. The header loads at the top of the page, followed by a red bar across the top that says “Token is not valid”. The rest of the page remains blank. All other links (tag manager, settings etc. all report the same error.
Matomo is tracking visits and the summary page works fine and shows recent data, but the reporting page will not load any data.
Here are things I have already tried:
- Cleared browser cache. Log out/back in
- Tried several different browsers - same results.
- Matopmo System Report - no errors or warnings
- Matomo Diagnostics - cleared cach, sync users, sync site, run updater
When looking at the browser console inspector I see the following errors:
Refused to execute script from ‘https://xxxx.com/’ because its MIME type (‘text/html’) is not executable, and strict MIME type checking is enabled.
Possibly unhandled rejection: Token is not valid.
(anonymous) @ asset_manager_core_js.js?v=4.0.5?cb=5d790bb576dee577218a2d14bff3098d:200
Thanks in advance for any suggestions. This has been very frustrating and google searches have not yielded anything helpful.