Skip to navigation Skip to main content

Free Grow sales & stop fraud — Smart Cycle Discounts + TrustLens, free on WordPress.org Two free WooCommerce plugins

Explore both

Free Grow sales & stop fraud — Smart Cycle Discounts + TrustLens, free on WordPress.org Two free WooCommerce plugins

Explore both
  • WordPress
    WordPress Plugins
    View all
    Smart Cycle Discounts logo

    Smart Cycle Discounts

    Automate discount campaigns with scheduling, analytics, and smart product targeting.

    7 Discount Types Cycle AI
    Free Pro from $59
    TrustLens logo

    TrustLens

    Customer trust intelligence for WooCommerce. Score customers, spot abuse, protect revenue.

    Trust Scores Abuse Detection
    Free Pro from $79

    New Plugin

    Coming Soon

    Something exciting is in the works. Join the waitlist to be first to know.

    Get Notified
    Notify Me
    Secure Checkout
    WordPress.org
    14-Day Refund
    Resources
    Documentation Guides & tutorials
    Discount Calculator Plan your strategy
    Support Get help
    SCD Changelog Discount plugin updates
    TrustLens Changelog Trust intelligence updates
    Get notified on new releases
  • Affiliate
    Program
    Overview How the program works
    How It Works 4 steps from apply to earn
    Commission Details 30% · 60-day cookie · recurring
    Get Started
    Apply Now Open
    Takes ~2 minutes
    Earnings Calculator Estimate your monthly income
    FAQ Payouts, cookies, renewals
    Resources
    Brand Kit Logos, banners, copy, social
    Playbook Tactics that actually convert
    FTC Disclosure How to disclose properly
    Affiliate Terms Full program agreement
    Contact Team Open the contact form
    Earn 30% recurring on every sale Free to join · 60-day cookie · monthly PayPal payouts
    Apply Now
  • Blog
  • DOCS
    Docs & Resources

    Guides, references, and answers for every Webstepper plugin.

    Smart Cycle Discounts Automated WooCommerce discount campaigns
    Getting started › Discount types › Cycle AI ›
    TrustLens Customer trust & fraud intelligence
    Trust scoring › Detection modules › Card-testing defense ›
    Docs Home Guides FAQ Pricing Support
    WordPress tools that solve real problems
  • Contact Us
  • About
    Company

    Our Story

    Founded 2020

    Built by store owners, for store owners. We create WordPress tools that solve real problems.

    Learn more
    Built from Experience Real solutions we use ourselves
    Time is Precious Simple, intuitive tools
    Real Support Talk to the founders
    Legal & Contact
    Contact Us Privacy Policy Terms of Service Refund Policy
    14-Day Money-Back Guarantee No questions asked
Popular requests
  • smart cycle discounts
  • trustlens
  • chargeback protection
GET STARTED

Glossary

1
  • TrustLens Glossary

Detection Modules

9
  • Card Testing Defense
  • Chargeback Tracking
  • Shipping Anomalies
  • Linked Accounts Detection
  • Category Aware Risk
  • Coupon Abuse Detection
  • Order Pattern Analysis
  • Return Abuse Detection
  • Modules Overview

Card Testing Defense

9
  • Attack History
  • Allowlists
  • Geo Diversity
  • Auto Escalation
  • Fingerprinting
  • VIP Bypass
  • Panic Button
  • Velocity Thresholds
  • Overview

Chargeback Monitor

7
  • Ratio Email Alerts
  • Dispute Evidence Report
  • Chargeback Monitor
  • Manual Dispute Entry
  • Stripe WooPayments Ingestion
  • Card Network Thresholds
  • Chargeback Ratio Speedometer

Customer Management

7
  • Admin Notes
  • Checkout Enforcement
  • Order Trust Column
  • Bulk Actions
  • Blocking and Allowlisting
  • Customer Detail Profile
  • Customer List

Automation

