Skip to content

Cookie settings

Choose which kinds of cookies you allow. You can change your choice at any time via Cookie settings at the bottom of every page. Privacy statement

Necessary

Always on

Needed to log in, keep your cart and remember your choices. These are always on.

Which cookies?
  • weboke_sessie, weboke_klant, weboke_remember: your session and staying logged in
  • weboke_basket: your cart
  • wkBtwIncl: showing prices with or without VAT
  • wok_cookies: your cookie choice, 12 months

Measures which ad leads to a visit or order, so we do not pay for ads that do nothing.

Which cookies?
  • Google Ads via Google Tag Manager (_gcl_au, _gcl_aw), up to 90 days
  • OpenAI Ads, ads in ChatGPT
  • wok_aff: which partner referred you to us (affiliate programme), 60 days

4.6

Country and language

Each country has its own site, with prices and VAT for that country.

View

Variations or menus are not being saved: increase max_input_vars

You're editing a product with many variations, or a large menu in WordPress, and you click Update. You don't see an error message, but after reloading, part of your changes is gone: the last variations have their old price, or items are missing from the bottom of the menu. The cause is almost always the PHP setting max_input_vars.

What is max_input_vars?

When saving, your browser sends all the fields of the form to the server at once. For a variable product, that means many fields per variation: price, stock, SKU, weight and more. For a large menu, each menu item counts a number of fields. PHP only accepts a certain number of fields per request: that's max_input_vars. PHP itself defaults to 1000. If more fields come in, PHP drops the rest without any warning. WordPress and WooCommerce then only save what did come through.

WooCommerce shows 15 variations per page in the admin to limit this. With many attributes and fields you can still hit the limit.

Checking your current value

  • In WooCommerce: WooCommerce > Status, under PHP Max Input Vars.
  • In DirectAdmin: Select PHP version, tab Options, under max_input_vars.

Increasing max_input_vars with WebOké

  1. Log in to DirectAdmin: in My WebOké, go to My Products and click DirectAdmin next to your hosting package.
  2. Under Extra Features, click Select PHP version.
  3. Check that the version your site uses is selected. Options are set per PHP version.
  4. Go to the Options tab, click the value next to max_input_vars and choose a higher value, for example 3000 or 5000.
  5. The change is saved immediately and applies to all sites in your package using that PHP version.

If the PHP version is set to native, you can't change anything under Options. In that case, choose a fixed version first. For an explanation with screenshots, see PHP options: upload_max_filesize, memory_limit and max_execution_time and Changing PHP version and PHP settings (and what to do about errors after an upgrade).

Rather not look this up yourself? The AI assistant in My WebOké can adjust max_input_vars for you for the PHP version your package uses. You'll see what changes first and approve it yourself.

Checking whether it works

  1. Check under WooCommerce > Status whether the new value is there.
  2. Is the old value still showing? Check whether your .htaccess has an old php_value max_input_vars rule, or whether a custom value for your domain has been set under PHP Settings in DirectAdmin. Those take priority. See PHP Settings in DirectAdmin or Select PHP version: what's the difference?
  3. Edit the product or menu again, save, and check after reloading whether everything has been kept. Anything already lost will need to be filled in again.
A higher limit fixes the symptom, fewer fields fix the cause. Only create variations you actually sell, instead of letting every combination be generated. A property that doesn't change price or stock, such as engraving text, is better offered as a product option rather than a variation. Don't set the value to the maximum "just to be safe".

Further reading

Was this article helpful?

← Back to General hosting

One moment…

Set up your domains

For each domain, arrange the nameservers, the link to your hosting and who becomes the owner.

Loading your domains…