Title: DEBUG get_current_orders_pending_sync_count
Last modified: November 24, 2023

---

# DEBUG get_current_orders_pending_sync_count

 *  Resolved [iconnect858](https://wordpress.org/support/users/iconnect858/)
 * (@iconnect858)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/debug-get_current_orders_pending_sync_count/)
 * Hello,
 * I am using Dianxiaomi plugin to integrate with woocommerce: [https://help.dianxiaomi.com/pre/getContent.htm?id=298](https://help.dianxiaomi.com/pre/getContent.htm?id=298)
   
   Other people manage to get it integrated well with each other. So i thought it
   has to be an issue from my sidei deleted all plugins and only installed dianxiaomi
   and woocommerce only. I used back to twenty 22 theme to ensure that things are
   using the basic and default. I tried to call out woocommerce orders once more
   and this is the error log: “2023-11-24T05:58:29+00:00 DEBUG Automattic\WooCommerce\
   Internal\DataStores\Orders\DataSynchronizer::get_current_orders_pending_sync_count
   was called but no order types were registered: it may have been called too early.”
 * Can anyone let me know how i could resolve this?

Viewing 1 replies (of 1 total)

 *  Plugin Support [Shameem – a11n](https://wordpress.org/support/users/shameemreza/)
 * (@shameemreza)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/debug-get_current_orders_pending_sync_count/#post-17229898)
 * Hi [@iconnect858](https://wordpress.org/support/users/iconnect858/)
 * The error message you’re seeing suggests that the function `DataSynchronizer::
   get_current_orders_pending_sync_count` was called before any order types were
   registered. This could be due to the Dianxiaomi plugin making a request to WooCommerce
   before it’s fully loaded.
 * To resolve this, you might want to try delaying the initialization of the Dianxiaomi
   plugin until all other plugins, including WooCommerce, are fully loaded. This
   can be achieved by hooking the initialization of the Dianxiaomi plugin to the‘
   plugins_loaded’ action in WordPress.
 * Please note that we don’t provide support for (please see our [Support Policy](https://woo.com/support-policy/))
   third-party plugins or themes. If the issue persists, it would be best to reach
   out to the plugin’s developers for further assistance. I am sure they will have
   no problem supporting you there.
 * I hope this provides some clarity. Please let us know if you have any other questions
   related to WooCommerce core!

Viewing 1 replies (of 1 total)

The topic ‘DEBUG get_current_orders_pending_sync_count’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Shameem – a11n](https://wordpress.org/support/users/shameemreza/)
 * Last activity: [2 years, 6 months ago](https://wordpress.org/support/topic/debug-get_current_orders_pending_sync_count/#post-17229898)
 * Status: resolved