Closed (duplicate)
Project:
Views (for Drupal 7)
Version:
6.x-2.5
Component:
Miscellaneous
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Apr 2009 at 13:09 UTC
Updated:
7 May 2009 at 10:11 UTC
after updating to 2.5 (from old 2.x) i get sql error because of empty uid fields when using content profile relationship + cck userreference relationship
add a reationship: content -> userreference relationship 'member_ref'
add another relationship node -> content profile -> use relationship (yes): 'member_ref'
Comments
Comment #1
merlinofchaos commentedI suppose I'm supposed to guess what error you got? Or just magically know?
Comment #2
gunzip commentedagainst current (and older) content profile:
.. ON .uid = node_users.uid ... has an empty table.
view follows. (as you can see the chain is: content profile field -> content profile relationship -> userref relationship)
Comment #3
alexking commentedHaving this same problem -
Comment #4
loze commentedSame problem here
Comment #5
Junro commentedSubscribe, came back to 2.3 version.
Comment #6
gunzip commentedbetter title
related to http://drupal.org/node/437960
Comment #7
rjbrown99 commentedI have been bashing my head into a wall for two days trying to figure out why I could not implement a user relationship view that also included a reference to the requestee's content profile. Guess what? This was the problem. The fix from post #4 on the other duplicate thread was the answer.
This is the comment that specifically fixed my query:
http://drupal.org/node/437960#comment-1513360
Comment #8
gunzip commentedduplicate of #437960: SQL error from missing table alias (".nid") after upgrading to 2.4 or 2.5
Comment #9
dwwActually, duplicate with #433290: Fatal SQL errors caused by broken table aliases in some cases in add_relationships(). ;)