WP-CLI usage
-
Hi!
In the stats for my latest Mailchimp campaign I can’t see order stats and I’m positive I got orders through the campaign. I have 14,838 orders and the your UI says 14,542 are synced.I tried to run sync through WP-CLI but it does not seem to work. Can you please give me instructions on how to do it correctly? The information here seems to be outdated, https://github.com/mailchimp/mc-woocommerce/wiki/Advanced-Queue-Setup-In-CLI-mode
On the plugin screen I now see “We dectected that this site has the following constants defined, likely at wp-config.php file: DISABLE_WP_HTTP_WORKER
These constants are deprecated since Mailchimp for Woocommerce version 2.3. Please refer to the plugin official wiki for further details.”I got it to work by clicking the [RESYNC NOW] button in the UI and then run “wp –url=https://my-actual-site.com action-scheduler run”. Is that the right way? I thought you would have a WP-CLI command for syncing like the mc4wp plugin does. Could you make that more clear in the instructions and change the information about the deprecated constant?
Btw, I got quite a few of these when processing orders. Is that when a product in an order has been deleted?
Warning: Undefined array key 0 in /home/ekoinsik/public_html/my-site.com/wp-content/plugins/mailchimp-for-woocommerce/includes/api/class-mailchimp-woocommerce-transform-products.php on line 348 Warning: Attempt to read property "product_id" on null in /home/ekoinsik/public_html/my-site.com/wp-content/plugins/mailchimp-for-woocommerce/includes/api/class-mailchimp-woocommerce-transform-products.php on line 348
It’s still syncing and it has taken all day. It takes about 2 sec per order it seems. Is that normal with WP-CLI? I have 5 GB memory.
Thanks!
- The topic ‘WP-CLI usage’ is closed to new replies.