Support

Home Forums Event Espresso Premium Uncaught Error: EED_WP_Users_Admin::save_wp_user_event_setting()

Uncaught Error: EED_WP_Users_Admin::save_wp_user_event_setting()

Posted: September 25, 2023 at 7:02 am

Viewing 1 reply thread


SwissRisk

September 25, 2023 at 7:02 am

Hi all,

With the upgrade to EE 5.0.10.p, User Integration 2.1.1.p we experience the following error when attempting to save posts residing in the trash:


Fatal error: Uncaught Error: EED_WP_Users_Admin::save_wp_user_event_setting(): Argument #1 ($event) must be of type EE_Event, null given, called in /wp-content/plugins/event-espresso-core-reg/admin_pages/events/Events_Admin_Page.core.php on line 1109
in /wp-content/plugins/eea-wp-user-integration/EED_WP_Users_Admin.module.php on line 971

Call stack:

EED_WP_Users_Admin::save_wp_user_event_setting()
wp-content/plugins/event-espresso-core-reg/admin_pages/events/Events_Admin_Page.core.php:1109
Events_Admin_Page::_insert_update_cpt_item()
wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page_CPT.core.php:971
EE_Admin_Page_CPT::insert_update()
wp-includes/class-wp-hook.php:310
WP_Hook::apply_filters()
wp-includes/class-wp-hook.php:334
WP_Hook::do_action()
wp-includes/plugin.php:517
do_action()
wp-includes/post.php:4751
wp_insert_post()
wp-includes/post.php:4853
wp_update_post()
wp-admin/includes/post.php:445
edit_post()
wp-admin/post.php:227

Wordpress Version: 6.3.1


Tony

  • Support Staff

September 25, 2023 at 1:53 pm

Hi there,

I can reproduce this and it is happening because our system automatically filters trashed events, but then when editing a trashed event it is also filtering the query for the event when updating.

I have created a ticket to investigate this further, in the meantime the only way you will be able to save the settings for trashed events is to restore them first, then save.

Viewing 1 reply thread

The support post ‘Uncaught Error: EED_WP_Users_Admin::save_wp_user_event_setting()’ 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