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

[Enhancement] Improve this error message by appending two checks: form security failed because of a token mismatch #22784

Open
atom-box opened this issue Nov 21, 2024 · 1 comment
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. triaged

Comments

@atom-box
Copy link
Contributor

atom-box commented Nov 21, 2024

When this error occurs in the client browser:
The form security failed because of a token mismatch. Please reload the form and check that your cookies are on
Part of the error message could the following:

  1. In the browser, check whether cookies are on. Just run this and modify the error message:
if (navigator.cookieEnabled) {
    console.log("Cookies are enabled.");
} else {
    console.log("Cookies are disabled.");
}
  1. In the backend send a check for SSL (a cause of this error). The logic already exists: it is part of Matomo's System Check, in the Admin >> Diagnostics

This is a high frustration error for users as it keeps them logged out of their Matomo. Recently a team of 5 users, staring down a promised deadline, were all locked out for 5 days and 5 emails because of this error.

@atom-box atom-box added Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. To Triage An issue awaiting triage by a Matomo core team member labels Nov 21, 2024
@atom-box atom-box changed the title [Enhancement] Improve this error message by appending the result of a client side cookie settings check [Enhancement] Improve this error message by appending two checks: form security failed because of a token mismatch Nov 21, 2024
@MatomoForumNotifications

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

https://forum.matomo.org/t/cant-log-into-matomo/52251/5

@randy-innocraft randy-innocraft added triaged and removed To Triage An issue awaiting triage by a Matomo core team member labels Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. triaged
Projects
None yet
Development

No branches or pull requests

3 participants