Critical Error on DateTimeZone
-
I’ve been alerted to an error that has stopped this plugin from functioning. It actually takes the site offline unless I temporarily rename the events-manager plugin folder.
I’ve tried reinstalling a clean version of the plugin, but the error remains. I understand it must have something to do with timezone… my wordpress (Settings > General) is set to UTC+0. Here are some more details about my install and theme, and below are the error details.
Can anyone kindly support with suggestions on resolving?
WordPress version 5.3
Current theme: OneSocial Child Theme (version 1.5.5)
Current plugin: Events Manager (version 5.9.5) – Note latest version now installed but it still causes issue.
PHP version 7.1.17-0ubuntu0.17.10.1Error Details
=============
An error of type E_ERROR was caused in line 1125 of the file
/var/www/html/wp-content/plugins/events-manager/classes/em-datetime.php.
Error message: Uncaught Exception: DateTimeZone::__construct():
Unknown or bad timezone () in
/var/www/html/wp-content/plugins/events-manager/classes/em-datetime.php:1125
Stack trace:
#0 /var/www/html/wp-content/plugins/events-manager/classes/em-datetime.php(1125):
DateTimeZone->__construct(”)
#1 /var/www/html/wp-content/plugins/events-manager/classes/em-datetime.php(1177):
EM_DateTimeZone->__construct(”)
#2 /var/www/html/wp-content/plugins/events-manager/classes/em-datetime.php(71):
EM_DateTimeZone::create(”)
#3 /var/www/html/wp-content/plugins/events-manager/classes/em-object.php(693):
EM_DateTime->__construct()
#4 /var/www/html/wp-content/plugins/events-manager/classes/em-events.php(1041):
EM_Object::build_sql_conditions(Array)
#5 /var/www/html/wp-content/plugins/events-manager/classes/em-events.php(227):
EM_Events::build_sql_conditions(Array)
#6 /var/www/html/wp-content/plugins/events-manager/classes/em-events.php(505):
EM_Events::get(Array, true)
#7 /var/www/html/wp-content/plugins/events-manager/admin/em-admin.php(
The topic ‘Critical Error on DateTimeZone’ is closed to new replies.