1. Ben
  2. Bugs
  3. Tuesday, 23 August 2016
  4.  Subscribe via email
I am trying to configure CMC 3.0.0 on a standard Joomla 3.6.2 install. I have supplied my API key and so far so good. I am able to connect to my Mailchimp account, but for some reason, I am only seeing the first 10 lists in the component when attempting to sync while there are 18 in my Mailchimp account. Importantly, the list I would like to sync w/ Joomla is not available in the list.

I am running PHP 5.5.38 on a LAMP stack and am using the default admin template. Do you have any suggestions for me to try? This really seems like a well-made component and I'm willing to help troubleshoot with whatever dev knowledge I can offer.

Based on the Mailchimp API v. 3, it seems that the default list limit is 10, so what I'm seeing would make sense if there's no 'count' query parameter passed.

http://developer.mailchimp.com/documentation/mailchimp/guides/get-started-with-mailchimp-api-3/#parameters

Can you address this? I see where I could hack the CmcHelperChimp class to add a 'count' parameter to the lists() call, but was wondering if you had any thoughts on supporting more than 10 lists officially.
Responses (2)
Accepted Answer Pending Moderation
To confirm my suspicion, my hack worked and I was able to fetch all lists and not just the first 10 by changing /administrator/components/com_cmc/helpers/chimp.php, line 83 from:

$lists = $this->get('/lists');

to:

$lists = $this->get('/lists', array('count'=>'50'));
  1. more than a month ago
  2. Bugs
  3. # 1
Daniel Dimitrov
Support team
Accepted Answer Pending Moderation
Okay, change made. Thanks for the help Ben!
Please if you use our extensions be so kind and review them at JED
Matukio | Hotspots Pro | CComment Pro
  1. more than a month ago
  2. Bugs
  3. # 2
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.
Powered by EasyDiscuss for Joomla!