PHP max input vars question

Support Meta Box AIO PHP max input vars question

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #49147
    Filippo PonzettiFilippo Ponzetti
    Participant

    Hi all,

    I know that the PHP max input vars value was something that needed to be changed to higher values than the standard one (Usually 2500 or less) to avoid weird cpt disappearing issues.

    Is this still the case?

    I have to work on a server that doesn't allow a PHP max input vars value higher than 1000.

    Cloud be this still an issue even with the latest Metabox version?

    Many thanks in advance for any help.

    Best,
    Filippo

    #49150
    PeterPeter
    Moderator

    Hello Filippo,

    Thanks for reaching out.

    Can you please share some screenshots or a screen record of "cpt disappearing issues"? The setting PHP max_input_vars is mostly related to the field value not being saved to the database. I've not experienced this setting with a post of CPT.

    #49155
    Filippo PonzettiFilippo Ponzetti
    Participant

    Hi Peter,

    Thanks for your reply.

    I apologise if my post wasn’t clear.

    I don’t have any issues with “cpt disappearing issues”, but I remember several posts about cpts not saving and other issues related to the PHP max_input_vars. Your advice was to increase its value.

    My real question is, is it safe to work with a PHP max_input_vars of 1000? Could this potentially lead to data loss or other problems?

    Thanks again for your help.

    Best,
    Filippo

    #49160
    PeterPeter
    Moderator

    Hello,

    It depends on how many custom fields or other input variables are on the editing page when you save the post. If you have a few fields, it is ok to work with a value of 1000. Otherwise, some custom fields won't save the value to the database. You can read more about this PHP setting in the article
    https://metabox.io/wordpress-custom-fields-not-saving-increase-max-input-vars/

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.