Magento2: M2.1 "Invalid Form Key" when saving configurable product with multiple configurations

Created on 1 Jul 2016  路  7Comments  路  Source: magento/magento2

When I try to create or edit configurable product that has multiple simple products in configurations, Magento returns "Invalid Form Key. Please refresh the page." error. Of course refreshing the page, clearing cookies, cache, nothing works. When I limit number of configurations to a lot less (for example 4) same form comes trough just fine. This issue was not present on 2.0.7 I was able to save configurable products with multiple configurations.
1_2_ct _t w _diamond_ladies_engagement_ring_14k_white_gold_products_inventory_products_magento_admin_-_2016-07-01_14 00 11
1_2_ct _t w _diamond_ladies_engagement_ring_14k_white_gold_products_inventory_products_magento_admin_-_2016-07-01_13 59 34

Format is not valid

Most helpful comment

Magento 2.2.3 and I have tried increasing max_input_vars in php.ini, I have cleared var/cache, browser cache, Magento cache, verified that for my magento.conf and magento-ssl.conf that both are using the same domain, removed domain cookies. Still, get the error when trying to edit an existing product. But, I can create new products without any issue.

Will to share hitting my head on the wall if anyone is interested.

All 7 comments

The solution is to increase max_input_vars in php.ini file. not a Magento 2 issue.

I tried increasing PHP input to 7500 and it still doesn't work in Magento 2.1

use php_value[max_input_vars] = 10000
instead of max_input_vars

This does not work

max_input_vars on php.ini worked for me on Magento 2.1.6

It does not work in Magento2.2.2

Magento 2.2.3 and I have tried increasing max_input_vars in php.ini, I have cleared var/cache, browser cache, Magento cache, verified that for my magento.conf and magento-ssl.conf that both are using the same domain, removed domain cookies. Still, get the error when trying to edit an existing product. But, I can create new products without any issue.

Will to share hitting my head on the wall if anyone is interested.

Was this page helpful?
0 / 5 - 0 ratings