Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I am trying to run the "Check if two users are related" rule and I am getting the following error messages:
Notice: Trying to get property of non-object in user_relationships_rules_condition_users_are_related() (line 213 of /var/www/public_html/domain.com/sites/all/modules/user_relationships/user_relationships_rules/user_relationships_rules.rules.inc).
Notice: Undefined property: RulesCondition::$uid in user_relationships_rules_condition_users_are_related() (line 213 of /var/www/public_html/domain.com/sites/all/modules/user_relationships/user_relationships_rules/user_relationships_rules.rules.inc).
Notice: Trying to get property of non-object in user_relationships_type_get_name() (line 1069 of /var/www/public_html/domain.com/sites/all/modules/user_relationships/user_relationships.module).
It seems to be because the $user2 being passed isn't actually the second user, but rather the relationship object?