user warning: Table 'dbxxxxx.node' doesn't exist

Matthiasf - July 16, 2008 - 20:26
Project:Pressflow Buzzworthy
Version:5.x-1.0-rc1
Component:Miscellaneous
Category:bug report
Priority:critical
Assigned:Robbie Sternenberg
Status:closed
Description

I installed the module, set the permissions, and since then I have the warning

user warning: Table 'dbxxxxx.node' doesn't exist query: SELECT n.title, n.nid, nc.nid, nc.totalcount FROM node n, node_counter nc WHERE n.status = 1 AND n.type <> 'page' AND n.type <> 'book' AND (n.nid = nc.nid) AND (created > 1215029947) ORDER BY nc.totalcount DESC LIMIT 0, 5 in /xxx/yyyyy/zzzzz/abc/includes/database.mysql.inc on line 172.

I tried to find any sort of documentation and tried also, to fined out the problem, but no success. The Block obvioulsy is created, I can even rename it and it apprears with the new label. But I am not able to manage, that the message does disappear or that newly created nodes appear within the the block with their titles.

Any suggestion to solve this matter is highly appreciated.

#1

Shannon Lucas - July 21, 2008 - 17:41

On line 45 of pressflow_buzzworthy.module, there are no braces around the table names.

Lines 44 to 48 are currently:

    $result = db_query_range("SELECT n.title, n.nid, nc.nid, nc.totalcount
      FROM node n, node_counter nc
      WHERE n.status = 1 AND n.type <> 'page' AND n.type <> 'book' AND (n.nid = nc.nid) AND (created > %d)
      ORDER BY nc.totalcount
      DESC", $daysold, 0, variable_get('pressflow_buzzworthy_numlinks', 5));

They should be:

    $result = db_query_range("SELECT n.title, n.nid, nc.nid, nc.totalcount
      FROM {node} n, {node_counter} nc
      WHERE n.status = 1 AND n.type <> 'page' AND n.type <> 'book' AND (n.nid = nc.nid) AND (created > %d)
      ORDER BY nc.totalcount
      DESC", $daysold, 0, variable_get('pressflow_buzzworthy_numlinks', 5));

If you are using prefixes on your table, this is most likely the source of the problem.

#2

Todd Nienkerk - August 1, 2008 - 18:55
Category:support request» bug report

This is a bug.

#3

Robbie Sternenberg - August 13, 2008 - 21:51
Assigned to:Anonymous» Robbie Sternenberg

Assigning to self

#4

Robbie Sternenberg - August 13, 2008 - 21:54
Status:active» fixed

Fixed in 5.x-1.0-rc2

#5

Anonymous (not verified) - August 27, 2008 - 22:06
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.