PhpMyAdmin Error: Mismatch Token

陌路散爱 提交于 2020-01-11 04:54:04

问题


I've just recently been getting an error in my local installation on installed on apache on xampp. I'm running v4.0.5 of phpmyadmin. The error description is Error: Mismatch Token.

Has anyone else experienced this an found a fix for it?


回答1:


You can try the following

Find the XAMPP php.ini file and uncomment by removing the semi-colon:

session.save_path ="/tmp"

Then restart apache.




回答2:


Did you change anything in your apache server config files?

if not,

open browser, clear all history(ctrl+shift+del), and restart browser, go to phpmyadmin page.

it works for me :)




回答3:


Had the same problem. Solved it by changing following:

$token_mismatch = true;

to

$token_mismatch = false;

in \xampp\phpMyAdmin\libraries\common.inc.php




回答4:


I too came across a same issue. I tried many ways, like clearing cache, managing more space for my /tmp directory. But at last I solved this issue by removing the unwanted files from my server & managing free space on my server.

You can check here how I have done that. Error: Token Mismatch PhpMyAdmin Cpanel Solved




回答5:


Changing session.save_path in php.ini to "/tmp" worked for me, RedHat6.




回答6:


I had an extra "/" in my browser path. Removed that an it worked for me...




回答7:


To resolve, try the following:

Delete cookies from 127.0.0.1.
Try to reproduce the problem in a different browser.

Does this help?




回答8:


This error may appear if your website has a Content-Security-Policy header that is too restrictive.

This header caused the "Mismatch token" error for me:

content-security-policy: default-src 'self'; style-src 'self' 'unsafe-inline';

By adding script-src 'self' 'unsafe-inline'; the error disappeared:

content-security-policy: default-src 'self'; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline';

More info: https://content-security-policy.com/



来源:https://stackoverflow.com/questions/18358867/phpmyadmin-error-mismatch-token

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!