Support

Home Forums Event Espresso Premium E_ERROR

E_ERROR

Posted: November 21, 2024 at 2:09 pm

Viewing 8 reply threads


haerzchlopfaehebamme

November 21, 2024 at 2:09 pm

Hi,
sometimes I get fatal error messages from a site I maintain for a client like the one below.
Looking forward to learn what the error tells, why it happens and how to avoid further errors.
Kind regards,
Lukas

WordPress-Version 6.7
Aktives Theme: Beaver Builder Child Theme (Version 1.0)
Aktuelles Plugin: Event Espresso (Version 5.0.29.p)
PHP-Version 8.1.30

Fehler-Details
==============
Ein Fehler vom Typ E_ERROR wurde in der Zeile 458 der Datei /home/huggenbe/www/haerzchlopfae-hebamme.ch/wp-content/plugins/event-espresso-core-reg/caffeinated/admin/extend/events/espresso_events_Events_Hooks_Extend.class.php verursacht. Fehlermeldung: Uncaught InvalidArgumentException: The "edit_tickets" array is invalid therefore the event can not be updated. in /home/huggenbe/www/haerzchlopfae-hebamme.ch/wp-content/plugins/event-espresso-core-reg/caffeinated/admin/extend/events/espresso_events_Events_Hooks_Extend.class.php:458
Stack trace:
#0 /home/huggenbe/www/haerzchlopfae-hebamme.ch/wp-content/plugins/event-espresso-core-reg/caffeinated/admin/extend/events/espresso_events_Events_Hooks_Extend.class.php(283): espresso_events_Events_Hooks_Extend->_update_tickets(Object(EE_Event), Array, Array)
#1 /home/huggenbe/www/haerzchlopfae-hebamme.ch/wp-content/plugins/event-espresso-core-reg/admin_pages/events/Events_Admin_Page.core.php(1126): espresso_events_Events_Hooks_Extend->datetime_and_tickets_caf_update(Object(EE_Event), Array)
#2 /home/huggenbe/www/haerzchlopfae-hebamme.ch/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page_CPT.core.php(964): Events_Admin_Page->_insert_update_cpt_item(4419, Object(WP_Post))
#3 /home/huggenbe/www/haerzchlopfae-hebamme.ch/wp-includes/class-wp-hook.php(324): EE_Admin_Page_CPT->insert_update(4419, Object(WP_Post), true)
#4 /home/huggenbe/www/haerzchlopfae-hebamme.ch/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
#5 /home/huggenbe/www/haerzchlopfae-hebamme.ch/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#6 /home/huggenbe/www/haerzchlopfae-hebamme.ch/wp-includes/post.php(5060): do_action(‘save_post’, 4419, Object(WP_Post), true)
#7 /home/huggenbe/www/haerzchlopfae-hebamme.ch/wp-includes/post.php(5162): wp_insert_post(Array, false, true)
#8 /home/huggenbe/www/haerzchlopfae-hebamme.ch/wp-admin/includes/post.php(453): wp_update_post(Array)
#9 /home/huggenbe/www/haerzchlopfae-hebamme.ch/wp-admin/post.php(227): edit_post()
#10 {main}
thrown


Tony

  • Support Staff

November 22, 2024 at 3:45 am

Hi there,

So this error:

Uncaught InvalidArgumentException: The “edit_tickets” array is invalid therefore the event can not be updated.

Can be caused by multiple different issues.

The first one I would check for to see if your are hitting the server max_input_vars value. Go to Event Espresso- > Maintenance -> System Information, search for max_input_vars, what is the value?

I’m assuming you don’t get this for every event?

Is any caching enabled? Object caching?


haerzchlopfaehebamme

November 22, 2024 at 4:35 am

Hi Tony,
thanks for your reply.
The max_input_vars value is 16000 (I always set it high because Beaver Builder is usually hitting low values of that parameter).
You’re right, I only getting the error at odd times.
Caching: WP Rocket (plus KeyCDN).
Best,
Lukas


Tony

  • Support Staff

November 22, 2024 at 4:48 am

Ok, so is it consistent on the event you’ll get the error on?

As in does Event X always throw the error, or is it happening randomly even on the same event?


haerzchlopfaehebamme

November 22, 2024 at 7:34 am

the last time it happened, this line was different:
EE_Admin_Page_CPT->insert_update(4573, Object(WP_Post), true)
so I guess it was another event?
I deleted the emails of earlier (rare) cases


Tony

  • Support Staff

November 22, 2024 at 7:43 am

Based on the ID’s that’s a different events from the above error.

That last error is from the event with ID 4573.

Your first error was from one with ID 4419.

If you edit either of those, do you get the error every time you update the event?


haerzchlopfaehebamme

November 22, 2024 at 8:43 am

I updated both events and didn’t get an error message.
Looks like the errors are very much random since my client certainly made many more updates of several events since.


Tony

  • Support Staff

November 22, 2024 at 8:56 am

Hmmm, yeah…. its tough to troubleshoot this.

The error is basically saying the request is missing some sections EE is expecting so it can’t update. But WHY its missing the section(s) I can’t say without being able to reproduce and narrow this down.

If you check in with the client do they say anything about it showing an error or the a whitescreen at all?


haerzchlopfaehebamme

November 22, 2024 at 12:44 pm

well, since it’s a random error apparently not worrying the client (they would have told me if they’d seen a whitescreen or any other errors) I think we can close that ticket – thank you very much!

Viewing 8 reply threads

The support post ‘E_ERROR’ 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