-
Notifications
You must be signed in to change notification settings - Fork 147
5.7.1 – Analytics crashing #7748
Comments
I was asked by your support there to try a bunch of troubleshooting. This is what I did: Hi @rainfallnixfig Thanks so much for your support. I’ve done as you asked. Disabled all plugins, changed the theme to storefront. The same thing happens as I described in my first post. I have taken screenshots of the dashboard, and analytics, as well as saving the Woocommerce status report, before disabling and after disabling. After I disabled the plugins and changed the theme, I deleted all of the Analytics’ previously imported data, and things worked again (although of course the dashboard widget said $0 for sales, and the ‘performance’ part of Analytics was blank). I then (with Storefront active and the plugins deactivated) re-imported all the historical data and the same error on the Dashboard, and performance data in Analytics is blank. This is the dashboard error in the Woocommerce Status Widget – ‘There has been a critical error on this website. Please check your site admin email inbox for instructions.’ An interesting thing to note, any sales that are made after the site history is deleted, DOES show up in the analytics correctly. The dashboard displays those sales and everything is fine. As soon as I re-import historical data (with or without all the plugins disabled and the theme changed), it causes the errors. I have screenshots and Woocommerce status info (before and after changes) I can PM you if you would like. Thanks
|
Hi @pjjonesnz , Thank you for reporting the issue. Analytics is being developed in another repository: woocommerce/woocommerce-admin. I am going to move your bug report there so that the right team could take a look further. |
For reference: There's already an internal discussion and preliminary investigation of the issue here - p1632748406271600-slack-C01DT6U03HC |
That's great to hear - thanks for your help in getting this resolved. |
Hi @pjjonesnz, thank you so much for reporting this issue. I'm currently looking at this and I'm having a hard time reproducing the issue. I think it may have something to do with your site observing Daylight Savings and I'm not sure of the configuration of your hosting that may trigger the bug. If you don't mind me asking, what's the configuration of your timezone in Settings > General > Timezone? |
Hi @ilyasfoo My timezone is set to Auckland (I'm in New Zealand). We have just moved to daylight savings time, if that is helpful to know? Here is a screenshot: |
@pjjonesnz Yes, that helps! I have now been able to reproduce the issue, it was really tricky to get it right. Your report in the forum had also included important details. In order to hit this bug, you'd have to hit these conditions:
I'm still looking for the exact root cause for this issue, and hopefully will fix it next. In the meantime, a good workaround would be to set the timezone in WordPress settings to non-city timezone (i.e: Auckland site should set to UTC+13) |
Well done! 🥇 What a challenge to find that! I have a session booking plugin that relies on the timezone, so will have a look at the code and see how that might affect it. Looking forward to seeing how the fix goes. |
Thanks! We've found out the root cause. It comes in 2 parts:
I'm currently working on a fix for this. |
Ah - I'm having the same problems and was pointed to this issue by support. Australia also just entered daylight saving too! |
The fix is approved and merged. It's expected to be shipped with WooCommerce Admin version
@bgrinter Hope it wasn't too bad! Thanks again to @pjjonesnz for reporting this bug! |
Support were very helpful :-) |
Thanks so much for solving that so quickly @ilyasfoo Very impressed by your support and problem solving ability! |
The timezone issue was also reported in 4356958-zen; informed the merchant that the issue should be fixed in WC 5.9 and it's slated to be released on 9 November. |
Reported in 4370753-zen as well. |
I'm missing something probably obvious. I still can't get the Dashboards, Analytics, or Marketing pages to load. Before version 2.8 was released, I changed the timezone settings to UTC as suggested, but I still got the error. I ended up waiting for this update. With the updated Woocommerce Admin plugin installed, I am still getting the same error when accessing Analytics and Marketing pages and all Woo-y dashboards. Am I the only one? |
Hi @pjsullivan75, it's possible that you are hitting another issue, as far as I know, this bug shouldn't affect Marketing pages. If you have more details in your log, it'd be helpful to share it (please remove any sensitive information first if you do) in a new issue. |
So i updated to new wordpress version that came out yesterday. I still cant get analytics to work. |
Hi @qtfish, if you can share any detailed error messages, it'll be helpful to identify what the root cause is |
I log into the back end of my wordpress/woocommerce website, click on analytics and the page changes like its loading a new page. but the page never comes up and all i see is this error on an empty page; This site can’t be reachedThe webpage at https://drreefsquarantinedfish.com/wp-admin/admin.php?page=wc-admin&path=/analytics/overview might be temporarily down or it may have moved permanently to a new web address. |
` WordPress EnvironmentWordPress address (URL): https://drreefsquarantinedfish.com Server EnvironmentServer Info: Apache SUHOSIN Installed: – DatabaseWC Database Version: 5.9.0 Post Type Countsacf-field: 1 SecuritySecure connection (HTTPS): ✔ Active Plugins (24)Additional Order Filters for WooCommerce: by Anton Bond – 1.10 Regenerate Thumbnails: by Alex Mills (Viper007Bond) – 3.1.5 Inactive Plugins (0)Must Use Plugins (1)installatron_hide_status_test.php: by – SettingsAPI Enabled: – Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog) Connected to WooCommerce.com: – WC PagesShop base: #113 - /shop/ ThemeName: Enfold TemplatesOverrides: enfold/woocommerce/emails/customer-on-hold-order.php Action SchedulerComplete: 9,410 Pending: 4 Status report informationGenerated at: 2021-11-12 17:38:01 -06:00 |
Thanks for sharing the details, @qtfish. Would you be able to find out the PHP error logs from your hosting? That should tell us what exactly went wrong. You may have to contact your hosting's support if you're unsure how to obtain the logs. |
Search for ... |
Thanks for sharing the logs, @qtfish. Unfortunately, nothing in there provides information about the crash. Are you still experiencing them with the latest WooCommerce Admin plugin? If so, it's most likely a separate issue altogether. |
unfortunately whenever i am on the back end and i click on Analytics i get a blank error page like posted earlier in the forum. |
Since we don't know the reason, it may be worth attempting a conflict test. Self-Service Guide. How to test for conflicts The best way to determine if the issue is being caused by a theme and/or plugin is to:
For more detailed instructions, check out How to test for plugin and theme conflicts. Please let us know how that goes. Tools to help with troubleshooting Meks Quick Plugin Disabler will remember what plugins you had active when you switch it back on. You can clone your site to a staging environment and perform tests without modifying your live site or impacting customers. Many hosts provide staging facilities, so it's worth checking in with them. It’s also possible to do it using the free WP Staging plugin. |
As per the post at plugin support: https://wordpress.org/support/topic/5-7-1-analytics-crashing/page/2/#post-14936550
They have asked me to post this here.
Updated my website to 5.7.1 (from 5.6.0) yesterday. No trouble at all – it all went fine without any trouble.
BUT today, some time after my server rolled over past midnight, the WordPress dashboard now takes 30+ seconds to load, and the Woocommerce widget said that there was a fatal error on the website.
I have managed to get things running by deleting all of the analytics data, using Analytics -> Settings -> Delete Previously Imported Data, and then disabling the Woocommerce widget on the dashboard.
As soon as I re-import all of the analytics data, it crashes things again.
If I disable Woocommerce, the dashboard works again. If I have Woocommerce enabled, but disable everything else, it has the fatal error.
In Analytics Overview (before deleting the analytics data), the Net Sales and Orders charts work, but the performance boxes are blank.
Anyone have a solution for this?
Thanks
Paul
Woocommerce 5.7.1
Blocks 5.7.2
Action Scheduler 3.2.1
Woocommerce Admin 2.6.5
Wordpress Version 5.8.1
Woocommerce DB Version: 5.7.1
The text was updated successfully, but these errors were encountered: