- This topic has 1 reply, 2 voices, and was last updated 12 years, 1 month ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP eMember › emember – whitespace character lurking in my Mailchimp list name
I was testing my integration of my paid memberships with Mailchimp. The debug log was very annoying because it seemed to suggest that everything should have been fine.
[10/11/2012 3:58 AM] – SUCCESS :Mailchimp list to signup to:ABC List
[10/11/2012 3:58 AM] – SUCCESS :MailChimp target list name: ABC List
“ABC List” was my Mailchimp list so all should have been good.
I didn’t catch the significance of “: ABC” vs “:ABC” until later when I found that somehow whitespace had crept into the front of my target list. I don’t know how. I don’t know what. The settings form does not show whitespace. Could have been a copy and paste glitch.
Still have not been able to remove the white space. So, I’ve had to hack eMember_auto_responder_handler.php and use the following modifications.
$target_list_name = trim($membership_level_resultset->campaign_name);
$target_list_name = trim($emember_config->getValue('eMember_chimp_list_name'));
Not sure what if any weirdo side-effects this might have. So far so good. But who knows.
I wouldn’t mind somehow getting the whitespace out of my list name — without deleting everything and starting over from scratch.
The tweak you added will not cause any issue. We actually do trim the value at the time of saving the value (when you update the value in the WP Admin dashboard). Somehow on your WP install that space character is getting added at the time of retrieving the value from the database. This is definitely a weird behavior but it is not something that WP eMember plugin is responsible for. I will add this little tweak in the core eMember plugin just to avoid this kind of issue in the future.