Support

Home Forums Event Espresso Premium 4.10.41.p critical error when cancelling registrants

4.10.41.p critical error when cancelling registrants

Posted: December 30, 2022 at 8:09 am

Viewing 15 reply threads


HonorFltNtwrk

December 30, 2022 at 8:09 am

Seeing critical site error when trying to cancel registrants. Here’s the error information:

When seeking help with this issue, you may be asked for some of the following information:
WordPress version 6.1.1
Active theme: Twenty Nineteen (version 2.4) Current plugin: Event Espresso (version 4.10.41.p) PHP version 8.0.25

Error Details
=============
An error of type E_ERROR was caused in line 438 of the file /home/hfnhubportal/public_html/wp-content/plugins/event-espresso-core-reg/core/db_classes/EE_Registration.class.php. Error message: Uncaught EventEspresso\core\exceptions\EntityNotFoundException: The requested entity with Event ID="10079" was not found. in /home/hfnhubportal/public_html/wp-content/plugins/event-espresso-core-reg/core/db_classes/EE_Registration.class.php:438
Stack trace:
#0 /home/hfnhubportal/public_html/wp-content/plugins/event-espresso-core-reg/core/db_classes/EE_Registration.class.php(510): EE_Registration->event()
#1 /home/hfnhubportal/public_html/wp-content/plugins/event-espresso-core-reg/core/db_classes/EE_Registration.class.php(191): EE_Registration->releaseRegistrationSpace()
#2 /home/hfnhubportal/public_html/wp-content/plugins/event-espresso-core-reg/admin_pages/registrations/Registrations_Admin_Page.core.php(1731): EE_Registration->set_status(‘RCN’, false, Object(EventEspresso\core\domain\entities\contexts\Context))
#3 /home/hfnhubportal/public_html/wp-content/plugins/event-espresso-core-reg/admin_pages/registrations/Registrations_Admin_Page.core.php(1654): Registrations_Admin_Page->_set_registration_status(Array, ‘RCN’, true)
#4 /home/hfnhubportal/public_html/wp-content/plugins/event-espresso-core-reg/admin_pages/registrations/Registrations_Admin_Page.core.php(1764): Registrations_Admin_Page->_set_registration_status_from_request(‘RCN’, true)
#5 /home/hfnhubportal/public_html/wp-content/plugins/event-espresso-core-reg/admin_pages/registrations/Registrations_Admin_Page.core.php(1936): Registrations_Admin_Page->_reg_status_change_return(‘RCN’, true)
#6 /home/hfnhubportal/public_html/wp-content/plugins/event-espresso-core-reg/admin_pages/registrations/Registrations_Admin_Page.core.php(1875): Registrations_Admin_Page->cancel_registration(true)
#7 /home/hfnhubportal/public_html/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page.core.php(1026): Registrations_Admin_Page->bulk_action_on_registrations(‘cancel’, true)
#8 /home/hfnhubportal/public_html/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page_CPT.core.php(1161): EE_Admin_Page->_route_admin_request()
#9 /home/hfnhubportal/public_html/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page.core.php(608): EE_Admin_Page_CPT->route_admin_request()
#10 /home/hfnhubportal/public_html/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page.core.php(230): EE_Admin_Page->_page_setup()
#11 /home/hfnhubportal/public_html/wp-content/plugins/event-espresso-core-reg/admin_pages/registrations/Registrations_Admin_Page.core.php(83): EE_Admin_Page->__construct(true)
#12 /home/hfnhubportal/public_html/wp-content/plugins/event-espresso-core-reg/caffeinated/admin/extend/registrations/Extend_Registrations_Admin_Page.core.php(32): Registrations_Admin_Page->__construct(true)
#13 [internal function]: Extend_Registrations_Admin_Page->__construct(true)
#14 /home/hfnhubportal/public_html/wp-content/plugins/event-espresso-core-reg/core/EE_Registry.core.php(1293): ReflectionClass->newInstanceArgs(Array)
#15 /home/hfnhubportal/public_html/wp-content/plugins/event-espresso-core-reg/core/EE_Registry.core.php(800): EE_Registry->_create_object(‘Extend_Registra…’, Array, ”, false)
#16 /home/hfnhubportal/public_html/wp-content/plugins/event-espresso-core-reg/core/services/loaders/CoreLoader.php(110): EE_Registry->create(‘Extend_Registra…’, Array, true, false, false, ”)
#17 /home/hfnhubportal/public_html/wp-content/plugins/event-espresso-core-reg/core/services/loaders/CachingLoader.php(157): EventEspresso\core\services\loaders\CoreLoader->load(‘Extend_Registra…’, Array, true)
#18 /home/hfnhubportal/public_html/wp-content/plugins/event-espresso-core-reg/core/services/loaders/Loader.php(81): EventEspresso\core\services\loaders\CachingLoader->load(‘Extend_Registra…’, Array, true)
#19 /home/hfnhubportal/public_html/wp-content/plugins/event-espresso-core-reg/core/services/loaders/Loader.php(104): EventEspresso\core\services\loaders\Loader->load(‘Extend_Registra…’, Array)
#20 /home/hfnhubportal/public_html/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page_Init.core.php(427): EventEspresso\core\services\loaders\Loader->getShared(‘Extend_Registra…’, Array)
#21 /home/hfnhubportal/public_html/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page_CPT_Init.core.php(24): EE_Admin_Page_Init->_initialize_admin_page()
#22 /home/hfnhubportal/public_html/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page_Loader.core.php(354): EE_Admin_Page_CPT_Init->do_initial_loads()
#23 /home/hfnhubportal/public_html/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page_Loader.core.php(86): EE_Admin_Page_Loader->_get_installed_pages()
#24 [internal function]: EE_Admin_Page_Loader->__construct(Object(EventEspresso\core\services\loaders\Loader))
#25 /home/hfnhubportal/public_html/wp-content/plugins/event-espresso-core-reg/core/EE_Registry.core.php(1293): ReflectionClass->newInstanceArgs(Array)
#26 /home/hfnhubportal/public_html/wp-content/plugins/event-espresso-core-reg/core/EE_Registry.core.php(800): EE_Registry->_create_object(‘EE_Admin_Page_L…’, Array, ”, false)
#27 /home/hfnhubportal/public_html/wp-content/plugins/event-espresso-core-reg/core/services/loaders/CoreLoader.php(110): EE_Registry->create(‘EE_Admin_Page_L…’, Array, true, false, false, ”)
#28 /home/hfnhubportal/public_html/wp-content/plugins/event-espresso-core-reg/core/services/loaders/CachingLoader.php(157): EventEspresso\core\services\loaders\CoreLoader->load(‘EE_Admin_Page_L…’, Array, true)
#29 /home/hfnhubportal/public_html/wp-content/plugins/event-espresso-core-reg/core/services/loaders/Loader.php(81): EventEspresso\core\services\loaders\CachingLoader->load(‘EE_Admin_Page_L…’, Array, true)
#30 /home/hfnhubportal/public_html/wp-content/plugins/event-espresso-core-reg/core/services/loaders/Loader.php(104): EventEspresso\core\services\loaders\Loader->load(‘EE_Admin_Page_L…’, Array)
#31 /home/hfnhubportal/public_html/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin.core.php(210): EventEspresso\core\services\loaders\Loader->getShared(‘EE_Admin_Page_L…’, Array)
#32 /home/hfnhubportal/public_html/wp-includes/class-wp-hook.php(308): EE_Admin->init(”)
#33 /home/hfnhubportal/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(”, Array)
#34 /home/hfnhubportal/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#35 /home/hfnhubportal/public_html/wp-content/plugins/event-espresso-core-reg/core/EE_System.core.php(1283): do_action(‘AHEE__EE_System…’)
#36 /home/hfnhubportal/public_html/wp-includes/class-wp-hook.php(308): EE_System->initialize_last(”)
#37 /home/hfnhubportal/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array)
#38 /home/hfnhubportal/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#39 /home/hfnhubportal/public_html/wp-settings.php(617): do_action(‘init’)
#40 /home/hfnhubportal/public_html/wp-config.php(88): require_once(‘/home/hfnhubpor…’)
#41 /home/hfnhubportal/public_html/wp-load.php(50): require_once(‘/home/hfnhubpor…’)
#42 /home/hfnhubportal/public_html/wp-admin/admin.php(34): require_once(‘/home/hfnhubpor…’)
#43 {main}
thrown


