Support » Plugin: Better Google Analytics » Unknown or bad timezone error

  • Latest version of the plugin, on PHP7.0 and Ubuntu 16.04.2.

    Just saw this in my error log:

    2017/05/16 18:15:01 [error] 6268#0: *6173126 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught Exception: DateTimeZone::__construct(): Unknown or bad timezone () in /var/www/mydomain.com/html/wp-content/plugins/better-analytics/library/DigitalPointBetterAnalytics/Model/Widget.php:111
    Stack trace:
    #0 /var/www/mydomain.com/html/wp-content/plugins/better-analytics/library/DigitalPointBetterAnalytics/Model/Widget.php(111): DateTimeZone->__construct('')
    #1 /var/www/mydomain.com/html/wp-content/plugins/better-analytics/library/DigitalPointBetterAnalytics/Model/Widget.php(83): DigitalPointBetterAnalytics_Model_Widget::getStatsWidgetStart(Array)
    #2 /var/www/mydomain.com/html/wp-content/plugins/better-analytics/library/DigitalPointBetterAnalytics/CronEntry/Jobs.php(15): DigitalPointBetterAnalytics_Model_Widget::getStatsWidgetData()
    #3 /var/www/mydomain.com/html/wp-includes/class-wp-hook.php(298): DigitalPointBetterAnalytics_CronEntry_Jobs::hour()
    #4 /var/www/mydomain.com/html/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters('', Array)
    
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author digitalpoint

    (@digitalpoint)

    What is your timezone set to under your WordPress settings? There was some changes to internal timezone calculations recently and have been trying to track down why a couple people are seeing what you see.

    It was on UTC+3, and displaying the correct time. I’ve now changed it to Jerusalem – which is usually UTC+2 but now on DST – so I don’t need to think about going back and forth to/from DST.

    setting the wordpress time zone to a text one like America/Santiago worked for me.
    i think the problem is the UTC-number format.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Unknown or bad timezone error’ is closed to new replies.