Support

Home Forums Event Espresso Premium Fatal error when going to Event Espresso > Registrations or Transactions

Fatal error when going to Event Espresso > Registrations or Transactions

Posted: August 8, 2023 at 8:33 pm

Viewing 12 reply threads


hemc.rodeo

August 8, 2023 at 8:33 pm

Receiving the below fatal error anytime we navigate to Event Espresso > Registration or when navigating to view Transactions.

WordPress Version: 6.3
PHP Version: 8.2.9
MySQL Version: 5.7.39
Event Espresso Version: 5.0.8.p
WordPress Address (URL): https://hemc.org/member
Site address (URL): https://hemc.org

Fatal error: Uncaught TypeError: EEH_DTT_Helper::setTimezone(): Argument #1 ($datetime) must be of type DateTime, bool given, called in /home/customer/www/hemc.org/public_html/member/wp-content/plugins/event-espresso-core-reg/core/db_models/EEM_Base.model.php on line 1639 and defined in /home/customer/www/hemc.org/public_html/member/wp-content/plugins/event-espresso-core-reg/core/helpers/EEH_DTT_Helper.helper.php:1063 Stack trace: #0 /home/customer/www/hemc.org/public_html/member/wp-content/plugins/event-espresso-core-reg/core/db_models/EEM_Base.model.php(1639): EEH_DTT_Helper::setTimezone(false, Object(DateTimeZone)) #1 /home/customer/www/hemc.org/public_html/member/wp-content/plugins/event-espresso-core-reg/admin_pages/registrations/EE_Registrations_List_Table.class.php(327): EEM_Base->convert_datetime_for_query(‘REG_date’, ‘2023-08-01 00:…’, ‘Y-m-d H:i:s’) #2 /home/customer/www/hemc.org/public_html/member/wp-content/plugins/event-espresso-core-reg/admin_pages/registrations/EE_Registrations_List_Table.class.php(271): EE_Registrations_List_Table->_total_registrations_this_month() #3 /home/customer/www/hemc.org/public_html/member/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_List_Table.core.php(247): EE_Registrations_List_Table->_add_view_counts() #4 /home/customer/www/hemc.org/public_html/member/wp-content/plugins/event-espresso-core-reg/admin_pages/registrations/EE_Registrations_List_Table.class.php(64): EE_Admin_List_Table->__construct(Object(Extend_Registrations_Admin_Page)) #5 [internal function]: EE_Registrations_List_Table->__construct(Object(Extend_Registrations_Admin_Page), Object(EventEspresso\core\services\admin\AdminListTableFilters)) #6 /home/customer/www/hemc.org/public_html/member/wp-content/plugins/event-espresso-core-reg/core/EE_Registry.core.php(1308): ReflectionClass->newInstanceArgs(Array) #7 /home/customer/www/hemc.org/public_html/member/wp-content/plugins/event-espresso-core-reg/core/EE_Registry.core.php(800): EE_Registry->_create_object(‘Extend_EE_Regis…’, Array, ”, false) #8 /home/customer/www/hemc.org/public_html/member/wp-content/plugins/event-espresso-core-reg/core/services/loaders/CoreLoader.php(109): EE_Registry->create(‘Extend_EE_Regis…’, Array, true, false, false, ”) #9 /home/customer/www/hemc.org/public_html/member/wp-content/plugins/event-espresso-core-reg/core/services/loaders/CachingLoader.php(157): EventEspresso\core\services\loaders\CoreLoader->load(‘Extend_EE_Regis…’, Array, true) #10 /home/customer/www/hemc.org/public_html/member/wp-content/plugins/event-espresso-core-reg/core/services/loaders/Loader.php(81): EventEspresso\core\services\loaders\CachingLoader->load(‘Extend_EE_Regis…’, Array, true) #11 /home/customer/www/hemc.org/public_html/member/wp-content/plugins/event-espresso-core-reg/core/services/loaders/Loader.php(104): EventEspresso\core\services\loaders\Loader->load(‘Extend_EE_Regis…’, Array) #12 /home/customer/www/hemc.org/public_html/member/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page.core.php(2076): EventEspresso\core\services\loaders\Loader->getShared(‘Extend_EE_Regis…’, Array) #13 /home/customer/www/hemc.org/public_html/member/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page.core.php(2032): EE_Admin_Page->_set_list_table_object() #14 /home/customer/www/hemc.org/public_html/member/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page.core.php(784): EE_Admin_Page->_set_list_table() #15 /home/customer/www/hemc.org/public_html/member/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page_CPT.core.php(322): EE_Admin_Page->_load_page_dependencies() #16 /home/customer/www/hemc.org/public_html/member/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page.core.php(747): EE_Admin_Page_CPT->_load_page_dependencies() #17 /home/customer/www/hemc.org/public_html/member/wp-includes/class-wp-hook.php(310): EE_Admin_Page->load_page_dependencies(”) #18 /home/customer/www/hemc.org/public_html/member/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters(”, Array) #19 /home/customer/www/hemc.org/public_html/member/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #20 /home/customer/www/hemc.org/public_html/member/wp-admin/admin.php(237): do_action(‘load-event-espr…’) #21 {main} thrown in /home/customer/www/hemc.org/public_html/member/wp-content/plugins/event-espresso-core-reg/core/helpers/EEH_DTT_Helper.helper.php on line 1063


