3

Magento 2.2.2 Product Edit with More than 25 options on Custom Options gets error Invalid Form Key. Please refresh the page? Can anyone help how to solve this issues? enter image description here

3

4 Answers 4

4

Open your server's php.ini file with root user, search for max_input_vars and set its value as 100000 and it will solve your problem.

max_input_vars = 100000
3

php.ini file variable max_input_vars increase it to 10000 through below php function

ini_set('max_input_vars', 10000);

OR Using Linux command line

cd /etc/php/7.0/apache2/
vi php.ini (Open for edit and set max_input_vars=10000)
:wq(Press esc and write the mentioned command to save and exit)
sudo /etc/init.d/apache2 restart(Restart Server)
1
  • Thank you for your reply. I have tried that but it's not working for me.
    – user53816
    Commented Jan 11, 2018 at 7:30
0

In php.ini set max_input_vars to 75000.

1
  • Thank you for your reply. I have tried that but it's not working for me.
    – user53816
    Commented Jan 11, 2018 at 7:31
0

Add: php_value max_input_vars 10000 to file .htaccess, I hope it can help someone!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.