Graph display error in statistics on WooCommerce
-
After updating to the latest version of WooCommerce yesterday, the statistics graphs have stopped displaying. This is the error:
There was an error retrieving your statistics. Please try again.
I’ve cleared the statistics and WooCommerce caches, but it didn’t fix the problem.
Any help?
The page I need help with: [log in to see the link]
-
Hi @jesuscaceres1,
Thank you for the update. I completely understand how concerning it is to lose access to your analytics graph right after an update, and issues like this can definitely be frustrating.
Since the problem started immediately after updating, it is likely caused either by something going wrong during the update or by a conflict with another active plugin.
Before we dig deeper, please go to WooCommerce > Status > Logs, check for any fatal error logs, and share them via Pastebin. Then return to the Status tab, click Get system report > Copy for support, and share your system status report the same way.
In addition, please try rolling back to the previous WooCommerce version to see whether the issue persists. You can use a plugin like WP Rollback to restore an earlier version.
I’ll be waiting for your findings.
This is the system report.
Before reverting to a previous version of WooCommerce, could you please let me know if there are any errors?
Hi @jesuscaceres1,
Thank you for sharing your detailed system report and for being proactive about checking for errors before rolling back WooCommerce.
From the information provided and the system report, I don’t see any explicit fatal errors or conflicts related directly to WooCommerce core. However, given the complexity of your setup, especially with numerous active plugins including caching (APCu) and multilingual (WPML) plugins, and custom template overrides in your Flatsome child theme, this can sometimes cause issues with the stats graphs.
Here are a few steps I recommend before proceeding with a rollback:
First, let’s try clearing the analytics cache again using the specific tool in WooCommerce:
- Go to WooCommerce → Status → Tools
- Find Clear Analytics Cache and click Clear
- Wait for the process to complete, then check if your analytics graphs are working
- If that doesn’t resolve the issue, you can also try re-importing historical data at Analytics → Settings → Look for analytics settings and try re-importing historical data
- Open your browser’s developer tools (F12 or right-click → Inspect), go to the Console tab, and look for any JavaScript errors when you load the WooCommerce stats page. Errors there can block the graphs from loading.
- Since you have APCu enabled and possibly other caching mechanisms, temporarily disable the APCu Manager and WP-Optimize plugins to rule out cache interference.
- Temporarily disable all non-WooCommerce plugins except those critical for your site (like WPML) and check if the stats graphs reappear. Then, enable plugins one by one to identify any conflicts.
- Switch from your Flatsome child theme to a default WordPress theme (like Storefront) temporarily to see if your theme’s WooCommerce template overrides are causing the problem.
- Go to WooCommerce → Status → Logs and see if there’s any related error
Let us know how it goes!
Thanks Frank, I’ll try what you suggested and let you know the result.
@jesuscaceres1 We’ll be looking forward to your update!
Hi Frank, These are the two main errors in the Chrome console:
GET https://709mediaroom.com/wp-includes/js/dist/api-fetch.min.js?ver=3a4d9af2b423048b0dee https://709mediaroom.com/wp-json/wp/v2/users/me?context=edit&_locale=user 403 (Forbidden)
GET https://709mediaroom.com/wp-includes/js/dist/api-fetch.min.js?ver=3a4d9af2b423048b0dee https://709mediaroom.com/wp-admin/admin-ajax.php?action=rest-nonce 400 (Bad Request)
A screenshot:
https://snipboard.io/YInfMm.jpg
They are repeated quite a few times further down in the console
Hi @jesuscaceres1,
I appreciate you taking the time to share those console errors, it gives a much clearer picture of what is happening on your end. The repeated 403 and 400 issues around the REST API calls can definitely interrupt how Analytics loads, so this insight is very helpful as we narrow things down.
At this point, it will be useful to run a focused plugin conflict test to confirm whether one of the active plugins is blocking or altering those REST requests. You can do this by temporarily deactivating all non WooCommerce plugins, then check the Analytics page again. If the graphs load, you can reactivate each plugin one at a time to find the one causing the conflict. You can follow this guide for a safe and structured conflict test: https://woocommerce.com/document/how-to-test-for-conflicts/
Let me know how the test goes and what you find, and we can continue from there.
You must be logged in to reply to this topic.