When using User Relations with Invite by activating user relationship invites, the following error messages appeared:

# Notice: Undefined variable: user in user_relationship_invites_form_invite_form_alter() (line 37 of /public_html/sites/all/modules/user_relationships/user_relationship_invites/user_relationship_invites.module).
# Notice: Undefined index: values in user_relationship_invites_form_invite_form_alter() (line 37 of /public_html/sites/all/modules/user_relationships/user_relationship_invites/user_relationship_invites.module).
# Notice: Trying to get property of non-object in _user_relationships_ui_get_requestable_rtypes() (line 322 of /public_html/sites/all/modules/user_relationships/user_relationships_ui/user_relationships_ui.module).
# Notice: Trying to get property of non-object in user_relationships_ui_request_form() (line 53 of /public_html/sites/all/modules/user_relationships/user_relationships_ui/user_relationships_ui.forms.inc).

Please help. Many thanks.

Regards,
Chang

CommentFileSizeAuthor
#1 fix_invite_notices.patch1.31 KBberdir

Comments

berdir’s picture

Status: Active » Needs review
StatusFileSize
new1.31 KB

Try the attached patch, that should fix the notices.

Note that this sub-module has never been tested yet since Invite.module wasn't ready. Please report any bugs you can find (in new issues, though)

BenK’s picture

Subscribing... there's a working version of Invite module now so we can do more testing.

--Ben

BenK’s picture

@ccheu: Can you try Berdir's patch so that we can close out this issue?

berdir’s picture

Status: Needs review » Fixed

Commited. Please create new issues if you encounter new problems.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.