forum access with views showing error

mnp - May 12, 2009 - 09:24
Project:Forum Access
Version:6.x-1.0-beta3
Component:User interface
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed
Description

hi
iam using forum access and work flow modules
when i click on any taxonomy term as anonymous user iam getting this error

user warning: Unknown column 'node.nid' in 'on clause' query: SELECT COUNT(*) FROM (SELECT DISTINCT(node.nid) AS nid FROM node node WHERE (node.status <> 0 OR node.uid = 12 or 0 = 1) AND (node.vid IN ( SELECT tn.vid FROM term_node tn INNER JOIN node_access na ON na.nid = node.nid WHERE (na.grant_view >= 1 AND ((na.gid = 0 AND na.realm = 'all') OR (na.gid = 2 AND na.realm = 'workflow_access') OR (na.gid = 5 AND na.realm = 'workflow_access') OR (na.gid = 12 AND na.realm = 'workflow_access_owner') OR (na.gid = 2 AND na.realm = 'forum_access') OR (na.gid = 5 AND na.realm = 'forum_access'))) AND ( tn.tid = 19 )) )) count_alias in /var/www/html/bia/sites/all/modules/views/includes/view.inc on line 705.

user warning: Unknown column 'node.nid' in 'on clause' query: SELECT DISTINCT(node.nid) AS nid, node.sticky AS node_sticky, node.created AS node_created FROM node node WHERE (node.status <> 0 OR node.uid = 12 or 0 = 1) AND (node.vid IN ( SELECT tn.vid FROM term_node tn INNER JOIN node_access na ON na.nid = node.nid WHERE (na.grant_view >= 1 AND ((na.gid = 0 AND na.realm = 'all') OR (na.gid = 2 AND na.realm = 'workflow_access') OR (na.gid = 5 AND na.realm = 'workflow_access') OR (na.gid = 12 AND na.realm = 'workflow_access_owner') OR (na.gid = 2 AND na.realm = 'forum_access') OR (na.gid = 5 AND na.realm = 'forum_access'))) AND ( tn.tid = 19 )) )ORDER BY node_sticky DESC, node_created DESC LIMIT 0, 10 in /var/www/html/bia/sites/all/modules/views/includes/view.inc on line 731.

please help me

#1

salvis - May 12, 2009 - 19:47

Try searching for the string

SELECT COUNT(*) FROM (SELECT DISTINCT(node.nid) AS nid FROM

through all of your modules (core and contrib). Maybe you get lucky and find it...

If not, try

FROM {node} node

#2

salvis - May 22, 2009 - 21:27
Priority:critical» normal
Status:active» postponed (maintainer needs more info)

No reply, so this doesn't seem to be so critical after all...

Maybe you're seeing the issue described in #284392: db_rewrite_sql causing issues with DISTINCT (and mentioned on the FA front page)?

#3

salvis - July 22, 2009 - 18:34
Status:postponed (maintainer needs more info)» closed

Feel free to reopen if you want to pursue this.

#4

mnp - July 24, 2009 - 05:27

thanks for ur reply
actually that is the problem with my mysql version
now i changed the mysql version to 5.0
it is working fine
once again thanks

#5

salvis - July 24, 2009 - 06:52

Ok, thanks for letting us know.

 
 

Drupal is a registered trademark of Dries Buytaert.