• yanivtevel

    (@yanivtevel)


    Hi,
    I’m runing a multisite with large number of custom fields and hosting the sites on a VPS with Ubuntu 16.04. At some point i wasn’t able to save more custom fields (There was no error) so i increased Max_Input_Vars in php.ini from 1000 to 6000 and that solve the problem and i proceeded to add more custom fields. Few days ago i suddenly wasn’t able to save more custom fields again in main site (in another site i was able), so i tried to increase the Max_Input_Vars in php.ini to range of numbers started from 7000 till 20000 but with no success. My hosting support said that there is no limit for this value on my server because it’s a VPS and said maybe it’s a limit of wordpress PHP.
    My question is if there a final limit of Max_Input_Vars that wordpress can handle?
    If not what can be the cuase that the additional cutom fields no more saved?

Viewing 3 replies - 1 through 3 (of 3 total)
  • mdshak

    (@mdshak)

    Hi,
    This issue can also occur due to a program called Suhosin which runs on your server. This is a known issue with WordPress. In most cases, the solution is as simple as asking your host to increase the max_vars variables in your php.ini.

    suhosin.post.max_vars = 20000
    suhosin.request.max_vars = 20000

    Thanks
    Mohammad

    Thread Starter yanivtevel

    (@yanivtevel)

    Thanks for your answer.
    Since i have a VPS (Virtual Private Server) i have a full access to php.ini file.

    I can’t find in php.ini file :

    suhosin.post.max_vars = 20000
    suhosin.request.max_vars = 20000

    Any idea?

    mdshak

    (@mdshak)

    Hi,
    You cant find but you can insert into php.ini. Anyway how many custom fields are created by you?
    Thanks
    Mohammad

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Final Limit of Max_Input_Vars’ is closed to new replies.