Support

Home Forums Event Espresso Premium Unable to add more tickets, max_input_vars = 2500

Unable to add more tickets, max_input_vars = 2500

Posted: July 29, 2018 at 11:55 am


ryanhartman

July 29, 2018 at 11:55 am

Hi – installed EE on a new site and am creating one event. 36 tickets have been made and we need to add ~25 more. We cannot create any more tickets, not even one.

I’ve used EE on another site and ran into this issue before, but that site had max_input_vars=1000 and bumping it to 2000 fixed the issue. This site, on a different host, has max_input_vars=2500 already (confirmed via phpinfo()) so I’m wondering what else may be at fault.


ryanhartman

July 29, 2018 at 12:40 pm

Figured it out – the php version on the site was 5.5x. Bumping that to 7 fixed the issue.


Tony

  • Support Staff

July 30, 2018 at 3:28 am

Hi there,

max_input_vars is a limit set within PHP which basically means that when you submit a form, PHP reads the first X a amount of inputs and then discards the rest.

As you add additional tickets/datetimes you add more inputs to the page, the number of inputs you add per ticket varies based on various fators, for example if you have the WP user integration add-on active, that adds inputs to the tickets sections, every datetime has an input within the ticket to show if that ticket should apply to that datetime, 3 datetimes = 3 additional inputs per ticket (similar situation with the datetime itself as that has an option for each ticket). But giving a rough example lets say each ticket adds 30 inputs to the page, so:

36 x 30 = 1080 inputs

Then the date time, you’ll have 1 input per ticket within the datetime selector – http://take.ms/BqkMG

Those are all inputs, so even with 1 datetime and 36 tickets, the datetime itself adds at least 45-50 tickets, now the total is 1130.

Note thats only an example for the datetime and ticket sections, there’s still the rest of the page loading all of its own inputs, the point being you can easily hit 2500 with the number of tickets you are creating + everything else on the page.

PHP7 also uses max_input_vars in the same way, it could be that your host has a different config for PHP7 and it allows more input vars so for now your not hitting the limit.

The support post ‘Unable to add more tickets, max_input_vars = 2500’ 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.

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3

Documentation for Event Espresso 4

Status: closed

Updated by  Tony 2 weeks, 6 days ago ago

Topic Tags

Notifications

This topic is: not resolved
Do NOT follow this link or you will be banned from the site!