I get the following statement when i am not logged in as the administrator account.
user warning: Column 'nid' in field list is ambiguous query: SELECT COUNT(nid) FROM signup s INNER JOIN node_access na ON na.nid = s.nid WHERE (na.grant_view >= 1 AND ((na.gid = 0 AND na.realm = 'all') OR (na.gid = 4 AND na.realm = 'content_access_author') OR (na.gid = 2 AND na.realm = 'content_access_rid') OR (na.gid = 4 AND na.realm = 'content_access_rid') OR (na.gid = 2 AND na.realm = 'term_access') OR (na.gid = 4 AND na.realm = 'term_access')))
This happens when I give a role full permissions and they visist the page admin/content/signup
I am running mysql5 don't know if this is a mysql syntactical error specific to this version or if this is across all versions of mysql.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | signup_ambiguous_query.patch | 703 bytes | westwesterson |
Comments
Comment #1
westwesterson commentedI was able to stop the error message with this patch.
Comment #2
westwesterson commentedpatch applied against 5.x-2.x dev
Comment #3
westwesterson commented3rd times the charm, or is it fourth?
Comment #4
dwwHrm, even installing a couple of different node access modules, I couldn't reproduce this. But, the change is a safe one, and on visual inspection, looks like it should solve the problem you reported, and you claim it works for your site. ;) So, I just committed to HEAD (5.x-2.x-dev), and backported to DRUPAL-5 and DRUPAL-4-7. Thanks for the patch!
Comment #5
dwwOh, great, I even managed to reproduce it just now. ;) The trick is you need a role with 'administer all signups' and 'access administration pages', but *not* 'administer nodes'. With that, I could reproduce the bug, and verified that it went away with the revision with your patch committed. Phew. ;)
Comment #6
(not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.