Support

Home Forums Community Forum max_input_vars limit error still occurring after host increased value

max_input_vars limit error still occurring after host increased value

Posted: July 21, 2016 at 12:49 pm

Viewing 8 reply threads


benjamin b

July 21, 2016 at 12:49 pm

It appears the new limit is active according to PHP info:
*redacted*/phpinfo.php
max_input_vars 6000 6000

However I’m still getting the error “The maximum number of inputs on this page has been exceeded. You cannot add anymore items (i.e. tickets, datetimes, custom fields) on this page because of your servers PHP “max_input_vars” setting.
There are 1000 inputs and the maximum amount currently allowed by your server is 1000.”

When trying to create a new ticket.

Any ideas? We urgently need to add new tickets to this event, please help asap if possible.

  • This topic was modified 8 years, 4 months ago by Josh. Reason: removed link to server details


Josh

  • Support Staff

July 21, 2016 at 12:59 pm

You can contact your host and see if they can investigate further. I’m going to remove the link you posted to the phpinfo, that’s definitely not something you want to be publicly viewable.


benjamin b

July 21, 2016 at 1:01 pm

Per the suggestion at: https://eventespresso.com/topic/max_input_vars-not-updating/
I swapped out the code in EE_Config.core.php and I now see the new error output but the numbers are still the same:

“The number of inputs on this page has been exceeded. You cannot add anymore items (i.e. tickets, datetimes, custom fields) on this page because of your servers PHP “max_input_vars” setting. Max_input: 1000, Current Vars: 1000″


benjamin b

July 21, 2016 at 1:03 pm

ok thanks… so even though php info is showing 6000 it’s possible it’s not php may still need to be restarted?


benjamin b

July 21, 2016 at 1:20 pm

Ok we’ve got it fixed! Also I just realized that replacement code I was hoping would give more details in the error output is essentially the same as what’s in the core now, that thread was before it was incorporated into the core.

Although the new limit was showing in phpinfo() it appears they had not actually restarted php.


Josh

  • Support Staff

July 21, 2016 at 1:22 pm

Yes it may need a restart or there’s another place on your server (like in an .htaccess file or another php.ini file) that’s setting the value locally.


benjamin b

July 21, 2016 at 2:06 pm

Ok just an update for anyone else encountering this. The php restart didn’t actually fix it, I though it did. After further digging I found we had an .htaccess file in our /plugins/ folder that was loading a different php.ini file. When I put the phpinfo.php in that folder I did see the old values still showing. We’ve now got a custom php.ini for that folder with the correct max input var settings.


benjamin b

July 21, 2016 at 2:07 pm

and I of course removed phpinfo.php from our server 🙂


Lorenzo Orlando Caum

  • Support Staff

July 22, 2016 at 6:47 am

Hello,

Could you confirm that you are able to update your events without the messaging for max_input_vars appearing in the event editor?


Lorenzo

Viewing 8 reply threads

The support post ‘max_input_vars limit error still occurring after host increased value’ 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.

Event Espresso