When I try to add a user relationship with another user, I get the following errors:


    * warning: Invalid argument supplied for foreach() in C:\Web\Server\htdocs\movdev\sites\default\modules\user_relationships\user_relationships.module on line 277.
    * warning: Attempt to assign property of non-object in C:\Web\Server\htdocs\movdev\sites\default\modules\user_relationships\user_relationships_actions.inc on line 173.
    * warning: Attempt to assign property of non-object in C:\Web\Server\htdocs\movdev\sites\default\modules\user_relationships\user_relationships_actions.inc on line 174.
    * warning: Attempt to assign property of non-object in C:\Web\Server\htdocs\movdev\sites\default\modules\user_relationships\user_relationships_actions.inc on line 175.
    * warning: Attempt to assign property of non-object in C:\Web\Server\htdocs\movdev\sites\default\modules\user_relationships\user_relationships_api.inc on line 265.
    * warning: Attempt to assign property of non-object in C:\Web\Server\htdocs\movdev\sites\default\modules\user_relationships\user_relationships_api.inc on line 266.
    * warning: Attempt to assign property of non-object in C:\Web\Server\htdocs\movdev\sites\default\modules\user_relationships\user_relationships_api.inc on line 267.

With this notification below the errors:
"Your request to be a of Guest has been submitted."

I know I was able to create relationships before, but it's not working now, possibly a problem related to updating the module? I can also remove relationships just fine, just can't add them.

Comments

tannerjfco’s picture

Come to think of it, I used the Buddylist Import to move all of the existing relationships over to UR. It's possible that I haven't used UR's add relationship function yet, and this has been a problem I just haven't encountered yet (this site isn't public at the moment, so I'm the only one using it at this time)

tannerjfco’s picture

Does anyone have an idea as to what's going on here?

arilikeairy’s picture

I have a similar problem, but it only happens when I try to add the reverse relationship of one already requested. (Ex. if user1 requests to be 'student' of user2 AND 'professor') Here's the error:

* recoverable fatal error: Object of class stdClass could not be converted to string in /sites/all/modules/user_relationships/user_relationships_actions.inc on line 148.
* recoverable fatal error: Object of class stdClass could not be converted to string in /sites/all/modules/user_relationships/user_relationships_actions.inc on line 149.
* warning: Attempt to assign property of non-object in /sites/all/modules/user_relationships/user_relationships_api.inc on line 265.
* warning: Attempt to assign property of non-object in /sites/all/modules/user_relationships/user_relationships_api.inc on line 266.
* warning: Attempt to assign property of non-object in /sites/all/modules/user_relationships/user_relationships_api.inc on line 267.
* You have already requested to be a of Anonymous

I haven't used buddylist. I am using alpha5 of Advanced Profile Kit.

tannerjfco’s picture

I really hate bumping issues, but I posted this about a month and a half ago and I've heard nothing, and I desperately need this to work. I've tried reinstalling the module, and trying a new relation type, but to no avail.

tannerjfco’s picture

Status: Active » Closed (fixed)

it seems the uninstall I previously did didn't completely remove the UR data from the database. Another uninstall seems to have done the trick.