7
  • Async Dispatch Retries
  • Webhooks and HMAC
  • Rule Inspector
  • Actions Reference
  • Conditions Reference
  • Triggers Reference
  • Automation Overview

Trust Scoring

5
  • Account Age Loyalty Bonus
  • Signals Explained
  • Six Customer Segments
  • The 0–100 Score
  • How Trust Scoring Works
View Categories
  • Home
  • Docs
  • Trustlens
  • Troubleshooting
  • Historical Sync Issues

Historical Sync Issues

5 min read

Historical Sync rebuilds TrustLens customer profiles from your existing WooCommerce orders, refunds, and disputes. It runs in the background through Action Scheduler in small batches. When it works, it’s transparent — the Dashboard banner shows progress and then disappears. When it doesn’t, the failure modes are all in the queue or the data shape. This page covers diagnosis and fixes.


Common Symptoms #

  • Sync doesn’t start after clicking Run Historical Sync
  • Sync starts but stalls partway through
  • Sync completes but customer counts look wrong
  • Sync runs but trust scores aren’t being populated

Symptom 1: Sync Doesn’t Start #

Verify the Click Registered #

Refresh the Dashboard after clicking Run Historical Sync. You should see:

  • The banner change from “Run Historical Sync” to a progress bar
  • Or a notification “Sync queued”

If neither happened, the form submission may have failed. Check the browser console for JavaScript errors and try again.

Verify Action Scheduler Picked Up the Job #

Go to WooCommerce → Status → Scheduled Actions. Filter by hook trustlens/historical_sync_batch. You should see at least one Pending action.

If no actions are queued, the click didn’t actually trigger queueing. Likely a JavaScript or AJAX error. Check the browser console.

Verify Action Scheduler Is Running #

Even if jobs are queued, they need to actually run. Look at the same Scheduled Actions list — are any actions completing? If not, WP-Cron is stalled. See Scores Not Updating Step 3 for cron fixes.


Symptom 2: Sync Starts but Stalls #

The progress bar updates initially but stops moving for 30+ minutes.

Action Scheduler Queue Health #

  1. Check Scheduled Actions list
  2. Filter to trustlens/historical_sync_batch
  3. Look at the most recent state — are actions completing, or stuck Pending?

Memory Issues #

Stalls often correlate with memory exhaustion mid-batch. Symptoms:

  • Recent batches show Failed state with memory errors
  • PHP error log shows “Allowed memory size exhausted”

Fix: raise PHP memory limit. Add to wp-config.php:

define('WP_MEMORY_LIMIT', '512M');
define('WP_MAX_MEMORY_LIMIT', '512M');

Database Lock Contention #

On very busy stores, the sync’s writes can contend with normal WooCommerce traffic. Symptoms:

  • Sync slows dramatically during peak traffic hours
  • Database deadlock errors in logs

Fix: run sync during off-peak hours; lower batch size in Settings → Data → Historical Sync batch size.

HPOS Migration In Progress #

If WooCommerce is mid-HPOS-migration, TrustLens sync may pause until the migration completes. Verify under Tools → Scheduled Actions whether HPOS migration jobs are still running.


Symptom 3: Sync Completes but Counts Look Wrong #

The banner disappears, but the customer counts in the Dashboard don’t match your expectations.

Check the Minimum Orders Threshold #

Customers below the minimum-orders threshold (default 3) stay in segment Normal at score 50 — they show up in the customer list but don’t contribute to “scored customers” metrics in the same way.

If most of your store’s customers have only 1–2 orders each, they’ll be pinned at 50 and your segment distribution will be heavily Normal.

Check Order Status Filter #

TrustLens counts orders in the completed status by default. If many of your orders are in processing or other statuses, they don’t count toward the customer’s total_orders.

Verify with a sample: pick a customer, count their completed orders in WooCommerce, compare to total_orders in TrustLens.

Check Date Range #

By default, sync processes all historical orders. Some stores configure a date filter — verify Settings → Data → Historical Sync date range.


