Posted: February 23, 2016 at 3:27 am
|
Hello, I’m getting the this error in my install: I have increased max vars in user.ini (I’m on GoDaddy Managed WP server) to 6000. EE4 Version: Event Espresso – 4.8.33.p Any additional insight is appreciated. Thanks! |
Hi Christine, We’ve seen it before were the sites theme added over 12,000 inputs into the page (yes really!) so can you first go to the event editor where this error is being thrown, open up Chrome dev tools and search for ‘input’ in the elements tab – http://take.ms/hpFM6 How many instances do you find? |
|
|
1735 |
Thank you. So EE pulls the max input vars directly from your server using Can you go to Event Espresso -> Maintenance -> System Information. Search for max_input_vars and check the value shown, what does it say? On the event that shows the notice, if you save, then add 1 additional ticket and save again, does the ticket stay or is it removed? |
|
|
Hello, The event allows me to change information and add new tickets and everything, and yes and it saves. Basically the error comes up, and I click outside the box and keep editing. While its more of a bother for me, its causing my client a lot of frustration, they’re not technically savvy enough to navigate around it… Thanks! |
In your initial reply you mentioned you’d changed this to 6000, are the changes within user.ini not being applied? You’ll want at least 3000 to give yourself some extra vars just in case. So max_input_vars right now is 1000 and the vars on the page are working, so likely your theme (or another plugin) is adding a lot of inputs later on within the editor. The tickets etc are still working as they are loading before the options. If the changes within user.ini are being applied you may need to contact your host and have them up the limit for you. You can chang the value through php.ini, user.ini (if the host allows) or though .htaccess, so you could use something like:
to the .htaccess file within the WordPress root directory and see if that works. The above should work, however as mentioned you may be better contacting your host and see what they recommend as it does depend on server setup. |
|
|
I did contact my host and they are the ones who set up the user.ini file for me, with those variables set to 6000. The EE system doesn’t seem to be recognizing them though, and its been 24 hours so I don’t think its a cache issue. Is there a way to “clear to cache” on the plug in? Or manually override what the plug in says? |
There is no internal caching that would effect this, its not that EE is not recognizing the change, the information within: Event Espresso -> Maintenance -> System information Which shows your current max_input_vars settings is actually the output from the function phpinfo() and is direct from your server, not EE. The notice that shows up on the editor uses ini_get() to get the value from your current PHP runtime environment so again is direct from your server. So this means that the user.ini changes are not taking effect. Its not that you need to wait for any caching to clear (there is none) but that the changes simply have not been applied. Your host may need to restart apache for the changes to take effect, or possibly the changes from user.ini are only taking effect within the directory that file is within (which is odd but we’ve seen happen previously) Did you try adding the code above to the .htaccess file? One way to test this is to create a test.php file which contains:
and placing that within /wp-content/plugins/ and navigating to that file to view the output (make sure you delete the file when finished), check there for max_input_vars. It is likely it will still show 1000 which again means the changes have not actually been applied. Either way I would recommend contacting your host once again and have them check if the changes actually applied (they can use the method above). |
|
The support post ‘Error: "The number of inputs on this page has been exceeded. You cannot add…"’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.