hoy
(@whereskarlo)
I have the exact same problem. Everytime a product is updated the variations reset. I then have to set them again and update a second time for them to stick.
hoy
(@whereskarlo)
Adding a comment to receive updates on this issue. It was there in both 2.1.6 and 2.1.7. Strangely enough, a friend’s fresh install of 2.1.7. does not have this problem.
Do you use any caching plugin by any chance?
I do not. I’ve been going back to re-enable the variable and then update the it never seems to stick.
To answer my own question, this is not a problem with Woocommerce. Either contact your host or if you know how to find your PHP.ini file on your host, and then add the following “max_input_vars = 50000”. What is happening and why it is unchecking itself is because PHP can only POST and GET up to a 1000 fields by default. Use this plugin to see how much your site can POST and GET.
Alternatively, you can add the following into your htaccess file
php_value max_input_vars 50000
if you can not access your PHP.ini file. Since I have a large amount of variables, I was trying to submitted up to 9000 forms which is obviously WAAAAYYY over 1000. Hope this helps anyone in the future that stumbles upon the same issue when dealing with large amounts of variables.
Enjoy!
Marking this as resolved as well.