1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

1.5.10 - Enable/Disable Listener Security Error

Discussion in 'Troubleshooting and Problems' started by Snog, Aug 30, 2016.

  1. Snog

    Snog Well-Known Member

    When enabling or disabling listeners from the main development listener list page, a security error happens. You have to go into the listener itself to enable or disable it.
     
  2. Snog

    Snog Well-Known Member

    At the moment this is only happening on my development server. I'll see if I can track down the problem.
     
  3. Chris D

    Chris D XenForo Developer Staff Member

    If you have a lot of listeners, and therefore a lot of inputs being submitted, you may well be hitting the max_input_vars limit in PHP.

    Increase this a suitable amount and the issue should go away.
     
    Xon and Snog like this.
  4. Snog

    Snog Well-Known Member

    Yep, that fixed it. Thanks Chris.

    Odd though. Don't see 1000 variables, but increasing to 2000 fixed it.
     
  5. Chris D

    Chris D XenForo Developer Staff Member

    For each event listener there is two inputs (one hidden, and then the checkbox itself). Then there is the _xfToken (which if missing causes the security error). If you have 500 or so code event listeners then you will exceed the limit.
     
    Xon and Snog like this.
  6. Xon

    Xon Well-Known Member

    That explains why I've been hitting it.

    At least it doesn't cause dataloss which can happen in Wordpress!
     
  7. Snog

    Snog Well-Known Member

    Yeah, after a couple of new add-ons and a couple of installs of other add-ons for testing I hit 576 listeners. I never thought of the x2 factor which means 1152 variables being passed not including the token.
     

Share This Page