Analytics issue after 10 december
-
December 10, 2025, I applyed the update to WooCommerce 10.4, which introduced lazy loading of the analytics API to improve performance. This change may cause data processing crashes or slowdowns, especially if you have extensions or configurations that aren’t yet compatible with the new API management.
Php errors don’t show nothing related to woocomemrce and I have the issue also disabling all the plugins.I tryed to use this code into functions.php (this disables lazy loading for the wc-analytics namespace only, while maintaining the performance benefits for the rest of the WooCommerce API.):
add_filter(
'woocommerce_rest_should_lazy_load_namespace',
function( $should_lazy_load, $namespace ) {
// Disabilita il lazy loading solo per l'API di analytics
if ( 'wc-analytics' === $namespace ) {
return false;
}
return $should_lazy_load;
},
10,
2
);but it not worked, so I tryed this line of code (in this way all REST namespaces are loaded as before, without lazy loading.):
add_filter( 'woocommerce_rest_should_lazy_load_namespace', '__return_false' );but still not working.
From 10 december 2025 till today there are more of 10 orders received, completed ,ecc..
I made multiple tiems the action to go to WooCommerce → Status → Tools, and run “Regenerate WooCommerce Analytics data” but without success.
Here the woocommerce status: https://gist.github.com/matteoraggi/65bd3fa1d38cd6ed120f624ccebcb344
About the planned actions, I have multiple of them cancelld and waiting, for example many of these are cancelled:
wc-admin_import_batch_init_orders
wc-admin_import_batch_init_customers
fetch_patterns
And the daily job/task is not planned.-
This topic was modified 6 months ago by
matteo raggi.
The page I need help with: [log in to see the link]
-
This topic was modified 6 months ago by
-
Hi @whichtransfers,
I can see you’re experiencing analytics data processing issues after updating to WooCommerce 10.4, and it sounds like the lazy loading changes are causing problems with your analytics data regeneration.
Looking at your situation, the issue seems to be with the Action Scheduler not properly processing the analytics import tasks. The cancelled
wc-admin_import_batch_init_ordersandwc-admin_import_batch_init_customersactions are preventing your analytics data from being regenerated.I also looked at your System Report and noticed:
- “Daily Cron: ❌ Non programmato” (Not scheduled). This is critical for analytics data processing.
- You have 14 cancelled actions with invalid timestamps, which indicates corrupted Action Scheduler data.
- Your
wpxm_actionscheduler_logstable is 7.20MB, suggesting many failed processing attempts.
Here are some steps to try:
- Go to WooCommerce → Status → Scheduled Actions and cancel/delete any failed or stuck analytics-related actions.
- Add this to your wp-config.php temporarily to test if cron is working:
define('WP_DEBUG', true); define('WP_DEBUG_LOG', true);- Try visiting https://anticaenotecagiulianelli.com/wp-cron.php directly in your browser to trigger cron manually.
Let us know how that helps.
thanks, after deleting the scheduled actions and after adding the line to wp-config.php , going to the wp-cron.php page I just see a white page:
Then I tred to import historical data from 10 december 2025 and It generated into the scheduled actions 3 new lines with status “waiting”:
wc-admin_import_batch_init_customer
wc-admin_import_batch_init_orders
action_scheduler/migration_hook
It just say that has 0 clients to import and 25 orders to import, but after 2 minutes it did’nt ended yet.. and probably the scheduled actions will expire.
I disabled this line of wp-config.php because the errors are only about wpml deprecated stuff.define('WP_DEBUG', true); define('WP_DEBUG_LOG', true);-
This reply was modified 5 months, 4 weeks ago by
matteo raggi.
Hi @whichtransfers,
Thanks for the detailed follow-up, that’s helpful.
A white page when visiting wp-cron.php is actually expected in many cases and doesn’t necessarily indicate a failure. What matters more is that the analytics import actions are being created but are not progressing.
Seeing “0 customers” and a limited number of orders is normal if customers were already imported previously or if some orders were partially processed before the issue occurred.
Since the actions remain in a “waiting” state, and your System Status shows that the Daily Cron is not scheduled, this strongly suggests that WP-Cron is not running on the server. The fact that actions are queued but never completed, and eventually expire or get cancelled, points to a cron execution issue rather than a WooCommerce analytics bug.
At this stage, this is very likely environment-related. Things to check with your hosting provider include whether DISABLE_WP_CRON is defined in wp-config.php, whether loopback requests are blocked, whether a server-level cron job is required, and whether the site can make HTTP requests to itself.
Since you’ve already disabled all plugins and attempted to disable REST API lazy loading entirely, and the issue still persists, this further indicates that the WooCommerce 10.4 lazy-loading change itself is not the cause.
Before running another analytics regeneration, I’d recommend confirming that WP-Cron is actually running, clearing any cancelled or expired scheduled actions, and then re-running “Regenerate WooCommerce Analytics data” once cron execution is confirmed.
Let us know what your hosting provider says about WP-Cron or server cron configuration, and we can take it from there.
Thanks, after sleeping it updated the orders till 18 of december, but still missing the completed orders of 19 and 20 december and when trying to import them it don’t see new orders, just only new clients to import, more of 4000 that never are really updating (I was importing many clients because this website few month ago was not into woocommerce but made with a custom code). I will investigate around the wp-cron, thanks!
-
This reply was modified 5 months, 4 weeks ago by
matteo raggi.
Hi there!
Thank you for the update. Could you please first fix the daily cron schedule issue by following these steps:Please install the WP Crontrol plugin and check whether the following hook exists under Tools → Cron Events: wc_admin_daily
If you don’t see this hook, that would explain why the Daily Cron is showing as not scheduled. In that case, please try adding the
wc_admin_dailyevent using the WP Crontrol plugin and see if that resolves the issue.You can add the event by following these steps:
- Click “Add Cron Event”
- Fill in the fields as follows:
Hook name
wc_admin_dailyArguments
- Leave this field empty
Next run
- Select Now (or set a time a few minutes in the future)
Recurrence
- Select Once Daily
- Click Add Event
After that, please go to WooCommerce → Status → Tools, clear the Analytics cache, and then try to reimport the historical data to see if that works for you.
Let us know what you find.Yes, here wp-admin/tools.php?page=action-scheduler (Tools → Cron Events)
wc_admin_dailyis completed, it was running around 10 hours ago.So then I just cleared the Analytics cache, and then importing the analytics it say that it has 4389 clients to import (as always, because it looks that it never start and end to import the clients) and 1 order to import, but the orders to import should be at least 3, because from 18 november till today for now there are 3 completed orders, not 1..
Hi @whichtransfers,
Thanks for the update. I can see how frustrating this is when analytics imports run but the order numbers still do not match what is in the store, and I am keen to help you get this cleared up.
Since wc_admin_daily is now completing, this confirms cron is running, which is good progress. The remaining issue is very likely related to Action Scheduler struggling to finish large customer import batches, especially considering the thousands of historical customers from the earlier custom setup. When these jobs do not fully complete, order imports can appear incomplete or skipped.
At this point, the best next step is to focus on Action Scheduler health and your hosting environment. Please check in WooCommerce → Status → Scheduled Actions whether analytics related jobs are completing or timing out, and consider asking your host to confirm support for WP Cron and loopback requests, or to set up a real server cron if recommended.
This guide explains how analytics imports work and what to check when data is incomplete:
https://woocommerce.com/document/woocommerce-analytics/#analytics-settings__import-historical-data.Once the customer import backlog finishes successfully, the order data should start updating correctly. Let us know how it goes.
This is what answered the support:
I could see that the WordPress admin panel is showing the following error:
=========
There was a problem launching a call to the WP-Cron system on your website. This means that WP-Cron events on your website may not work. The problem was:
Unexpected HTTP response code: 403
=========As the domain is using Cloudflare Under Attack mode, that might have caused this trouble.
So you can try the 2 options below.
Option 1: Add ‘/cron.php’ to the allow list in the firewall and create a page rule that excludes wp-cron.php from the challenge.
Option 2 : Use a System Cron Instead of WP-Cron
1. In wp-config.php, add:
define(‘DISABLE_WP_CRON’, true);2. Set up a cron job on your cPanel to run every 5 minutes:
wget -q -O – https://anticaenotecagiulianelli.com/wp-cron.php?doing_wp_cron >/dev/null 2>&1This method is more reliable and won’t be affected by Cloudflare or other security layers.So then for now I just tryed to disable the under attack mode, and it imported 3 orders of the last week theoretically but I don’t see updates in the analycits, the orders are still up to 18 of december and missing orders of 19, 29, 21 december, 22 december..
After sleeping I will try the other suggestions, thanks.
Hi there,
Thank you for sharing the update and the details from your hosting provider. I understand your concern, especially with the missing orders and delayed analytics updates.
Since you temporarily disabled Cloudflare Under Attack mode and noticed that some pending orders were processed, this further suggests that WP-Cron was being blocked. At this point, we recommend clearing all caches, including the site cache, server or hosting cache, and any analytics related cache, and then checking again to see if the analytics data updates correctly.
Additionally, please go ahead and try the other options suggested by your host, in particular setting up a server-side cron job as outlined. This approach is generally more reliable and helps avoid interference from security layers such as Cloudflare.
Once you have tried those steps, please let us know how it goes or if you notice any changes. We will be happy to assist further.
wp-cron.php is running regularly even without the Cloudflare Under Attack mode, accoridng to the hosting support.-.. now If I go to analysis settings, and I try to select to import from 18 of december till today, it answerd that there are not clients and orders to import, but this is not real..
Thank you for the update @whichtransfers,
To better understand the current status of the analytics issue, could you please clarify what is still missing or not working as expected? I’ve reviewed the entire thread and noticed that the initial problem was related to CRON not running properly and producing errors, which now appears to be resolved.
To make sure we’re aligned, can you confirm whether the issue is that the orders shown in WooCommerce Analytics are incomplete or inaccurate? In some messages, you mentioned 10 orders, in others 4,000, and there was also a reference to additional figures, which makes it a bit unclear what the exact problem is right now.
At this point, please let us know the current state of the issue so we can better assist. When you reply, kindly generate a fresh system status report and share it via pastebin.com by going to WooCommerce > Status > Get system report > Copy for support.
I changed server yesterday, moving from fastcomet to siteground, anyway the issue is the same.
In the past Analytics was showing data only till 10 of december 2025, from few days only till 18 of dcember. It is a mistery to me why it was able to analyze some orders and why some not. Anyway in the settings if I set to import the data of the last 7 weeks, it says that there are no clients and orders to import, and if I try to import all, it says that there are 4389 clients to import and 0 orders, but I can see easily that there are soem other orders completed after the 18 of december. And it never was able to import the clients..
Here the status of the new server: https://pastebin.com/2LUWm0gx
-
This reply was modified 5 months, 3 weeks ago by
matteo raggi.
-
This reply was modified 5 months, 3 weeks ago by
matteo raggi.
Thank you for the update and for getting back to us, @whichtransfers.
I’ve reviewed your system status report and can see that while WP Cron is enabled, the Daily Cron is still showing as not scheduled. Issues like this are often related to cron jobs or scheduled actions not running as expected.
As a next step, please contact SiteGround support to help you disable WP Cron and set up a real server cron job to run every 30 minutes or hourly. Once that’s in place, please clear the analytics cache by going to WooCommerce > Status > Tools, then try importing the data again and let me know how it goes.
Daily cron of 1 hour set.
Cleared the analytics cache by going to WooCommerce > Status > Tools .
Now all the planned actions are working well, but in the analytics there are still the orders updated till 18 of december 2026.
Going to https://anticaenotecagiulianelli.com/wp-cron.php is still giving a white page.Thank you for the update @whichtransfers,
Could you please share a new system status report via pastebin so we can confirm that the daily cron is now running as expected?
Once that’s shared and confirmed, the next step will be to clear the Analytics cache and transients, then re-import the historical data one more time. I’ll be looking forward to reviewing the updated report.
You must be logged in to reply to this topic.