When adding the relationship Activity: Target User to a view, I start getting the following error:
Unknown column 'activity_targets.uid' in 'on clause' SELECT activity.aid AS aid, users_activity.picture AS users_activity_picture, users_activity.uid AS users_activity_uid, users_activity.name AS users_activity_name, activity.created AS activity_created, activity.data AS activity_data, activity.module AS activity_module, activity.operation AS activity_operation, activity.type AS activity_type FROM activity activity INNER JOIN users users_activity ON activity.uid = users_activity.uid LEFT JOIN activity_targets activity_targets ON activity.aid = activity_targets.aid LEFT JOIN users users_activity_targets ON activity_targets.uid = users_activity_targets.uid
Comments
Comment #1
jazzdrive3 commentedCould this be an issue with upgrading from the normal 6 1.2 version?
Comment #2
sirkitree commented1.2 to 1.x-dev or 1.2 to 2.x-dev?
Comment #3
jazzdrive3 commented1.2 to 1.x-dev
Comment #4
jazzdrive3 commentedAny clues on this? What I'm trying to do it get an aggregate of friends activity in the feed as well.
Thanks.
Comment #5
sirkitree commented1.x-dev is not supported. I suggest moving back to the supported version.
Comment #6
jazzdrive3 commented1.2 doesn't have views integration though, does it? Are no bug fixes being done to 1.x-dev?
Comment #7
sirkitree commentedI don't have time to actively try to fix bugs, but I will review patches that come in.
Comment #8
jazzdrive3 commentedOk, found the error in the activity.views.inc file.
Line 120 it has:
It needs to be:
Not sure how to do formal patch files.
Comment #9
Scott Reynolds commentedhttp://drupal.org/patch/create
Comment #10
jazzdrive3 commentedHow about on windows? Is there an easy way to do it in notepad++?
Thanks.
Comment #11
Scott Reynolds commentedhttp://drupal.org/node/60234
http://tinyurl.com/ykjboyx
Comment #12
jazzdrive3 commentedOh so clever with the lmgtfy. Do you honestly think I had not already tried several different queries before asking the question? I'm not a complete retard.
Before rolling your eyes in tortured exasperation and trying to make someone feel like an idiot, a simple answer like "The compare plugin can help you do that" will save you some time in the future. Or just don't answer at all if it's such a burden.
Even then, the compare plugin doesn't create a patch file. So I guess the answer is "no".
Comment #13
Scott Reynolds commentedNot trying to do that. Merely trying to point out that you have the skills to find the tools to solve your problem. The patch/create link has a bunch of solutions on how to create a patch on windows. That is how I found it. Did you try any of these here? http://drupal.org/node/324
Now I leave this issue alone as I have become a distraction and this has now gone off topic. My apologies just felt like I was the only one looking and you were demanding. Thank you for finding the problem.
Comment #14
sirkitree commentedclosing. 1.x no longer supported.