Latest version brings down entire site. Thanks for testing your code. Not.
Aug 23,2024 AT 12:41AM - 7 months ago -As you can see, it’s related to unhandled exceptions in the way it’s handling timezones:
Fatal error: Uncaught Exception: DateTimeZone::__construct(): Unknown or bad timezone (America/Indianapolis) in /var/www/html/overlandtiming.com/public_html/wp-content/plugins/eventON/includes/class-evo-helper.php:642 Stack trace: #0 /var/www/html/overlandtiming.com/public_html/wp-content/plugins/eventON/includes/class-evo-helper.php(642): DateTimeZone->__construct() #1 /var/www/html/overlandtiming.com/public_html/wp-content/plugins/eventON/includes/class-evo-helper.php(659): evo_helper->get_timezone_array() #2 /var/www/html/overlandtiming.com/public_html/wp-content/plugins/eventON/includes/calendar/class-calendar_generator.php(92): evo_helper->_get_tz_offset_seconds() #3 /var/www/html/overlandtiming.com/public_html/wp-content/plugins/eventON/includes/class-eventon.php(210): EVO_generator->__construct() #4 /var/www/html/overlandtiming.com/public_html/wp-includes/class-wp-hook.php(324): EventON->init() #5 /var/www/html/overlandtiming.com/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #6 /var/www/html/overlandtiming.com/public_html/wp-includes/plugin.php(517): WP_Hook->do_action() #7 /var/www/html/overlandtiming.com/public_html/wp-settings.php(700): do_action() #8 /var/www/html/overlandtiming.com/public_html/wp-config.php(79): require_once('...') #9 /var/www/html/overlandtiming.com/public_html/wp-load.php(50): require_once('...') #10 /var/www/html/overlandtiming.com/public_html/wp-admin/admin.php(34): require_once('...') #11 /var/www/html/overlandtiming.com/public_html/wp-admin/plugins.php(10): require_once('...') #12 {main} thrown in /var/www/html/overlandtiming.com/public_html/wp-content/plugins/eventON/includes/class-evo-helper.php on line 642
Fatal error: Uncaught Exception: DateTimeZone::__construct(): Unknown or bad timezone (America/Indianapolis) in /var/www/html/overlandtiming.com/public_html/wp-content/plugins/eventON/includes/class-evo-helper.php:642
Stack trace:
#0 /var/www/html/overlandtiming.com/public_html/wp-content/plugins/eventON/includes/class-evo-helper.php(642): DateTimeZone->__construct()
#1 /var/www/html/overlandtiming.com/public_html/wp-content/plugins/eventON/includes/class-evo-helper.php(659): evo_helper->get_timezone_array()
#2 /var/www/html/overlandtiming.com/public_html/wp-content/plugins/eventON/includes/calendar/class-calendar_generator.php(92): evo_helper->_get_tz_offset_seconds()
#3 /var/www/html/overlandtiming.com/public_html/wp-content/plugins/eventON/includes/class-eventon.php(210): EVO_generator->__construct()
#4 /var/www/html/overlandtiming.com/public_html/wp-includes/class-wp-hook.php(324): EventON->init()
#5 /var/www/html/overlandtiming.com/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#6 /var/www/html/overlandtiming.com/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
#7 /var/www/html/overlandtiming.com/public_html/wp-settings.php(700): do_action()
#8 /var/www/html/overlandtiming.com/public_html/wp-config.php(79): require_once(‘…’)
#9 /var/www/html/overlandtiming.com/public_html/wp-load.php(50): require_once(‘…’)
#10 /var/www/html/overlandtiming.com/public_html/wp-admin/admin.php(34): require_once(‘…’)
#11 /var/www/html/overlandtiming.com/public_html/wp-admin/plugins.php(10): require_once(‘…’)
#12 {main} thrown in /var/www/html/overlandtiming.com/public_html/wp-content/plugins/eventON/includes/class-evo-helper.php on line 642
Note that this error began after upgrading the webserver from Ubuntu 22.04 to Ubuntu 24.04. The plugin was not bringing the website down prior to the server upgrade.
all of this could be avoided and if you would use 1) utilize a quality coded third party timezones library that provides the required functionality for whatever homegrown timezone manipulation you’re trying to do in class-evo-helper.php and 2) HANDLE YOUR EXCEPTIONS GRACEFULLY WITH try…catch constructs. You can literally have a plugin do this for you automagically with zero effort.
For anyone else having this issue while we wait on a fix, I got my site back up and running by just blowing away all but a few timezones in the array of timezones returned by the get_default_timezones_array() function.
Hello,
Thank you for your messages, I am going to assign this ticket to Ashan and he will be able to take it from here and find you a solution. Please allow some time for him to get back to you, we greatly appreciate your patience and thank you for being a eventon customer! Also please disable any IP blocking on your site if there are any.
Thank you Dick for sharing your opinions and debugs. We will further investigate this and incorporate necessary fixes in the next version release for eventON.
How can we replicate this error on our end? Selecting Indiana East time for event in event edit does not create this issue for us.
Perhaps more than the code, could it be your server that is unable to process this time zone because of issues in the timezone database? since you mentioned after upgrading the server you started seeing this issue.
Hi there,
this has happened to me during last night.
Acidentally I have been checking the front end of the site lates yesterday. Running fine on 4.6.8 with Maps and ics importer. Today fatal error message of the whole installation. Deactivated EventON, site was working again.
As the error message was pointing to EventON, I thought maybe some files corrumpt. I jumped back to a backup from September 27th with Duplicator Pro. Backup restore went fine, bute same fatal error. Deactivated EventON again. Site running again.
Error Message is same as above.
I did not have a hand on the installation during the night.
Almost same package is running fine with another provider.
Trying to update to the latest EventON version showed the same behavior.
The provider confirmed they did the Ubuntu Update from 22.04 to Ubuntu 24.04 last night.
I will follow the workaround. But I need your urgent help to make this run regularly again.
Thanks!
Please send us wp-admin access to your site as a private message for us to further assist your situation.
and if needed
Please send us FTP access to your site as a private message, so we can perform several tests from our end and resolve your issue fast!
The latest version 4.7.1 address the timezone issue. And should not give those errors.