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?

Asked
Active
Viewed 1,672 times
3
-
We also face the same issue. Please let us know if you find any solutions for that. – Emipro Technologies Pvt. Ltd. Jan 10 '18 at 10:11
-
1Sure I'll let you know if I find any solution for that. – Jan 10 '18 at 10:12
-
https://magento.stackexchange.com/questions/160829/magento2-invalid-form-key-please-refresh-the-page try this – Ravindrasinh Zala Jan 10 '18 at 11:42
4 Answers
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)
Ravindrasinh Zala
- 2,125
- 3
- 14
- 46
0
Add: php_value max_input_vars 10000 to file .htaccess, I hope it can help someone!
David Duong
- 803
- 1
- 11
- 37