Support » Plugin: Mailchimp for WooCommerce » Fatal errors after trying sync via WP CLI

  • Resolved nilsschwarz

    (@nilsschwarz)


    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

    (@ryanhungate)

    @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

    (@khungate)

    Hi @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)
  • You must be logged in to reply to this topic.