Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
I'm just wondering if there is a handler that I'm not seeing in the code that replaces commas in group names with an escaped comma as per the api documentation. I haven't seen it anywhere but that doesn't necessarily mean it doesn't exist.
Comments
Comment #1
juliangb CreditAttribution: juliangb commentedI had a problem which I suspect is related - one of my interest groups had double quotes in it.
Whenever I tried to sign up for that interest group, the form wouldn't let me ("An illegal choice has been detected").
When I changed the name of the interest group, it was fine.
Comment #2
firfin CreditAttribution: firfin commentedComma's aren't escaped in d7 version either. This is making campaignSegmentTest fail. At least it does for me, should probably be fixed in the module/API.
Then again, campaignSegmentTest isn't called anywhere by the module. But I am using it in a custom module. So I just cleaned up the input before calling that function.
Comment #3
Jon PughThis is bad. The module implodes your interest groups adding commas, then sends it to mailchimp API. So.. mailchimp API is expecting a comma delineated list of values?
So you cannot have commas in your "interest group" fields...
Comment #4
firfin CreditAttribution: firfin commentedWell, you can have comma's, but they do need to be escaped. See #1192556: Escape commas in interest group name for inspiration/explanation. I used something like str_replace(',', '\,', $group); in my own module.
Comment #5
nrackleff CreditAttribution: nrackleff commented“And now our watch [for support of the 6.x version of the MailChimp module] has ended…” With the end of Drupal 6 support, I’m sad to say we too must turn the page.
Fret not! The 7.x-4.x and 8.x versions come highly recommended. Both are using Mailchimp’s new API 3.0 and are being actively maintained. “What is dead may never die, but rises again, harder and stronger!”