Tony

  • Support Staff

August 9, 2023 at 3:52 am

Hi there,

Something is causing the Datetime generated during the request to fail, returning false.

Can I take a look at this? I’ll need to temporarily add some debug code to the site to see what is happening within the request and why the datetime fails.

If that’s ok you can send temp login details using this form:

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

Note to debug this FTP details are required.


hemc.rodeo

August 9, 2023 at 5:47 am

Thanks. Submitted temp credentials.


Tony

  • Support Staff

August 9, 2023 at 10:05 am

Just to let you know, we are currently investigating this.

The code in question is returning false when generating a datetime, that exact same code passed exactly the same values is working on out severs.

Just for reference:


$incoming_format = 'Y-m-d H:i:s';
$set_timezone = 'America/Chicago';
$timestring = '2023-08-01 00:00:00';

var_dump(date_create_from_format($incoming_format, $timestring, new DateTimeZone($set_timezone)));

Outputs false on your site, but it outputs a DateTime on ours, so we need to dig into this to see what is going on.


Tony

  • Support Staff

August 9, 2023 at 10:32 am

Ok, found the issue.

It’s due to the PHP version you’re running on the server. This code:

$timestring = '2023-08-01 00:00:00'; actually has a double space between the date and time.

That double space is completely valid…. until PHP8.2.9!

https://monosnap.com/file/Th8ASplwG5VkqTqWX4aQqehG97se2r

I’ve applied a patch on your site which loads the page for me and I’ve created a ticket to use to investigate and fix in the next update.


hemc.rodeo

August 9, 2023 at 8:59 pm

Such a needle in a haystack. Thanks for patching the site and excellent support. Appreciate the quick response and thorough troubleshooting.


Rio

  • Support Staff

August 9, 2023 at 11:46 pm

We are happy to assist you.

Feel free to send message if you have any problem or concern.

Thanks


schoeps

August 11, 2023 at 10:08 am

We’re having the same issue, but on PHP 7.4.33. Could you provide the patch please?


Tony

  • Support Staff

August 11, 2023 at 10:11 am

Hi there,

Yours will not be the same issue if your using 7.4.33 as the above code is valid in that version of PHP.

Do you have the error being thrown?


schoeps

August 11, 2023 at 10:15 am

[11-Aug-2023 15:55:30 UTC] PHP Fatal error: Uncaught TypeError: Typed property EE_Model_Relation_Base::$_timezone must be string, null used in /home/baltimorepr/public_html/wp-includes/functions.php:650
Stack trace:
#0 /home/baltimorepr/public_html/wp-includes/functions.php(650): unserialize(‘a:3:{s:3:”pdf”;…’)
#1 /home/baltimorepr/public_html/wp-includes/option.php(253): maybe_unserialize(‘a:3:{s:3:”pdf”;…’)
#2 /home/baltimorepr/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/EE_Message_Resource_Manager.lib.php(495): get_option(‘ee_active_messe…’, Array)
#3 /home/baltimorepr/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/EE_Message_Resource_Manager.lib.php(579): EE_Message_Resource_Manager->get_active_messengers_option(true)
#4 /home/baltimorepr/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/EE_Message_Resource_Manager.lib.php(153): EE_Message_Resource_Manager->_set_active_messengers_and_message_types()
#5 /home/baltimorepr/public_html/wp-content/plugi in /home/baltimorepr/public_html/wp-includes/functions.php on line 650


Tony

  • Support Staff

August 11, 2023 at 10:25 am

Yeah that’s a different issue 🙂

Please redownload version 5.0.8 from your account page and upload it through:

Dashboard -> Plugins -> Add New -> Upload Plugin.

WordPress will tell you there is a version currently installed and ask if you want to replace it, do so.

That should fix the above issue.


schoeps

August 11, 2023 at 10:54 am

That did it. Thank you!


schoeps

August 11, 2023 at 10:54 am

That did it. Thank you!


Tony

  • Support Staff

August 11, 2023 at 10:56 am

Awesome, I’m glad that fixed it for you.

Any further issues just let us know.

Viewing 12 reply threads

The support post ‘Fatal error when going to Event Espresso > Registrations or Transactions’ 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