Support » Plugin: Content Control - User Access Restriction Plugin » Why I cannot add more than 2 content condition?

  • Resolved susanhsun

    (@susanhsun)


    Hei
    I can add 2 conditions to the content tab, but the 3rd condition cannot be added.
    When I click on ‘Add’, it does give me the file, but cannot select anything from it or type anything there.
    Can you help quickly?
    I can also provide a screen recording if I can uploade it somewhere

    Best regards,
    Susan

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support mark l chaves

    (@mlchaves)

    Hey @susanhsun,

    Thanks for reaching out. We’re sorry you can’t add more than 2 conditions in the content tab.

    We’ve seen this issue happen when a website’s max_input_vars is set too low. Can you watch this video that shows you how to check that setting?

    If your max_input_vars is too low, you’ll need to ask your hosting provider to increase it to 3,000 or 4,000. Always confirm that the increase is done before trying it again.

    If that doesn’t fix it, please send us a help request at the link below so we can take a closer look.

    https://code-atlantic.com/contact-us/

    Cheers!

    Thread Starter susanhsun

    (@susanhsun)

    My max_input_vars is 1000. Is it too low?
    I also found a workaround: I can create more restrictions and each one has only 2 conditions.
    Will this workaround cause any problems? Will it slow down my site?

    Plugin Support mark l chaves

    (@mlchaves)

    Hi @susanhsun,

    Thanks so much for the follow-up.

    We recommended earlier that you ask your hosting provider to increase your max_input_vars to about 3,000 to 4,000. So yes. 1,000 (as mentioned in the video also) is too low.

    That’s great you found a workaround 🙂 However, having a low max_input_vars setting will limit all plugins and WordPress settings (not just Content Control settings). So, you’ll need to increase your limit sooner or later. As we say in the video, we’ve seen plugins and themes recommend at least 2,500 upwards to 4,000. Again, 1,000 is too low these days.

    For your workaround, if you only have a few restrictions (say less than 10), the performance impact should be negligible. If you have 10 or more, you should run some performance tests to gauge how more than 10 restrictions affect your site.

    We hope that helps.

    Let us know if you need anything else.

    Have a great day 🙂

    Mark

    Plugin Author Daniel Iser

    (@danieliser)

    @susanhsun Hmm, there are no limits on the number of conditions. In fact there was a bug a while back where you could add 20 conditions but only 10 would save. That is fixed and there shouldn’t be limits.

    Might also be worth checking if you have any JavaScript errors in your browsers console while on that page: https://docs.wppopupmaker.com/article/373-checking-javascript-errors

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Why I cannot add more than 2 content condition?’ is closed to new replies.