I'm getting this error filling up Watchdog, anyone have any ideas on a remedy?

Attempt to assign property of non-object in /home/mysite/public_html/sites/all/modules/user_relationships/plugins/user_relationship_privatemsg/user_relationship_privatemsg.module on line 25

Comments

AppleBag’s picture

Hello? lol

AppleBag’s picture

Just upgraded to the latest and getting this again. Anyone have any ideas?

AppleBag’s picture

If it helps, here's the offending code

  !$relationship->requester ? $relationship->requester = user_load(array('uid' => $relationship->requester_id)) : NULL;
  !$relationship->requestee ? $relationship->requestee = user_load(array('uid' => $relationship->requestee_id)) : NULL;

I'm about to throw an is_object in there to shut it up, but that doesn't seem like a good solution.

Gabriel R.’s picture

I see this too, and I am up tot date with both Drupal and all modules.

Error reported for lines 23 AND 24.

altparty’s picture

Same problem here (when cron runs).

alex.k’s picture

Sorry, guys... 5.x is not very active these days. If anybody wants to provide a patch that will be helpful.

berdir’s picture

Status: Active » Closed (won't fix)

Sorry for pinging the participants.

Now that Drupal 7 is out, there is no support for Drupal 5 and the corresponding modules anymore. Therefore, I'm closing all old issues which are still open.

I suggest you upgrade to Drupal 6 or 7 and figure out if you're feature is still needed or the bug still exists and open a new issue in that case.