Php_value[max_input_vars] works with PHP-FPM, not max_input_vars as stated

SYSTEM INFORMATION
OS type and version Debian Linux 11
Usermin version 2.400
Virtualmin version 7.40.1
Theme version 25.10
Apache version 2.4.65
Package updates 4 package updates are available

I post this to help those misled by:

The correct line to add would be:
php_value[max_input_vars] = 4000

and not max_input_vars = 4000 as stated in that otherwise informative discussion.

That post was from 2018 by now it should be disregarded as everything has moved on

You can also just use the GUI:

Is 4000 quite a high value?

Yeah, but that’s none of my business. (I leave it at the default, I just changed it in the screenshot to demonstrate.)

thanks for sharing this information

and I guess most do - but as with many screens not knowing what the “default” actually is provides little help.
but then I suppose it deters off-roading

Thanks Joe, I don’t know how I missed that.

Virtualmin rocks!

Man, I don’t know what else we can do here. You can also click it to get to the PHP help about this option.

1 Like

now you have me checking everywhere there is a “Default” to look for a ? tooltip :laughing:

I’ve asked Ilia to make it more obvious where tooltips are available (since not every option has a tooltip, though we’ve been trying to improve coverage). But yes, many things in Virtualmin have tooltips and sometimes the tooltip shows the default value, sometimes it’s a longer explanation of what the option does.

1 Like

Is there any easy place to add tooltips, I seem to remember there was. I have slept since.

It’s very easy to add tooltips.

Find the option name (the label in the HTML), and create an HTML file named <option_name>.html in the module help directory.

The HTML should be very simple and the text should be very concise, since it’s going to be a popup tooltip.

See examples here: virtualmin-gpl/help at master · virtualmin/virtualmin-gpl · GitHub

e.g. virtualmin-gpl/help/accesslog.html at master · virtualmin/virtualmin-gpl · GitHub

The help directory also contains the module help file(s) which is what you get when you click the help icon in the header. It’s all part of Webmin’s help system, which is searchable in a couple of ways/places.

If you have follow up questions, please make a new topic, probably in Developers. We, of course, welcome PRs to add or improve any documentation.

Edit: Also note that those PHP options are done differently, since they link to the PHP documentation rather than a local help file. That’s a special case, the vast majority of tooltips are local help files.

2 Likes

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.