Hi there, I'm getting the following errors reported by the cron (pasted word by word, edited private details): <br /> <b>Fatal error</b>: Uncaught exception 'Exception' with message 'DateTimeZone::__construct(): Unknown or bad timezone ()' in /home/XXXXXXXX/public_html/assets/plugins/better-analytics/library/DigitalPointBetterAnalytics/Model/Widget.php:111 Stack trace: #0 /home/XXXXXXXX/public_html/assets/plugins/better-analytics/library/DigitalPointBetterAnalytics/Model/Widget.php(111): DateTimeZone->__construct('') #1 /home/XXXXXXXX/public_html/assets/plugins/better-analytics/library/DigitalPointBetterAnalytics/Model/Widget.php(83): DigitalPointBetterAnalytics_Model_Widget::getStatsWidgetStart(Array) #2 /home/XXXXXXXX/public_html/assets/plugins/better-analytics/library/DigitalPointBetterAnalytics/CronEntry/Jobs.php(15): DigitalPointBetterAnalytics_Model_Widget::getStatsWidgetData() #3 [internal function]: DigitalPointBetterAnalytics_CronEntry_Jobs::hour() #4 /home/XXXXXXXX/public_html/wp-includes/class-wp-hook.php(298): call_user_func_array(Array, Array) #5 /home/XXXXXXXX/public_html/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters('', Array) #6 /hom in <b>/home/XXXXXXXX/public_html/assets/plugins/better-analytics/library/DigitalPointBetterAnalytics/Model/Widget.php</b> on line <b>111</b><br /> I'm using PHP5.6 and plugin is at version 1.2.3 Any idea how to fix this?
Please show the code at public_html/assets/plugins/better-analytics/library/DigitalPointBetterAnalytics/Model/Widget.php Or maybe this can help you: https://stackoverflow.com/questions...exception-exception-with-message-datetimezone Please tell us what you've done to get that fixed ( at least a google search ?)
Here's the code at public_html/assets/plugins/better-analytics/library/DigitalPointBetterAnalytics/Model/Widget.php : https://pastebin.com/UH4bSyrV And I can't see how that problem that you shared is related to mine. It's set at UTC+8
Indeed I do. May I know which files would you like to have? I have the PRO version too, if that matters
Can you grab this version, install it and see if the error goes away? A bit difficult to debug on this end since I'm not seeing the error, but hopefully this will take care of it: http://www.digitalpoint.com/better-analytics.zip (it's just a replacement for the normal version, not the Pro version) Let me know if that works please.
Hi there, Thanks for this! It's been a couple of hours now and there has been not a single occurrence of the error Seems like it's solved~ I'll monitor it closely for awhile longer.
Hi there, There is another error that is occurring now, also thrown by the cron. Any idea on this? <br /> <b>Notice</b>: Undefined index: metric in <b>/home/xxxxx/public_html/assets/plugins/better-analytics/library/DigitalPointBetterAnalytics/Model/Widget.php</b> on line <b>155</b><br /> <br /> <b>Notice</b>: Undefined index: days in <b>/home/xxxxx/public_html/assets/plugins/better-analytics/library/DigitalPointBetterAnalytics/Model/Widget.php</b> on line <b>160</b><br />
Hmmm, that looks like a widget that somehow lost it's settings. Can you go in and edit the widget and make sure it *has* settings (specifically metric and days)?
How do I edit the widget (and what do I edit)? This is the widget on the admin dashboard, isn't it? It is pulling the data fine from analytics though. Everything is showing perfectly, I can even view realtime data, switch the metrics, but I'm still getting the cron error.
No, that should be from a public facing widget under Admin -> Appearance -> Widgets You'll be looking for one who's name starts with "Better Analytics".
Hi digitalpoint, When I add the better analytics: popular widget, it doesn't appear. But when I drag the better analytics: stats widget, it works fine. Maybe this is causing the problem. How do I fix this?
It doesn't. I'm not really using the widget at all actually. I only added it for this testing. Something seems not right.
U mean the widget? I don't have it enabled anywhere. The only widget that I use is the admin dashboard and it works perfectly fine.
Ya... but when you are in your browser, what page(s) are you visiting when you are getting the error?
The error was getting thrown by Cron actually..It was not appearing on any page.. However, it has mysteriously disappeared for the past 2 days over the weekend..
Hmmm... strange... maybe there's some caching issue or something going on. I guess let me know if it pops back up. Really hard to debug on this end since I can't replicate it.