• Resolved moodygiles

    (@moodygiles)


    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.1

    Error 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(

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support angelo_nwl

    (@angelo_nwl)

    Hi,

    Current plugin: Events Manager (version 5.9.5) – Note latest version now installed but it still causes issue.

    Just to confirm, you are using the latest EM version 5.9.7? Also, does the settings under Events > Settings > General > Admin Tools > Reset Event Timezones makes any difference?

    Thread Starter moodygiles

    (@moodygiles)

    Hi @angelo_nwl – thanks for response.

    I am now on Version 5.9.7.1 – I copied the original error email message which said 5.9.5. I think updated the version to the latest but it didn’t solve the problem.

    Unfortunately, I can’t access that setting – activating the plugin causes the entire wordpress site to go down, doesn’t let you log in, etc. I’ve tried it with wordpress in recovery mode but that doesn’t work either.

    Thread Starter moodygiles

    (@moodygiles)

    I have solved this for now by changing my wordpress settings timezone. From “UTC+0” to “UTC”.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Critical Error on DateTimeZone’ is closed to new replies.