Tony

  • Support Staff

December 30, 2022 at 8:40 am

Hi there,

Looking at your site I can’t find an Event with ID 10079, has it been removed from the site?


HonorFltNtwrk

December 30, 2022 at 8:52 am

Correct, but I had cancelled those registrants first, but somehow they are still there and show registered, but with no event. Trying to cancel them OR should I just delete. There is no $0 associated with their registration.


HonorFltNtwrk

December 30, 2022 at 8:55 am

Trying to “trash” the entries is also causing the critical error warning.


Tony

  • Support Staff

December 30, 2022 at 9:01 am

Did you delete the event through the Event Espresso dashboard?

EE doesn’t allow you to delete events within the UI if you have registrations connected to them. Previously you would have needed to manually remove the registration first but we now have a batch process where it will remove all related data from the event for you when you delete the event.


HonorFltNtwrk

December 30, 2022 at 9:07 am

Yes, I refunded the $$, then deleted the event from the dashboard, but didn’t realize those registrants would not also delete. What do you need from me to batch process. I have 4 registrants “orphaned” is it were and want all 4 just deleted at this point.


Tony

  • Support Staff

December 30, 2022 at 9:29 am

Yes, I refunded the $$, then deleted the event from the dashboard, but didn’t realize those registrants would not also delete.

