Title: Fatal errors after trying sync via WP CLI
Last modified: November 21, 2019

---

# Fatal errors after trying sync via WP CLI

 *  Resolved [nilsschwarz](https://wordpress.org/support/users/nilsschwarz/)
 * (@nilsschwarz)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/fatal-errors-after-trying-sync-via-wp-cli/)
 * We’ve been having trouble syncing a show of one of our customers to MailChimp
   using this plugin.
 * After having switched to much faster server we tried to re-run the initial sync
   via WP CLI.
    As for the products: 155 coupons and 1334 products were synced correctly,
   however after (a really long) while the order sync gets stuck at 2907 of 9679
   orders with these errors:
 *     ```
       PHP Fatal error:  Uncaught TypeError: Argument 1 passed to MailChimp_WooCommerce_Order::fromArray() must be of the type array, null given, called in /var/www/vhosts/shop/httpdocs/wp-content/plugins/mailchimp-for-woocommerce/includes/api/class-mailchimp-api.php on line 961 and defined in /var/www/vhosts/shop/httpdocs/wp-content/plugins/mailchimp-for-woocommerce/includes/api/assets/class-mailchimp-order.php:555
       Stack trace:
       #0 /var/www/vhosts/shop/httpdocs/wp-content/plugins/mailchimp-for-woocommerce/includes/api/class-mailchimp-api.php(961): MailChimp_WooCommerce_Order->fromArray(NULL)
       #1 /var/www/vhosts/shop/httpdocs/wp-content/plugins/mailchimp-for-woocommerce/includes/processes/class-mailchimp-woocommerce-process-orders.php(70): MailChimp_WooCommerce_MailChimpApi->addStoreOrder('5b1922c1b667f', Object(MailChimp_WooCommerce_Order), false)
       #2 /var/www/vhosts/shop/httpdocs/wp-content/plugins/mailchimp-for-woocommerce/includes/processes/class-mailchimp-woocomm in /var/www/vhosts/shop/httpdocs/wp-content/plugins/mailchimp-for-woocommerce/includes/api/assets/class-mailchimp-order.php on line 555
   
       Fatal error: Uncaught TypeError: Argument 1 passed to MailChimp_WooCommerce_Order::fromArray() must be of the type array, null given, called in /var/www/vhosts/shop/httpdocs/wp-content/plugins/mailchimp-for-woocommerce/includes/api/class-mailchimp-api.php on line 961 and defined in /var/www/vhosts/shop/httpdocs/wp-content/plugins/mailchimp-for-woocommerce/includes/api/assets/class-mailchimp-order.php:555
       Stack trace:
       #0 /var/www/vhosts/shop/httpdocs/wp-content/plugins/mailchimp-for-woocommerce/includes/api/class-mailchimp-api.php(961): MailChimp_WooCommerce_Order->fromArray(NULL)
       #1 /var/www/vhosts/shop/httpdocs/wp-content/plugins/mailchimp-for-woocommerce/includes/processes/class-mailchimp-woocommerce-process-orders.php(70): MailChimp_WooCommerce_MailChimpApi->addStoreOrder('5b1922c1b667f', Object(MailChimp_WooCommerce_Order), false)
       #2 /var/www/vhosts/shop/httpdocs/wp-content/plugins/mailchimp-for-woocommerce/includes/processes/class-mailchimp-woocomm in /var/www/vhosts/shop/httpdocs/wp-content/plugins/mailchimp-for-woocommerce/includes/api/assets/class-mailchimp-order.php on line 555
       ```
   

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

 *  Plugin Author [ryanhungate](https://wordpress.org/support/users/ryanhungate/)
 * (@ryanhungate)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/fatal-errors-after-trying-sync-via-wp-cli/#post-12178300)
 * [@nilsschwarz](https://wordpress.org/support/users/nilsschwarz/) so there is 
   a chance that your account might need to be looked at in the Mailchimp support
   realm. We have a fix being rolled out soon that should prevent this particular
   error from happening but to make a long story short, it’s related to the API 
   not responding at all.
 * If you would like ( and since you’re using the CLI ) I would be happy to fix 
   this for you temporarily while the new release gets done with QA. Please reach
   out to me directly ryan (at) vextras.com and we can discuss how to implement 
   this patch for your API connection. It’s not too much to do, but the API file
   needs to be altered in order to fix your particular situation.
 * If you would like to hold off till the next release, that’s fine too – but didn’t
   want to leave you hanging if at all possible.
 *  Plugin Support [khungate](https://wordpress.org/support/users/khungate/)
 * (@khungate)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/fatal-errors-after-trying-sync-via-wp-cli/#post-12329845)
 * Hi [@nilsschwarz](https://wordpress.org/support/users/nilsschwarz/) thank you
   for your patience, this issue has been resolved in our latest release (v2.3.1)
   that went out yesterday.
 * Let us know if you continue to experience any problems, happy to troubleshoot
   further. Please note, the best way to reach us is over at the GitHub plugin page.
   From there, you can receive direct responses from the development team, log new
   issues, download the latest version and track existing support tickets.

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

The topic ‘Fatal errors after trying sync via WP CLI’ is closed to new replies.

 * ![](https://ps.w.org/mailchimp-for-woocommerce/assets/icon-256x256.png?rev=1509501)
 * [Mailchimp for WooCommerce](https://wordpress.org/plugins/mailchimp-for-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/mailchimp-for-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/mailchimp-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/mailchimp-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mailchimp-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mailchimp-for-woocommerce/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [khungate](https://wordpress.org/support/users/khungate/)
 * Last activity: [6 years, 5 months ago](https://wordpress.org/support/topic/fatal-errors-after-trying-sync-via-wp-cli/#post-12329845)
 * Status: resolved