Sometimes, when refreshing a page, users occur errors like Error: Token Mismatch
or Uncaught ReferenceError: ... is not defined
because phpMyAdmin does not initialize properly. When navigating from one page to another this problem does not occur because a part of the old session is being preserved.
For example, if I refresh a "Browse" page I get the errors you can see in the attached screenshot. I think that one error is the cause for the other one.
In my situation, CodeMirror
is required, but it does not exist so it tries to send an error report via error_report.php
. A valid error report requires a token that has not been set yet because PMA_commonParams.setAll({"token": ... })
is called after.
Fixed with https://github.com/phpmyadmin/phpmyadmin/commit/57e21caab1eb1fff11c4f79501a9b8dd94dd91d8