• Resolved iconnect858

    (@iconnect858)


    Hello,

    I am using Dianxiaomi plugin to integrate with woocommerce: 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 side

    i 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 R. a11n

    (@shameemreza)

    Hi @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) 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.