I added a required list set to sync during cron to sync all users with a specific role. When I queue existing users to be synced, I get

MCAPI Error: is not subscribed to list Members

for every user that's supposed to be synced.

I tried recreating the lists a few times, sync different roles, leave out or add fields, to no avail. Can't get them to sync. Where do I start?

Never had the problem before but I did have one list that synced all authenticated users (required) which I deleted on both ends.

Comments

mrfelton’s picture

My required list also will not sync. Where did you see the error "MCAPI Error: is not subscribed to list Members"? I dont see any errors.

rzach’s picture

In the the log... Administration > Reports > Recent log messages

rzach’s picture

Possibly related but the log hasa whole bunch of these messages before the "not synced" errors.

Notice: Undefined index: op in mailchimp_lists_cron() (line 155 of /home/site/public_html/sites/all/modules/mailchimp/modules/mailchimp_lists/mailchimp_lists.module).

julescone’s picture

I have the same issue as described above, this is the first version of the MailChimp module I have used, so I am assuming it hasn't always had this problem!

Here is a summary of my experience (all as admin user).

  1. On MailChimp created a dev list and on Drupal created a dev role, for use in testing the MailChimp module
  2. Installed MailChimp 7.x-2.5
  3. enabled MailChimp and MailChimp Lists
  4. configure MailChimp with API key, and to use Secure Connection
  5. add a MailChimp list on Drupal for the MailChimp dev list. Drupal can sucessfully retrieve the MailChimp lists available for the MailChimp account given (via API key)

    Settings for the MailChimp list are:
    • Type of list = Required
    • Sync List During Cron = checked
    • Roles = dev (I have one test user with this role)
    • MailChimp list = dev
    • Merge fields = Email Address
  6. I save the list, and then click "Queue exsiting" (note there is a typo in that link that needs fixing). It asks for confirmation, then reports "1 users have been queued for update in Dev List"
  7. I run cron on Drupal and get the following entries in the Recent Messages log:
    (Php) Notice: Undefined index: op in mailchimp_lists_cron() (line 155 of /home/awesome/public_html/sites/all/modules/mailchimp/modules/mailchimp_lists/mailchimp_lists.module).
    (MailChimp) MCAPI Error: testboy2@planetnz.com is not subscribed to list MoA test
    (MailChimp) Removed 0 records in MailChimp
    (MailChimp) Added 0, updated 0 records in MailChimp
  8. The list on MailChimp shows no change as a result
  9. Interestingly if I manually subscribe the testboy2@planetnz.com address to the list on MailChimp and then re-run the Queue Existing process it actually unsubscribes the email address! The log shows

    Removed 1 records in MailChimp

I am wondering if the Undefined index: op is causing the issue, but I had thought that notice level messages were more informational rather than critical so I could be wrong there.

In the interim I am going to use the optional List type and probably will update the list on MailChimp myself, but the required option would definitely be my preferred implementation.

If I can provide any more info to the devs then please let me know, and keep up the great work on this mod!

Cheers, Jules

rzach’s picture

Priority: Major » Critical

I tried the same with a virgin mailchimp account and get these errors for every Drupal user who's supposed to get added to the mailchimp list:

MCAPI Error: There is no record of "" in the database

Since this amounts to complete loss of functionality for me, upping to critical

levelos’s picture

Assigned: Unassigned » levelos
mr_spark’s picture

Same issue for me.
Optional lists in the same install are working fine.

imkane’s picture

Same issue for me...disappointing that it's been 3 weeks and this still hasn't been resolved. Isn't MailChimp funding this project???

Weak...

levelos’s picture

Title: Required list does not sync » Queue existing feature was not working as the 'op' parameter was not set in the queue
Status: Active » Fixed

Found the root cause here in that the queue existing function was failing to set the op parameter when queuing up items. This is now fixed. There is a lingering issue, though, in that users who were queued using the previously broken callback were removed from the required list and MailChimp's spam policy prevents them from being resubscribed in the batch API callback. Sorry for any trouble this causes, I can't think of a technical solution offhand.

@imkane, not helpful. MailChimp does support this module, along with Mandrill, through it's relationship with ThinkShout. We work with them to set priorities and discuss new features, but we alone are responsible for managing the issue queue, messaging, release schedules, and when we can do the work. We are not here to respond to any particular requests on "demand" and, while we make every effort to respond to issues as quickly as possible, our schedule may not align with your needs.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.