Symptom 4: Sync Runs but Scores Aren’t Populated #

The sync completes, customer records exist, but trust scores all show 50.

Module Toggles #

If all detection modules are disabled, sync builds the customer records but no signals fire. Verify Settings → Modules — at least Returns and Orders should be on.

Sync Skipped Score Calculation #

The sync writes raw event data first, then calls score calculation. If the calculation step was skipped (interrupted sync, partial completion), the scores aren’t updated.

Fix: bulk recalculate from the Customers list after the sync completes.


Symptom 5: Sync Repeatedly Fails on the Same Order #

One specific order causes the sync to fail. The Scheduled Actions log shows the same order ID erroring repeatedly.

Corrupted Order Data #

Some old WooCommerce installations have orders with corrupted or missing data — null line items, malformed shipping addresses, etc. The sync may not handle these gracefully.

Workarounds:

  • Inspect the order in WooCommerce; fix or delete if corrupted
  • Add the order ID to the sync skip list (Settings → Data → Skip orders)
  • Report the issue with the failing order’s structure

HPOS-Specific Issues #

Some HPOS edge cases produce orders that look slightly different from legacy orders. Verify the failing order’s HPOS state — is it fully migrated or partially?


Symptom 6: Sync Completes Too Fast #

You have 10,000 orders but the sync completes in 30 seconds. Suspicious.

Possible causes:

  • Sync was already partially complete (deduplication skipped processed orders)
  • Date filter restricted the range
  • Order status filter excluded most orders
  • HPOS / legacy table mismatch causing the wrong table to be queried

Verify: spot-check by opening a known order’s customer profile in TrustLens. Are they listed? Are their order count and refund stats correct?


Rerunning Sync #

Sync is idempotent — it dedupes by order ID and won’t double-count anything. Safe to rerun multiple times.

  1. Settings → Data → Run Historical Sync
  2. Confirm

If sync has previously completed for an order and the underlying order hasn’t changed, the rerun is fast — it skips already-processed records.


Reset and Resync #

If you suspect sync data is corrupted:

  1. Back up the database
  2. Settings → Data → Delete all TrustLens data
  3. Run Historical Sync again

This rebuilds from scratch. Disruptive but produces a clean slate.


Sync Progress Visibility #

While sync is running:

  • Dashboard banner shows progress percentage and ETA
  • Settings → Data → Sync Status shows detailed batch progress
  • Scheduled Actions list shows individual batch jobs

Patience: sync of 100,000+ orders can take hours. Don’t repeatedly click Run — that just queues redundant jobs.

Updated on June 4, 2026

What are your Feelings

  • Happy
  • Normal
  • Sad

Share This Article :

  • Facebook
  • X
  • LinkedIn
  • Pinterest
Checkout Blocking Not WorkingScores Not Updating
Table of Contents
  • Common Symptoms
  • Symptom 1: Sync Doesn't Start
    • Verify the Click Registered
    • Verify Action Scheduler Picked Up the Job
    • Verify Action Scheduler Is Running
  • Symptom 2: Sync Starts but Stalls
    • Action Scheduler Queue Health
    • Memory Issues
    • Database Lock Contention
    • HPOS Migration In Progress
  • Symptom 3: Sync Completes but Counts Look Wrong
    • Check the Minimum Orders Threshold
    • Check Order Status Filter
    • Check Date Range
  • Symptom 4: Sync Runs but Scores Aren't Populated
    • Module Toggles
    • Sync Skipped Score Calculation
  • Symptom 5: Sync Repeatedly Fails on the Same Order
    • Corrupted Order Data
    • HPOS-Specific Issues
  • Symptom 6: Sync Completes Too Fast
  • Rerunning Sync
  • Reset and Resync
  • Sync Progress Visibility
Newsletter

Insights that grow your business

Join thousands of WooCommerce store owners who get actionable tips, plugin updates, and industry news every week.

We respect your privacy. Unsubscribe at any time.

