Posted: 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 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 |
|
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. |
|
Thanks. Submitted temp credentials. |
|
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:
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. |
|
Ok, found the issue. It’s due to the PHP version you’re running on the server. This code:
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. |
|
Such a needle in a haystack. Thanks for patching the site and excellent support. Appreciate the quick response and thorough troubleshooting. |
|
We are happy to assist you. Feel free to send message if you have any problem or concern. Thanks |
|
We’re having the same issue, but on PHP 7.4.33. Could you provide the patch please? |
|
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? |
|
[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 |
|
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. |
|
That did it. Thank you! |
|
That did it. Thank you! |
|
Awesome, I’m glad that fixed it for you. Any further issues just let us know. |
|
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.