Support

Home Forums Event Espresso Premium Error When Updating Event

Error When Updating Event

Posted: May 30, 2018 at 8:15 pm


californiasteve

May 30, 2018 at 8:15 pm

I got this error after updating a ticket.
Fatal error: Uncaught Error: Call to a member function start_date_and_time() on null in /home/eanaonli/public_html/ASGS/wp-content/plugins/event-espresso-core-reg/caffeinated/admin/new/pricing/espresso_events_Pricing_Hooks.class.php:497 Stack trace: #0 /home/eanaonli/public_html/ASGS/wp-content/plugins/event-espresso-core-reg/caffeinated/admin/new/pricing/espresso_events_Pricing_Hooks.class.php(283): espresso_events_Pricing_Hooks->_update_tickets(Object(EE_Event), Array, Array) #1 /home/eanaonli/public_html/ASGS/wp-content/plugins/event-espresso-core-reg/admin_pages/events/Events_Admin_Page.core.php(1016): espresso_events_Pricing_Hooks->datetime_and_tickets_caf_update(Object(EE_Event), Array) #2 /home/eanaonli/public_html/ASGS/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page_CPT.core.php(996): Events_Admin_Page->_insert_update_cpt_item(3191, Object(WP_Post)) #3 /home/eanaonli/public_html/ASGS/wp-includes/class-wp-hook.php(286): EE_Admin_Page_CPT->insert_update(3191, Object(WP_Post), true) #4 /home/eanao in /home/eanaonli/public_html/ASGS/wp-content/plugins/event-espresso-core-reg/caffeinated/admin/new/pricing/espresso_events_Pricing_Hooks.class.php on line 497


Tony

  • Support Staff

May 31, 2018 at 2:43 am

Hi there,

Usually, when the above happens it is because the event page has exceeded the max number of inputs that your server will accept, within PHP there is a max_input_vars setting which controls this.

By default, it is 1000 and you can easily hit that number of inputs depending on your datetimes, tickets and any additional settings added by other plugins/the theme.

You can use Chrome dev tools (or similar) to check for this.

On the event editor open up dev tools, on the elements tab search for ‘input’ and check the count, like this – http://take.ms/oaCEK

How many do you have?


californiasteve

May 31, 2018 at 4:39 am

I’m getting an ajax error on the functions.js file
Errors


Tony

  • Support Staff

May 31, 2018 at 4:48 am

That’s not the problem and is not actually from EE, it looks like thats from User access manager.

Based on the number of additional fields on the event editor in your screenshot, I’m guessing you’re hitting the max_input_vars limit, but can you follow the steps I posted above and confirm the number of inputs, please?


californiasteve

May 31, 2018 at 3:10 pm

I updating the max_input vars to 200 and am still getting the error.


Josh

  • Support Staff

May 31, 2018 at 3:13 pm

Hi Steve

A max_input_vars limit of 200 is actually quite low. The screenshot looks like you’ve got quite a number of plugins installed on that site, which adds even more inputs, so you may need to bump that limit to 3000 or even 4000 if possible.


californiasteve

May 31, 2018 at 3:26 pm

I updated it to 2000


californiasteve

May 31, 2018 at 3:32 pm

I increased it to 4000 and still got the error.


Josh

  • Support Staff

May 31, 2018 at 4:23 pm

Let’s see if we can verify the change. Can you install & activate the Health Check plugin, then go to WP Dashboard → Health Check → PHP Information. There you’ll find the PHP settings listed where you can verify the current max_input_vars limit.

The support post ‘Error When Updating Event’ 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