cancel
Showing results for 
Search instead for 
Did you mean: 

Invalid security or form key Please refresh the page.

Invalid security or form key Please refresh the page.

Hello Community,

I am getting error on saving the product on particular store view in admin and except for one store view is working fine . Steps to reproduce the error:

1. go into admin - catalog - products
2. select a random product
3. change to any store view
4. save product

its Redirecting to dashboard and Getting error screenshot
Looking forward to hear from anyone asap.
Thanks for your help
balsingh

3 REPLIES 3

Re: Invalid security or form key Please refresh the page.

@balsingh 

 

This is not an issue, Just refresh your page and try it again by saving products it will work. Form key is not valid so you redirected to dashboard. Please let me know if you still redirect to dashboard. 

 

Or try by increasing values in php.ini

max_input_vars = 200000
max_input_time = 600
max_execution_time = 3600
Manish Mittal
https://www.manishmittal.com/

Re: Invalid security or form key Please refresh the page.

Hi @balsingh 

 

I understand the problem you are facing! It seems like a configuration issue because I have tested the steps given by you on the vanilla version of Magento and its working well.

 

To resolve this issue, i would suggest you to increase the value of  php_value max_input_vars to 18000 from your php.ini file

 

Then clear and flush cache by running the following commands :

php bin/magento cache:clean

php bin/magento cache:flush

 

Refer this link for more details - https://www.simicart.com/blog/magento-2-invalid-form-key/ 

 

Hope it helps !

if issue solved,Click Kudos & Accept as Solution

Re: Invalid security or form key Please refresh the page.

thanks