【问题标题】:Error in profile 2 while updating programatically以编程方式更新配置文件 2 时出错
【发布时间】:2016-09-28 07:01:16
【问题描述】:

EntityMalformedException:profile2 类型的实体缺少捆绑属性。在 entity_extract_ids() 中

【问题讨论】:

    标签: drupal drupal-7 drupal-modules user-profile


    【解决方案1】:

    如果用户的 profile2 不存在,通常会出现错误。请确保您要更新的用户是否具有有效的个人资料实体。您可以使用函数 profile2_load_by_user($account, $type_name = NULL) 来检查 profile2。

    谢谢。

    【讨论】:

    • 感谢 Mohit,非常感谢
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-05-04
    • 2019-04-24
    • 1970-01-01
    • 2014-03-21
    • 1970-01-01
    相关资源
    最近更新 更多