Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Invalid CSRF token. Send the form again. Adminer

Tags:

adminer

I am getting this error on export of my database in adminer. Error: Invalid CSRF token. Send the form again. If you did not send this request from Adminer then close this page. Need Help

like image 950
RamanSall Avatar asked Jul 11 '16 07:07

RamanSall


People also ask

What does the CSRF token is invalid Please try to resubmit the form mean?

Invalid or missing CSRF token This error message means that your browser couldn't create a secure cookie, or couldn't access that cookie to authorize your login. This can be caused by ad- or script-blocking plugins, but also by the browser itself if it's not allowed to set cookies.


2 Answers

The problem for me was that the session cookie had the secure flag, while I was accessing adminer via http only (not https).


Our nginx configuration had

fastcgi_param HTTPS on;

which I had to remove.

like image 171
cweiske Avatar answered Sep 18 '22 05:09

cweiske


Try this!

chgrp nginx /var/lib/php/session

The problem may cause by session save path not writable. I have faced the same problem and I fixed it by above command. I use nginx but if you use another web server, just change it. Hope this helps!

like image 25
wdetac Avatar answered Sep 19 '22 05:09

wdetac