Hi

I tried to add a Mailchimp Subscription field in user's profile and i get this error:

EntityMetadataWrapperException: Unknown data property user:mail. in EntityStructureWrapper->getPropertyInfo() (Zeile 339 von /sites/all/modules/entity/includes/entity.wrapper.inc).

Could somebody help me please?

Thanks

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ruscoe’s picture

Status: Active » Postponed (maintainer needs more info)
FileSize
15.84 KB

Are you adding the MailChimp subscription field to the user via this URL? http://YOUR_SITE/admin/config/people/accounts/fields

If so, are you able to select the Email Address merge field? (see attached screenshot)

amandine_m’s picture

FileSize
12.63 KB

Thanks a lot for the answer!
Yes, till there, it is working. But when I go on the user profile page, I have the error :(

ruscoe’s picture

Assigned: Unassigned » ruscoe
Status: Postponed (maintainer needs more info) » Active
amandine_m’s picture

Update: this error only happens with profile2 entity

amandine_m’s picture

Priority: Critical » Normal
ruscoe’s picture

I haven't been able to reproduce this one.

This is what I've tried:

1) Installed the Profile2 and Profile2 Pages modules
2) Created a new profile type
3) Added a Mailchimp Subscription field to the new profile type, selecting User/Email as the Email merge var (as in the screenshot I added earlier)
4) Enabled custom profile pages
5) Opened a user's profile page in my browser

Unfortunately, I wasn't able to get the same error as you have. The profile displayed correctly, showing the Mailchimp Subscription field.

Are there any different steps you're taking or any customizations that are different to my test steps?

amandine_m’s picture

The profile page module is not activated in my case, maybe that is the reason?

quixxel’s picture

Same issue here.
As the same to the threadstarter I'm using profile2 profiletypes.

But as a difference to #6 3):
I added a Mailchimp Subscription field NOT to one of the profile2 profiltypes but to the core's profile admin/config/people/accounts/fields
( Possibly the threadstarter did the same. Please read his first post.)

quixxel’s picture

Okay. Problem solved for me.
I had to select user/email instead of Email from one of the profile2 profile types.
Now it works.

CountPacMan’s picture

Status: Active » Closed (works as designed)

Seems like quixxel has the answer above.