Closed (fixed)
Project:
Storm
Version:
6.x-1.10
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
24 Jul 2008 at 15:19 UTC
Updated:
13 Aug 2008 at 08:33 UTC
Hi,
yet another annoying warning (the module seems to work fine):
* user warning: Unknown column 'node.type' in 'where clause' query: SELECT n.nid FROM node n WHERE ((n.moderate != 1)) AND ((case node.type WHEN 'stormexpense' THEN 0 WHEN 'storminvoice' THEN 0 WHEN 'storminvoiceitem' THEN 0 WHEN 'stormknowledgebase' THEN 0 WHEN 'stormnote' THEN 0 WHEN 'stormorganization' THEN 0 WHEN 'stormperson' THEN 0 WHEN 'stormproject' THEN 0 WHEN 'stormtask' THEN 0 WHEN 'stormticket' THEN 0 WHEN 'stormtimetracking' THEN 0 else 1 end)=1) AND ( n.status = 1 AND n.nid IN (2, 3, 4, 5, 6)) in /var/www/drupal/includes/menu.inc on line 986.
* user warning: Unknown column 'node.type' in 'where clause' query: SELECT n.nid FROM node n WHERE ((n.moderate != 1)) AND ((case node.type WHEN 'stormexpense' THEN 0 WHEN 'storminvoice' THEN 0 WHEN 'storminvoiceitem' THEN 0 WHEN 'stormknowledgebase' THEN 0 WHEN 'stormnote' THEN 0 WHEN 'stormorganization' THEN 0 WHEN 'stormperson' THEN 0 WHEN 'stormproject' THEN 0 WHEN 'stormtask' THEN 0 WHEN 'stormticket' THEN 0 WHEN 'stormtimetracking' THEN 0 else 1 end)=1) AND ( n.status = 1 AND n.nid IN (8, 32, 33, 34)) in /var/www/drupal/includes/menu.inc on line 986.
This warning appears for anonymous users, but not for logged-in users.
Thanks & greetings,
-asb
Comments
Comment #1
Roberto Gerola commentedOn which page ?
It seems that the db_rewrite_sql hook is not called correctly.
Comment #2
Roberto Gerola commentedI think I have fixed it now.
It should be fixed now in the latest storm.module file in cvs.
Can you test it ? Thanks.
Comment #3
Roberto Gerola commentedComment #4
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.