Closed (fixed)
Project:
modr8
Version:
5.x-2.1
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Feb 2007 at 06:06 UTC
Updated:
10 Apr 2007 at 18:57 UTC
I'm running MySQL v4.1.21 and PHP 5.1.4. I've just installed the latest version of modr8 but get a MySQL error on my home page above all entries, here's the error message:
user warning: Unknown column 'n.moderate' in 'where clause' query:
SELECT n.nid FROM node_comment_statistics n WHERE ((n.moderate != 1 OR n.uid = 0)) AND ( n.comment_count > 0 ) ORDER BY n.last_comment_timestamp DESC LIMIT 0, 10 in /home/mattnli/public_html/drupal/includes/database.mysql.inc on line 172.Other info:
Any idea's why this is happening? Why is this query looking for n.moderate or n.uid when neither of these exist in the node_comment_statistics table?
Note: Everything else works fine (Drupal and other modules).
Thanks in advance for your help.
Matthew
| Comment | File | Size | Author |
|---|---|---|---|
| drupal-error-screenshot.gif | 7.4 KB | xybermatthew |
Comments
Comment #1
pwolanin commentedYes- existing issues about this:
http://drupal.org/node/111830
http://drupal.org/node/111421
I assume you have the recent comment block enabled? Try the patch at the first issue above and follow-up there.
Comment #2
pwolanin commentedsince the patch at http://drupal.org/node/111830 was committed, this should be fixed.
Comment #3
(not verified) commented