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.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | mailchimp_show_interest_groups-1394132-4.patch | 576 bytes | pjcdawkins |
Comments
Comment #1
vitorscs commentedDid you check the option "Show Interest Groups on Registration and Account Forms"? I did it and cleared cache, then it worked here.
Comment #2
gsquirrelYes 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.
Comment #3
gsquirrelCommenting 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.
Comment #4
pjcdawkins commentedInstead of commenting out "break", I changed it to "continue", which I guess was the original coder's intention.
I've attached a patch.
Comment #5
levelos commentedThanks, fixed.
Comment #7
stphnlwlsh commentedI'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?
Comment #8
stphnlwlsh commentedChanged status.
Comment #9
pjcdawkins commentedHi 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. Theneeds reviewstatus is for issues containing work that needs testing.