wpisco
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Pending orders batch fails with Division by zero in WC 10.7.0Hi, 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_batchaction 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 zeroerror inwc-admin_import_batch_ordersactions. The failed action shows:
0 => 10
1 => 30
2 => false
Failed: Division by zeroThe order at that position is a completed order paid via “PayPal Pay Later” (
ppcp-gateway) with free shipping. Manually re-syncing this order withOrdersStatsDataStore::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:
The root cause seems to be both a regression in 10.7.0 (uncaught
\DivisionByZeroErrordue tocatch (\Exception $e)inOrdersScheduler::process_pending_batch()) AND something that corrupts the analytics transient when certain orders are processed in batch context. Changing the catch block to\Throwablewould at least allow proper logging of the underlying issue.Thanks for looking into this.
Checked, version 8.0.1 has solved the problem. Thank you very much
Forum: Plugins
In reply to: [WooCommerce PayPal Payments] Payment failedHi. I have the same problem
Greetings
Forum: Plugins
In reply to: [WooCommerce] Analytics > Settings Page Blank after UpdateI have the same problem, blank page woocommerce admin… After installing the WooCommerce Admin pluging and everything seems to work fine.
Thanks, this works!