Closed (fixed)
Project:
Node Hierarchy
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 Jun 2009 at 19:09 UTC
Updated:
3 Jul 2009 at 19:50 UTC
hi,
after updating to todays dev build (from 6.x-1.x) I get
user warning: Table 'database.nodehierarchy_menu_links' doesn't exist query: SELECT plid, menu_links.mlid, link_title, depth, weight, parent_node.type as type FROM d6_menu_links LEFT JOIN nodehierarchy_menu_links nh_parent ON menu_links.mlid = nh_parent.mlid LEFT JOIN node parent_node ON nh_parent.nid = parent_node.nid WHERE module = 'nodehierarchy' AND router_path = 'node/%' AND parent_node.type IN ('book', 'page', 'story', 'tour2009') ORDER BY depth DESC, weight ASC in /.../drupal-6.12/sites/all/modules/nodehierarchy/nodehierarchy.module on line 1054.
the code has the table name hardcoded and therefore misses the prefixed existing table (d6_nodehierarchy_menu_links in my case)
the second JOIN "LEFT JOIN node parent_node" will also fail due to the same reason
Comments
Comment #1
ansorg commentedok, there are more things hardcoded in this query that better should not.
I changed it to
and this seems to work now.
sorry, but I cannot provide this as a patch
Comment #2
ronan commentedOops, sorry about that.
Committed a fix. Should roll with the next dev.
Thanks
Comment #3
ronan commentedLooks like our messages crossed each other, and I had missed that last table reference. Committed a fix.
Thanks again.
Comment #4
ansorg commentedlooks like you missed the first line
in nodehierarchy-6.x-2.x-dev.tar.gz from today (June 19.) I have
"SELECT plid, menu_links.mlid, link_title, depth, weight, parent_node.type as type
should be
"SELECT plid, {menu_links}.mlid, link_title, depth, weight, parent_node.type as type
thanks