Hello,
I'm using Drupal 7.8, Flag 7.x-2.0-beta6, Flag Abuse - 7.x-2.x-dev (2011-Jun-13). After installing the modules
One can bookmark and flag abusive content. Also, 2 links are generated on the Navigation menu below Add Content as
* Add content
* My bookmarks
* Reported abuse
When i click on My bookmarks it gives me a list of my bookmarks. But when i click on the
Reported abuse link it gives the message
Debug:
'Exception: SQLSTATE[23000]: Integrity constraint violation: 1052 Column \'uid\' in field list is ambiguous'
in views_plugin_query_default->execute() (line 1380 of /opt/httpd/htdocs/www/staging/jopo/sites/all/modules/contrib/views/plugins/views_plugin_query_default.inc).
Regards.
Yashesh Bhatia
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | flag_abuse-1286114.patch | 843 bytes | wedge |
Comments
Comment #1
yasheshb commentedi was taking a closer look at the view
http://example.com/admin/structure/views/view/all_flag_abuse_node/edit/p...
for the link
http://example.com/admin/content/flags
and it gave an error here too
Error message
SQLSTATE[23000]: Integrity constraint violation: 1052 Column 'uid' in field list is ambiguous
Comment #2
partyp commentedI'm having the same issue. Did you find anything further?
Comment #3
partyp commentedI removed all the fields from the default "abuse_node" view. Then I added back in the fields i wanted. I am not getting the error anymore.
Comment #4
wedge commentedThe attached patch (ported from #1047954: User warning: Column 'uid' in on clause is ambiguous query on Flag default views) fixed this for me.
Comment #5
roderikPatch works. Code is straightforward.
Comment #6
pgrond commentedPatch works for me too.
Comment #7
vordude commentedPatch Works for me.
"Content That's Been Reported" view is not functional unless this edit is made.
Comment #8
markwk commentedI'm getting this same error... patch makes sense... but still not working...
flags for notifying abusive content is a good idea but it seems that this approach hasn't gotten as much attention as it needs in 7.x branch.
Comment #9
cwithout commentedPatch in #4 works and ought to be committed.
A similar change was already committed to the Flag module for the same issue on its views. #1047954: User warning: Column 'uid' in on clause is ambiguous query on Flag default views.
@markwk - If you saved and did not revert your view and/or didn't clear cache, you may not have seen the change take effect.
Comment #10
ezra-g commentedCommitted. Thanks!
http://drupalcode.org/project/flag_abuse.git/commit/7796db1