Weekly updates — Fresh content every Tuesday
Exclusive content — Tips you won't find on our blog
Early access — Be first to know about new plugins
Webstepper
Weekly WooCommerce Tips
Just now
This week: 5 proven strategies to boost your average order value using smart discount campaigns...
New issue!
Webstepper

Tools for store owners who'd rather grow than grind.

Simple, powerful plugins that help WooCommerce store owners sell more — without the learning curve.

500+ happy stores

Products

  • Smart Cycle Discounts
  • TrustLens
  • Discount Calculator
  • Sale Calendar

Company

  • About Us
  • Blog
  • Contact
  • Affiliates

Resources

  • Help Center
  • Guides
  • Affiliate Program
  • Become a Partner

Questions? We actually answer.

Real humans, real help. No bots, no runaround. Usually within a few hours.

Get in touch
Operated by Setmood LLC · 7901 4th St N, St Petersburg, FL 33702 · United States

© 2026 Webstepper. All rights reserved.

Privacy Terms Refunds
Visa Mastercard PayPal Apple Pay Google Pay & more
Limited Time Offer

Save 15% on
SCD, TrustLens & the Bundle

Smart Cycle Discounts and TrustLens — buy either plugin or grab both in the bundle. Use code at checkout.

WELCOME15
23 hours
:
59 minutes
:
59 seconds
Claim My Discount

Just want one? Smart Cycle Discounts · TrustLens

  • WordPress
    Back
    WordPress Plugins
    View all
    Smart Cycle Discounts logo

    Smart Cycle Discounts

    Automate discount campaigns with scheduling, analytics, and smart product targeting.

    7 Discount Types Cycle AI
    Free Pro from $59
    TrustLens logo

    TrustLens

    Customer trust intelligence for WooCommerce. Score customers, spot abuse, protect revenue.

    Trust Scores Abuse Detection
    Free Pro from $79

    New Plugin

    Coming Soon

    Something exciting is in the works. Join the waitlist to be first to know.

    Get Notified
    Notify Me
    Secure Checkout
    WordPress.org
    14-Day Refund
    Resources
    Documentation Guides & tutorials
    Discount Calculator Plan your strategy
    Support Get help
    SCD Changelog Discount plugin updates
    TrustLens Changelog Trust intelligence updates
    Get notified on new releases
  • Affiliate
    Back
    Program
    Overview How the program works
    How It Works 4 steps from apply to earn
    Commission Details 30% · 60-day cookie · recurring
    Get Started
    Apply Now Open
    Takes ~2 minutes
    Earnings Calculator Estimate your monthly income
    FAQ Payouts, cookies, renewals
    Resources
    Brand Kit Logos, banners, copy, social
    Playbook Tactics that actually convert
    FTC Disclosure How to disclose properly
    Affiliate Terms Full program agreement
    Contact Team Open the contact form
    Earn 30% recurring on every sale Free to join · 60-day cookie · monthly PayPal payouts
    Apply Now
  • Blog
  • DOCS
    Back
    Docs & Resources

    Guides, references, and answers for every Webstepper plugin.

    Smart Cycle Discounts Automated WooCommerce discount campaigns
    Getting started › Discount types › Cycle AI ›
    TrustLens Customer trust & fraud intelligence
    Trust scoring › Detection modules › Card-testing defense ›
    Docs Home Guides FAQ Pricing Support
    WordPress tools that solve real problems
  • Contact Us
  • About
    Back
    Company

    Our Story

    Founded 2020

    Built by store owners, for store owners. We create WordPress tools that solve real problems.

    Learn more
    Built from Experience Real solutions we use ourselves
    Time is Precious Simple, intuitive tools
    Real Support Talk to the founders
    Legal & Contact
    Contact Us Privacy Policy Terms of Service Refund Policy
    14-Day Money-Back Guarantee No questions asked
We use cookies to improve your experience on our website. By browsing this website, you agree to our use of cookies.
More info More info Accept