Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment | File | Size | Author |
---|---|---|---|
#2 | test_subscription.png | 12.63 KB | amandine_m |
#1 | Screen Shot 2015-01-30 at 13.33.24.png | 15.84 KB | ruscoe |
Comments
Comment #1
ruscoe CreditAttribution: ruscoe commentedAre 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)
Comment #2
amandine_m CreditAttribution: amandine_m commentedThanks a lot for the answer!
Yes, till there, it is working. But when I go on the user profile page, I have the error :(
Comment #3
ruscoe CreditAttribution: ruscoe commentedComment #4
amandine_m CreditAttribution: amandine_m commentedUpdate: this error only happens with profile2 entity
Comment #5
amandine_m CreditAttribution: amandine_m commentedComment #6
ruscoe CreditAttribution: ruscoe commentedI 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?
Comment #7
amandine_m CreditAttribution: amandine_m commentedThe profile page module is not activated in my case, maybe that is the reason?
Comment #8
quixxel CreditAttribution: quixxel commentedSame 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.)
Comment #9
quixxel CreditAttribution: quixxel commentedOkay. Problem solved for me.
I had to select user/email instead of Email from one of the profile2 profile types.
Now it works.
Comment #10
CountPacMan CreditAttribution: CountPacMan at ThinkShout commentedSeems like quixxel has the answer above.