Title: wpisco's Replies | WordPress.org

---

# wpisco

  [  ](https://wordpress.org/support/users/wpisco/)

 *   [Profile](https://wordpress.org/support/users/wpisco/)
 *   [Topics Started](https://wordpress.org/support/users/wpisco/topics/)
 *   [Replies Created](https://wordpress.org/support/users/wpisco/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/wpisco/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/wpisco/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/wpisco/engagements/)
 *   [Favorites](https://wordpress.org/support/users/wpisco/favorites/)

 Search replies:

## Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Pending orders batch fails with Division by zero in WC 10.7.0](https://wordpress.org/support/topic/pending-orders-batch-fails-with-division-by-zero-in-wc-10-7-0/)
 *  Thread Starter [wpisco](https://wordpress.org/support/users/wpisco/)
 * (@wpisco)
 * [2 months, 3 weeks ago](https://wordpress.org/support/topic/pending-orders-batch-fails-with-division-by-zero-in-wc-10-7-0/#post-18896908)
 * Hi, thanks for the detailed reply.
 * I have important updates after further testing:
 * **1. Temporary fix found:**
 * Clearing WooCommerce transients and analytics cache resolved the recurring batch
   failure. After running:
    - WooCommerce → Status → Tools → Clear transients (both buttons: “Clear transients”
      and “Clear expired transients”)
    - WooCommerce → Status → Tools → Clear analytics cache
 * The recurring `wc-admin_process_pending_orders_batch` action now runs successfully
   and shows “No orders to process” in the logs. So a corrupted transient was almost
   certainly involved in the failure.
 * **2. The “Import historical data” tool also fails:**
 * Contrary to my initial report, the manual import tool also gets stuck. When I
   tried to import the last 30 days, it stopped at order 191 of 266 with the same`
   Division by zero` error in `wc-admin_import_batch_orders` actions. The failed
   action shows:
   0 => 101 => 302 => falseFailed: Division by zero
 * The order at that position is a completed order paid via “PayPal Pay Later” (`
   ppcp-gateway`) with free shipping. Manually re-syncing this order with `OrdersStatsDataStore::
   sync_order()` works without errors, but it consistently breaks the batch importer.
 * **3. Current state:**
    - Recurring batch: working again after clearing transients
    - Historical import: still fails when range includes that specific order
    - Store operations: working perfectly
 * **4. System Status Report:**
 * [https://pastebin.com/GJ0tnzkx](https://pastebin.com/GJ0tnzkx)
 * The root cause seems to be both a regression in 10.7.0 (uncaught `\DivisionByZeroError`
   due to `catch (\Exception $e)` in `OrdersScheduler::process_pending_batch()`)
   AND something that corrupts the analytics transient when certain orders are processed
   in batch context. Changing the catch block to `\Throwable` would at least allow
   proper logging of the underlying issue.
 * Thanks for looking into this.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Notification - Custom Notifications and Alerts for WordPress] New Post Comment no send email author](https://wordpress.org/support/topic/new-post-comment-no-send-email-author/)
 *  Thread Starter [wpisco](https://wordpress.org/support/users/wpisco/)
 * (@wpisco)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/new-post-comment-no-send-email-author/#post-15011863)
 * Checked, version 8.0.1 has solved the problem. Thank you very much
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce PayPal Payments] Payment failed](https://wordpress.org/support/topic/payment-failed-19/)
 *  [wpisco](https://wordpress.org/support/users/wpisco/)
 * (@wpisco)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/payment-failed-19/#post-14955244)
 * Hi. I have the same problem
 * Greetings
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Analytics > Settings Page Blank after Update](https://wordpress.org/support/topic/analytics-settings-page-blank-after-update/)
 *  [wpisco](https://wordpress.org/support/users/wpisco/)
 * (@wpisco)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/analytics-settings-page-blank-after-update/#post-14205709)
 * I have the same problem, blank page woocommerce admin… After installing the WooCommerce
   Admin pluging and everything seems to work fine.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Advanced AJAX Product Filters] Hello, the widget titel is set as h3. I have SEO problems with h3, so I want t](https://wordpress.org/support/topic/hello-the-widget-titel-is-set-as-h3-i-have-seo-problems-with-h3-so-i-want-t/)
 *  Thread Starter [wpisco](https://wordpress.org/support/users/wpisco/)
 * (@wpisco)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/hello-the-widget-titel-is-set-as-h3-i-have-seo-problems-with-h3-so-i-want-t/#post-13382913)
 * Thanks, this works!

Viewing 5 replies - 1 through 5 (of 5 total)