Hi All,

I was having an issue with this module not passing my custom user fields to mailchimp. I found out the problem is because when you pass information to the token_generate() function you have to load the user first with user_load because the account object doesn't have the custom fields added to a user.

Comments

ledzepp94’s picture

Please try this patch if you are having this same issue.

ledzepp94’s picture

StatusFileSize
new793 bytes

I named it wrong, sorry!

ledzepp94’s picture

StatusFileSize
new794 bytes

Well this is embarrassing. This is the correct patch. Long day....

bleedev’s picture

Status: Needs review » Closed (works as designed)

This was only reproducible if the Entity Token module was disabled. Entity Token must be enabled in order for custom fields to be synced.

ledzepp94’s picture

I did have Entity Tokens enabled, however it was version 7.x-1.0-rc3. Perhaps that was the reason?

bleedev’s picture

That is possible. Hopefully updating to the latest version of MailChimp will resolve your issue.

c4rl’s picture

If this gets opened again, the patch in #3 contains invalid PHP syntax and will need work.

ledzepp94’s picture

StatusFileSize
new763 bytes

Good catch. New patch attached.