They should have been deleted, them being refunded or cancelled shouldn’t make any difference to that process. They are effectively orphaned data now as the event ID ties them together so with no event present our models can’t delete them.

When you deleted the event, did you see a page like this first:

https://monosnap.com/file/thh4e3tgG75lQ6SzVXztSFvdbalVJo

That’s the batch process I mentioned earlier, it scans the database when you click to delete an event and pulls in all of the related data which needs to be deleted, giving a preview and confirmation before working through it.

What do you need from me to batch process.

I don’t follow? All of the data is stored on your own site, I can’t process anything from this end.

I’m checking into the models currently to see if it’s possible to force deletion without the foreign keys, much more difficult to collate the data that way but might be possible.


HonorFltNtwrk

December 30, 2022 at 10:23 am

No that screen was not presented to me.


HonorFltNtwrk

December 30, 2022 at 10:24 am

I can provide you access to the site if necessary to look at things.


Tony

  • Support Staff

December 30, 2022 at 10:54 am

No that screen was not presented to me.

Then now I’m really confused as that’s the only delete routine within Event Espresso 4.

I can provide you access to the site if necessary to look at things.

Unfortunately, it’s unlikely to help. I’m going to see the registrations linked to an event ID for which there is no event which is basically what you’ve already told me above 🙂

I’ll set up a new local site and manually remove the event from the DB, then see what the models will allow from there. It may be a case where those registrations need to be manually removed but thats not usually something we would do.


HonorFltNtwrk

December 30, 2022 at 12:13 pm

Ok, let me know


HonorFltNtwrk

December 30, 2022 at 12:21 pm

I was able to cancel 4 of the 4 that no longer had an event attached and trash 2 that had $0. There was a refund against 2 of them, but they wont’ delete because they are part of a larger registration and it says I have to delete the entire transaction, so I’ll just let them stay in there as cancelled at this point.

So I have 2 sitting in cancelled, 2 sitting in trash and that’s the farthest I can go with them unless I delete the entire transaction all together, which I cannot.


Tony

  • Support Staff

December 30, 2022 at 3:41 pm

Hmm, wait a second.

So these registrations are part of a group registration across multiple events?

That may be what caused this.

I’ll take a look over this in the admin if thats ok, you can send temp login details using this form:

https://eventespresso.com/send-login-details/

I’ll reproduce the setup locally and see what I can find (note this may take a little)


HonorFltNtwrk

December 30, 2022 at 4:02 pm

Sent


Tony

  • Support Staff

January 3, 2023 at 8:06 am

Hmm, strange.

With the same event setup I’m not running into issues when the event is deleted, it removes the registrations as expected.

However, If I manually remove the event from the DB I end up in a similar situation and if I then remove the payments from the EE Transaction I can remove all of the registrations.

Do you want me to try to remove all of those registrations? Note that it will be the entire group so if that’s a real group registration (not a test) then do you have a backup of all of the details used?


Tony

  • Support Staff

January 5, 2023 at 5:22 am

This reply has been marked as private.
Viewing 15 reply threads

The support post ‘4.10.41.p critical error when cancelling registrants’ 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