Skip to content

apigee_nonmint_company: Company invitation entity label not set properly #4

@kbielawiec

Description

@kbielawiec

While using the apigee_nonmint_company along side the Drupal Audit Log module, you are unable to send/accept company invitations. It appears to be because the audit log module is unable to properly load the entity type of the invitation (see below).

Steps to reproduce:

  1. Start with a stock developer portal
  2. Install and enable apigee_nonmint_company and audit_log(https://www.drupal.org/project/audit_log) modules
  3. Create a new company
  4. Invite a developer to newly created company
  5. Receive fatal error:
    Fatal error: Call to undefined method stdClass::entityType() in /app/profiles/apigee/modules/contrib/eck/eck.module on line 131 Call Stack: 0.0069 294080 1. {main}() /app/index.php:0 0.0856 3520832 2. menu_execute_active_handler() /app/index.php:21 0.0857 3522152 3. call_user_func_array:{/app/includes/menu.inc:527}() /app/includes/menu.inc:527 0.0857 3522576 4. apigee_company_company_developers() /app/includes/menu.inc:527 3.9204 5780224 5. drupal_get_form() /app/profiles/apigee/modules/custom/apigee_company/apigee_company.module:287 3.9205 5781232 6. drupal_build_form() /app/includes/form.inc:131 3.9261 5945696 7. drupal_process_form() /app/includes/form.inc:386 3.9281 5987744 8. form_execute_handlers() /app/includes/form.inc:904 3.9281 5992056 9. apigee_company_invite_user_form_submit() /app/includes/form.inc:1520 3.9304 6059168 10. ApigeeCompanyInvitationEntity->save() /app/profiles/apigee/modules/custom/apigee_company/apigee_company.module:641 3.9304 6059504 11. ApigeeNonMintCompanyInvitation->save() /app/profiles/apigee/modules/custom/apigee_company/entities/apigee_company_invitation_entity.inc:112 5.2930 6102632 12. entity_save() /app/sites/all/modules/contrib/apigee_nonmint_company/apigee_nonmint_company.module:150 5.2931 6102992 13. EntityAPIController->save() /app/profiles/apigee/modules/contrib/entity/entity.module:293 5.2996 6170824 14. EntityAPIController->invoke() /app/profiles/apigee/modules/contrib/entity/includes/entity.controller.inc:450 5.3015 6172704 15. module_invoke_all() /app/profiles/apigee/modules/contrib/entity/includes/entity.controller.inc:355 5.3021 6175640 16. call_user_func_array:{/app/includes/module.inc:957}() /app/includes/module.inc:957 5.3021 6176096 17. audit_log_entity_insert() /app/includes/module.inc:957 5.3021 6176264 18. audit_log() /app/sites/all/modules/contrib/audit_log/audit_log.module:90 5.3022 6176832 19. entity_label() /app/sites/all/modules/contrib/audit_log/audit_log.module:43 5.3022 6176976 20. eck__entity__label() /app/includes/common.inc:8229

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions