The following warning messages began appearing on the front page of a Drupal site above the content nodes for anonymous users or on the first page view after a user logged in:

* user warning: Unknown column 'grant_edit' in 'where clause' query: SELECT COUNT(*) FROM node_access WHERE (nid = 0 OR nid = 11) AND ((gid = 0 AND realm = 'all')) AND grant_edit >= 1 in /home/truckpro/public_html/includes/database.mysql.inc on line 172.
* user warning: Unknown column 'grant_edit' in 'where clause' query: SELECT COUNT(*) FROM node_access WHERE (nid = 0 OR nid = 10) AND ((gid = 0 AND realm = 'all')) AND grant_edit >= 1 in /home/truckpro/public_html/includes/database.mysql.inc on line 172.

Some searching revealed a similar error in the Node Comment module, however this site did not have Node Comment installed:
http://drupal.org/node/163919

I grep'ed according to the erroneous line (node_access('edit' ... ), and found similar code in Zengine. After applying the attached patch, analogous to the patch submitted for Node Comment, these warnings disappeared.

CommentFileSizeAuthor
zengine.patch688 bytesarithmetric

Comments

arithmetric’s picture

Status: Active » Needs review

Updating the status to patched.

jjeff’s picture

Status: Needs review » Fixed

fixed in latest commit

Anonymous’s picture

Status: Fixed » Closed (fixed)