PHP.INI - max_input_vars variable & woocommerce

  • Posted on November 11, 2014
  • GreigAsked by Greig


I’m having issues with a WP 4 install, and Woocommerce. I’m trying to set up an ecommerce site to help some friends who run a photography/framing business.

Their products have a vast number of variables - frame size, depth etc and there are >200 permutations an image can be ordered in.

As a result, woo commerce needs to be set up with variable products for all these permutations, and as I add these, the values put into the fields are not saving in the product setup.

Searching WooCommerce support, the suggested resolution is to edit php.ini to change:

; max_input_vars = 1000``` 

Ive changed this variable to 6500, after the suggestion of other users.  The server has been rebooted, and the apache2 service restarted.  

They have also recommended installing the WP Max Submit Protect plugin, which is designed to help troubleshoot these issues. 

However - on installing the plugin, it reports that the currently set value for max_input_vars is 1000 (the default) and not the 6500 I have changed this to. 

Has anyone any experience with this or can suggest why the change doesn't appear to have been implemented?  I still have issues saving the products. 

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

@Greig you said have had rebooted your server, and restarted the apache2 service.

May I ask, how can? I mean, after initializing the Console, the order: service mysql restart restart the server, but what should I write in order to restart the apache2?

Still new on this and trying to figure out how it works

thanks @kamaln7 for your help. It was exactly what I was looking for

The variable is commented by default – you will need to uncomment it (delete the semicolon) for it to take effect:

max_input_vars = 6500

Also make sure the file that you’re editing is /etc/php5/apache2/php.ini on Ubuntu/Debian or /etc/php.ini on CentOS/Fedora.