Skip to navigation Skip to main content
Free on WordPress.org 4.9 / 5 WordPress.org Explore both Plugins
Free on WordPress.org 4.9 / 5 WordPress.org Explore both Plugins
  • WordPress
    Products
    Smart Cycle DiscountsDiscount automation › TrustLensCustomer trust intel › Cycle AI AIPlain-English campaigns ›
    New pluginComing soon
    Resources & toolsDocs, pricing, support ›
    Smart Cycle Discounts

    Smart Cycle Discounts

    Automate WooCommerce discount campaigns — schedule, target, and measure.

    62%
    Free Pro $59 5 discount types Recurring
    Jump into the page
    How it works Capabilities Promo codes Pricing
    Docs
    Getting started Discount types Scheduling
    Explore Smart Cycle Discounts → Changelog
    TrustLens

    TrustLens

    Customer trust intelligence — score buyers, spot abuse, protect revenue.

    Trust 86
    Free Pro $79 6 segments Abuse detection
    Jump into the page
    How it works Detection Outcomes Pricing
    Docs
    Trust scoring Detection modules Card-testing defense
    Explore TrustLens → Verify a report Changelog

    Cycle AI inside Smart Cycle Discounts

    Describe a sale in plain English — Cycle AI builds the whole campaign.

    “20% off hoodies this weekend”
    Included in Pro Natural language Catalog-aware
    See it work

    Type a sentence, get a ready-to-launch discount campaign that already understands your products, prices, and schedule.

    Live demo How it works
    Meet Cycle AI →

    A new plugin Coming soon

    Something is loading in the lab. Join the list to get the reveal first.

    Notify me on launch →

    Resources & tools

    Everything around the plugins — docs, free tools, and help.

    Learn
    Documentation Pricing & bundle Support
    Free tools
    Discount Calculator Sale Calendar
    Stay current
    SCD changelog TrustLens changelog
    Compare all plans →
    Secure checkout WordPress.org 14-day refund View pricing →
  • Affiliate
    Program
    OverviewHow the program works How it works4 steps from apply to earn Commission details30% · 60-day cookie · recurring
    Get started
    Apply nowOpen Takes ~2 minutes Earnings calculatorEstimate your monthly income FAQPayouts, cookies, renewals
    Resources
    Brand kitLogos, banners, copy, social PlaybookTactics that actually convert FTC disclosureHow to disclose properly Affiliate termsFull program agreement Contact teamOpen the contact form
    Earn 30% recurring on every saleFree to join · 60-day cookie · monthly PayPal payouts Apply now
  • Blog
  • DOCS
    Docs & resources

    Guides, references, and answers for every Webstepper plugin.

    Smart Cycle DiscountsAutomated WooCommerce discount campaigns
    Getting started› Discount types› Cycle AI›
    TrustLensCustomer 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 make WordPress tools that solve real problems.

    Learn more
    Built from experienceTools we use ourselves
    Time is preciousSimple, intuitive UX
    Real supportTalk to the founders
    Legal & contact
    Contact us Privacy policy Terms of service Refund policy
    14-day money-backNo 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/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/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 18, 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 — plus 10% off either of our plugins as a welcome.

We respect your privacy. Unsubscribe at any time.

10% off welcome gift — A code for either plugin, on us
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...
10% off inside
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.

Products

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

Company

  • About Us
  • Blog
  • Contact
  • Affiliates
  • Log In

Resources

  • Help Center
  • Guides
  • Verify a report
  • 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

Get 10% off
Smart Cycle Discounts or TrustLens

Drop your email and we’ll send you a unique, single-use code — works on either plugin at checkout. New customers, first payment.

23 hours
:
59 minutes
:
59 seconds

No spam. Unsubscribe anytime.

  • WordPress
    Back
    Products
    Smart Cycle DiscountsDiscount automation › TrustLensCustomer trust intel › Cycle AI AIPlain-English campaigns ›
    New pluginComing soon
    Resources & toolsDocs, pricing, support ›
    Smart Cycle Discounts

    Smart Cycle Discounts

    Automate WooCommerce discount campaigns — schedule, target, and measure.

    62%
    Free Pro $59 5 discount types Recurring
    Jump into the page
    How it works Capabilities Promo codes Pricing
    Docs
    Getting started Discount types Scheduling
    Explore Smart Cycle Discounts → Changelog
    TrustLens

    TrustLens

    Customer trust intelligence — score buyers, spot abuse, protect revenue.

    Trust 86
    Free Pro $79 6 segments Abuse detection
    Jump into the page
    How it works Detection Outcomes Pricing
    Docs
    Trust scoring Detection modules Card-testing defense
    Explore TrustLens → Verify a report Changelog

    Cycle AI inside Smart Cycle Discounts

    Describe a sale in plain English — Cycle AI builds the whole campaign.

    “20% off hoodies this weekend”
    Included in Pro Natural language Catalog-aware
    See it work

    Type a sentence, get a ready-to-launch discount campaign that already understands your products, prices, and schedule.

    Live demo How it works
    Meet Cycle AI →

    A new plugin Coming soon

    Something is loading in the lab. Join the list to get the reveal first.

    Notify me on launch →

    Resources & tools

    Everything around the plugins — docs, free tools, and help.

    Learn
    Documentation Pricing & bundle Support
    Free tools
    Discount Calculator Sale Calendar
    Stay current
    SCD changelog TrustLens changelog
    Compare all plans →
    Secure checkout WordPress.org 14-day refund View pricing →
  • Affiliate
    Back
    Program
    OverviewHow the program works How it works4 steps from apply to earn Commission details30% · 60-day cookie · recurring
    Get started
    Apply nowOpen Takes ~2 minutes Earnings calculatorEstimate your monthly income FAQPayouts, cookies, renewals
    Resources
    Brand kitLogos, banners, copy, social PlaybookTactics that actually convert FTC disclosureHow to disclose properly Affiliate termsFull program agreement Contact teamOpen the contact form
    Earn 30% recurring on every saleFree 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 DiscountsAutomated WooCommerce discount campaigns
    Getting started› Discount types› Cycle AI›
    TrustLensCustomer 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 make WordPress tools that solve real problems.

    Learn more
    Built from experienceTools we use ourselves
    Time is preciousSimple, intuitive UX
    Real supportTalk to the founders
    Legal & contact
    Contact us Privacy policy Terms of service Refund policy
    14-day money-backNo 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