In the README it says to clear cache if the groups don't show up in the signup form, but after clearing cache several times and running cron in case that helped too still no groups are showing.

I also tried recreating the list in the admin section as it seemed like it might not be using the latest info from mailchimp (the groups were hidden before). This did not help either.

I will try to look into the code to see if I can decipher but wondered if anyone else had this problem (couldn't find anything in issue queue rather the opposite people wanting to hide the groups) or can suggest anything that might help. In the html for the form the fieldset seems to be completely empty.

Comments

vitorscs’s picture

Did you check the option "Show Interest Groups on Registration and Account Forms"? I did it and cleared cache, then it worked here.

gsquirrel’s picture

Yes I had ticked the box in the drupal admin interface, not sure if there might be other settings within mailchimp interface that interfere, but the groups show on the mailchimp hosted version of the form.

There is a fieldset for "interest groups" that shows up but it is empty although the list has a long list of groups set up in mailchimp.

gsquirrel’s picture

Commenting line 432 to 434 in mailchimp/modules/mailchimp_lists/mailchimp_lists.module out has helped get the checkboxes to show up in my form:

// @todo: consider merging to hidden values
//if ($group['form_field'] == 'hidden') {
// break;
//}

I think my issue might happen because I have two sets of groups one of which is hidden, and this check seems to be hiding both. When I comment out the if statement above it shows the non-hidden fields correctly - as the hidden one is set "hidden" field type so doesn't show up anyway, which makes me wonder why the check is there.

Would rather not have to change module code though.

pjcdawkins’s picture

Status: Active » Needs review
StatusFileSize
new576 bytes

Instead of commenting out "break", I changed it to "continue", which I guess was the original coder's intention.

I've attached a patch.

levelos’s picture

Status: Needs review » Fixed

Thanks, fixed.

Status: Fixed » Closed (fixed)

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

stphnlwlsh’s picture

I'm having this issue as well. I'm new to Drupal, so maybe I'm doing something wrong in my form. I have the setting turned on to include interest groups, cleared the cache, and inserted the "break;" line of code into the module with no luck.

What else can I do to fix this?

stphnlwlsh’s picture

Status: Closed (fixed) » Needs review

Changed status.

pjcdawkins’s picture

Status: Needs review » Fixed

Hi stphnwlsh, do you have the latest version of the module? You're new to Drupal (welcome!), but you probably should have opened a separate issue as a 'support request'. The bug described in this issue was fixed in commit c298141c and hasn't regressed as far as I can see, so I'm changing this back to fixed. The needs review status is for issues containing work that needs testing.

Status: Fixed » Closed (fixed)

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