Matthew Prudente
January 26, 2024 at 2:55 am
I am getting a 500 error when publishing an event. I’ve turned off all other plugins to test. The debug log shows this error:
thrown in /home/runcloud/webapps/aviation-club-uk-live/wp-content/plugins/event-espresso-core-reg/caffeinated/admin/extend/events/espresso_events_Events_Hooks_Extend.class.php on line 457
[26-Jan-2024 09:52:21 UTC] PHP Fatal error: Uncaught InvalidArgumentException: The "edit_tickets" array is invalid therefore the event can not be updated. in /home/runcloud/webapps/aviation-club-uk-live/wp-content/plugins/event-espresso-core-reg/caffeinated/admin/extend/events/espresso_events_Events_Hooks_Extend.class.php:457
Stack trace:
#0 /home/runcloud/webapps/aviation-club-uk-live/wp-content/plugins/event-espresso-core-reg/caffeinated/admin/extend/events/espresso_events_Events_Hooks_Extend.class.php(282): espresso_events_Events_Hooks_Extend->_update_tickets()
#1 /home/runcloud/webapps/aviation-club-uk-live/wp-content/plugins/event-espresso-core-reg/admin_pages/events/Events_Admin_Page.core.php(1110): espresso_events_Events_Hooks_Extend->datetime_and_tickets_caf_update()
#2 /home/runcloud/webapps/aviation-club-uk-live/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page_CPT.core.php(974): Events_Admin_Page->_insert_update_cpt_item()
#3 /home/runcloud/webapps/aviation-club-uk-live/wp-includes/class-wp-hook.php(324): EE_Admin_Page_CPT->insert_update()
#4 /home/runcloud/webapps/aviation-club-uk-live/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#5 /home/runcloud/webapps/aviation-club-uk-live/wp-includes/plugin.php(517): WP_Hook->do_action()
#6 /home/runcloud/webapps/aviation-club-uk-live/wp-includes/post.php(4760): do_action()
#7 /home/runcloud/webapps/aviation-club-uk-live/wp-includes/post.php(4862): wp_insert_post()
#8 /home/runcloud/webapps/aviation-club-uk-live/wp-admin/includes/post.php(453): wp_update_post()
#9 /home/runcloud/webapps/aviation-club-uk-live/wp-admin/post.php(227): edit_post()
#10 {main}
thrown in /home/runcloud/webapps/aviation-club-uk-live/wp-content/plugins/event-espresso-core-reg/caffeinated/admin/extend/events/espresso_events_Events_Hooks_Extend.class.php on line 457
Tony
January 26, 2024 at 5:05 am
Add New Note to this Reply
Hi there,
Is this a new install or did this work previously?
Are you using the legacy or advanced editor?
You can see how the advanced editor looks here:
https://eventespresso.com/wiki/new-advanced-event-editor/
When you create a new event (before you publish it), does it have a ticket?
Matthew Prudente
January 29, 2024 at 3:01 am
Add New Note to this Reply
We are using the legacy editor.
It works when a ticket has been added, but fails without a ticket.
It had been working before, until we updated from 3 to 4.
Many thanks for your help.
Matthew Prudente
January 29, 2024 at 3:01 am
Add New Note to this Reply
We are using the legacy editor.
It works when a ticket has been added, but fails without a ticket.
It had been working before, until we updated from 3 to 4.
Many thanks for your help.
Rio
January 29, 2024 at 7:38 am
Add New Note to this Reply
It is correct to have error when saving a datetime without any ticket assigned. The only problem here is that, the error was not catch in legacy editor, but everything seems fine in Advance editor.
The solution here for now, is to create a default ticket so you will not experience that fatal error when saving a datetime without assigned ticket.
https://monosnap.com/file/EKaGIplol34PxeJgl0bpO5Q9DccLdS
Thanks