Closed (fixed)
Project:
Drupal core
Version:
x.y.z
Component:
node system
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 May 2006 at 18:46 UTC
Updated:
24 May 2006 at 23:15 UTC
I've started to get this error, when viewing a node I do not have permission to edit:
Warning: Unknown column 'grant_edit' in 'where clause' query: SELECT COUNT(*) FROM node_access WHERE (nid = 0 OR nid = 5) AND ((gid = 0 AND realm = 'all')) AND grant_edit >= 1 in /home/dave/sites/civiclabs/includes/database.mysql.inc on line 120
On some pages this is followed by
Warning: Cannot modify header information - headers already sent by (output started at /home/dave/sites/civiclabs/includes/database.mysql.inc:120) in /home/dave/sites/civiclabs/includes/common.inc on line 266
And in those cases the page I am trying to see does not appear.
Comments
Comment #1
Dave Cohen commentedI do not consider this the proper fix. But just in case others have the same trouble and need a temporary workaround:
Comment #2
Dave Cohen commentedThe problem was with code I wrote and installed locally. So never mind. I was invoking node_access() with an $op of edit when it should have been update. My bad.
Comment #3
(not verified) commented