Closed (outdated)
Project:
User Relationships
Version:
7.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
1 Nov 2011 at 11:11 UTC
Updated:
31 Jan 2026 at 21:21 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
berdirMake sure that you are using the most recent 7.x-1.x-dev version and you're users have the "Request type relationships" permission.
Comment #2
klucid commentedI'm having a similar issue (or so it seems).
I'm using 7.x-1.0-alpha4 and I believe my permissions are set properly (see attached), however when a user logs in to their requests page, the request shows up, but there is no option to accept the request under the "operations" column.
Note on screenshot: UR should be a one-way relationship, "User" to "Supplier".
Comment #3
klucid commentedJust a follow up on what I've just discovered. The operations to Approve or Decline the request appears when the "Supplier" role is given permissions to "Request follower relationships". This however does not work for my case, because I would only like an Individual to be allowed to "follow" a Supplier.
Thanks in advance! :)
Comment #4
tmsimont commentedI also have this same problem.
I think there should be ample information here to reproduce. I discovered this is in a fresh install of this module, I have hardly any other modules installed.
Step-by-step on reproduction
1) 2 roles required: for this example Role A is Requester, Role B is Acceptor
2) At least 1 type of relationship required, in this example it's just "x"
3) Give both roles "Have x relationships, Maintain x relationships and Delete x relationships"
4) Give only Role A, Requester the "Request x relationships"
5) Log in as a Requester, and request a relationship with an Acceptor
6) Log in as the Acceptor, and go to the "Received requests" page
There are no "operations" in the operations column, which means the relationship will never happen.
Comment #5
tmsimont commentedComment #6
tmsimont commentedvery much related is #1898026: PHP notice "Notice: Undefined property: stdClass::$requester_id" on user_relationships_ui_check_access -- it's not the same exact issue but it's in the same boat. I'll close that out as a duplicate of this.
the attached patch should make everyone happy :)
Comment #7
tmsimont commentedbroader title to encompass other related issue
Comment #8
daveonaka commentedI hope I'm posting this in the right location. The error-
Error messageNotice: Undefined property: stdClass::$requester_id in user_relationships_ui_check_access()
Occurs when one of two users is deleted. In this case the initiator of a relationship was deleted. Going to the receiver's Relationships tab showed no relationships, but the error message is displayed.
Note: I have not yet applied the patch in #6.
Comment #9
tmsimont commentedYes it's the same error that was in the other issue I closed as a duplicate. Please keep the issue in the dev branch because that's the most recent branch where the error still exists. Patches are committed to dev and then new releases come from dev. Please get the dev branch and test the patch I posted. Let us know if that works for you. If it does we will be closer to committing a solution.
Comment #10
joshua.howell commentedUsing 7.x-1.0-alpha6 and applying patch #6 resolved the error message for me.
Comment #11
heylookalive commentedI can't see an issue with the patch, but don't have enough knowledge of the UI submodule to commit, any other maintainers?
Also @joshua.howell if you're confident that the patch is resolving the issues please mark as RBTC. I'd like others to chime in but this is an old issue and could be wishful thinking.
Comment #12
joshua.howell commentedComment #13
hockey2112 commentedThank you!!! This patch saved my sanity.
Comment #14
avpadernoI am closing this issue, since it is for a Drupal version that is no longer supported. Please re-open this issue if it is relevant for a project release for a supported Drupal version.