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.
In view, if you try to add a relationship to "User relationships: Requestee/Requester user" (bring in data about the user who start/accepted the relationship, or link to relationships that other users have established to this one) to get more information about the requester/requestee, you get this error
Column not found: 1054 Unknown column 'user_relationships.uid' in 'on clause'
Anyone else get this issue?
Comment | File | Size | Author |
---|---|---|---|
#17 | user_relationship_views.views_.inc_.patch | 2.2 KB | samhain |
#4 | user_relationships-1312956-4.patch | 1.16 KB | Ghostthinker |
#3 | relationship.patch | 1.33 KB | Ghostthinker |
Comments
Comment #1
Ghostthinker CreditAttribution: Ghostthinker commentedsame here with views-7.x-3.x-dev
Comment #2
Ghostthinker CreditAttribution: Ghostthinker commentedsee also http://drupal.org/node/1285636
Comment #3
Ghostthinker CreditAttribution: Ghostthinker commentedTry this patch. I think the current version of views needs that the "field" in a relationship has to be "base field", the field variable is for the current tables field name and can mostly be left out
Comment #4
Ghostthinker CreditAttribution: Ghostthinker commentedI hope this patch will be accepted, all those rules ...
Comment #5
vishun CreditAttribution: vishun commentedThis appears to resolve the issue on D6 as well.
Comment #6
Shawn DeArmond CreditAttribution: Shawn DeArmond commentedPerfect! Thanks!
Comment #7
dgastudio CreditAttribution: dgastudio commentedsame error, same solution. thanks.
Comment #8
inky@inky3d.com CreditAttribution: inky@inky3d.com commentedThanks! Have been looking for a solution to this, as UR wasn't working with Views 6.x-3.x-dev.
This seems to have resolved it for me.
Comment #9
rollingnet CreditAttribution: rollingnet commentedI confirm that the patch above is working on 7.x.1.x.dev.
I suggest to change the status in "patch (to be ported)", since without this patch, view's additional fields on reguestee or requester don't work at all.
Comment #10
bjalford CreditAttribution: bjalford commentedConfirm patch works as expected.
Comment #11
Ghostthinker CreditAttribution: Ghostthinker commentedComment #12
sohailkhalid CreditAttribution: sohailkhalid commentedI am still getting below error after apply patch
'Exception: SQLSTATE[42S22]: Column not found: 1054 Unknown column \'user_relationships.uid\' in \'on clause\''
in views_plugin_query_default->execute() (line 1386 of C:\software\vustudyaid\sites\all\modules\views\plugins\views_plugin_query_default.inc).
Debug:
'Exception: SQLSTATE[42S22]: Column not found: 1054 Unknown column \'user_relationships.uid\' in \'on clause\''
in views_plugin_query_default->execute() (line 1386 of C:\software\vustudyaid\sites\all\modules\views\plugins\views_plugin_query_default.inc).
any one can help on this?
Comment #13
nlisgo CreditAttribution: nlisgo commentedHad to manually apply the patch to the latest dev but it did the trick for me.
Comment #14
BerdirComment #15
snooze191 CreditAttribution: snooze191 commented#4: user_relationships-1312956-4.patch queued for re-testing.
Comment #16
Anonymous (not verified) CreditAttribution: Anonymous commentedworks for me. see #13.
Comment #17
samhain CreditAttribution: samhain commentedTry this patch, it works for me
Comment #18
aacraig CreditAttribution: aacraig commentedThis patch is not working for me on the latest dev. I still see the error message.
Comment #19
jpshayes CreditAttribution: jpshayes commentedAfter uninstalling UR-views 7.x-1.x-dev and applying patch from #17 and reinstalling the error is gone for me.
Comment #20
broncomania CreditAttribution: broncomania commented#17 works also with D6 views 3 and UR 1.1
Comment #21
mrf CreditAttribution: mrf commentedThanks for the update broncomania, but there is already a separate issue for this on D6 over at #1285636: Incompatibility with Views 3.x?. I'll post this patch over there based on your success.
Comment #22
Shawn DeArmond CreditAttribution: Shawn DeArmond commented#17 works great too.
Comment #23
BerdirCommited (fixed the comments coding style while I was at it), finally. Sorry for the huge delay.