【发布时间】:2016-09-28 07:01:16
【问题描述】:
EntityMalformedException:profile2 类型的实体缺少捆绑属性。在 entity_extract_ids() 中
【问题讨论】:
标签: drupal drupal-7 drupal-modules user-profile
EntityMalformedException:profile2 类型的实体缺少捆绑属性。在 entity_extract_ids() 中
【问题讨论】:
标签: drupal drupal-7 drupal-modules user-profile
如果用户的 profile2 不存在,通常会出现错误。请确保您要更新的用户是否具有有效的个人资料实体。您可以使用函数 profile2_load_by_user($account, $type_name = NULL) 来检查 profile2。
谢谢。
【讨论】: