Lucas JD
Lucas JD

Reputation: 121

PhpMyAdmin Error: Mismatch Token

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?

Upvotes: 8

Views: 52214

Answers (8)

yab86
yab86

Reputation: 405

Had the same problem. Solved it by changing following:

$token_mismatch = true;

to

$token_mismatch = false;

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

Upvotes: 3

Onnonymous
Onnonymous

Reputation: 1470

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/

Upvotes: 0

nuke_infer
nuke_infer

Reputation: 63

To resolve, try the following:

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

Does this help?

Upvotes: 0

Roshan Padole
Roshan Padole

Reputation: 408

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

Upvotes: 1

PAVITRA
PAVITRA

Reputation: 861

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

Upvotes: 0

kbhatta
kbhatta

Reputation: 457

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 :)

Upvotes: 2

Teemu
Teemu

Reputation: 121

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

Upvotes: 0

Conrad Lotz
Conrad Lotz

Reputation: 8828

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.

Upvotes: 3

Related Questions