0

I need to adjust the default server value for Max Input Vars on a website>

Writing ini_set('max_input_vars', 3000) on a script does not work

Adding the following to .htaccess makes the whole site go blank

php_value max_input_vars 1000
php_value suhosin.post.max_vars 1000
php_value suhosin.request.max_vars 1000

We dont have access to the ini file.

Is there a way round this at the script level?

bodesam
  • 529
  • 4
  • 9
  • 24
  • 2
    The `max_input_vars` setting is [`PHP_INI_PERDIR`](http://php.net/manual/en/configuration.changes.modes.php), which means it cannot be set via `ini_set`. The site going blank with the `.htaccess` means a useful error message is sitting in the logs - find it and fix. – ceejayoz Apr 28 '17 at 15:20
  • 1
    why having so many vars? just group them … in a data structure. – vv01f Apr 28 '17 at 15:21
  • Possible duplicate of [PHP max\_input\_vars](http://stackoverflow.com/questions/10303714/php-max-input-vars) – CD001 Apr 28 '17 at 15:21
  • The wordpress theme requires that setting for it to work. – bodesam Apr 28 '17 at 16:31

0 Answers0