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.
| Comment | File | Size | Author |
|---|---|---|---|
| zengine.patch | 688 bytes | arithmetric |
Comments
Comment #1
arithmetric commentedUpdating the status to patched.
Comment #2
jjeff commentedfixed in latest commit
Comment #3
(not verified) commented