Closed (duplicate)
Project:
Hierarchical Select
Version:
7.x-3.0-alpha1
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
29 Apr 2011 at 12:19 UTC
Updated:
30 Jul 2011 at 11:59 UTC
Fatal error: Call to undefined function db_rewrite_sql() in /var/www/drupal-7/sites/all/modules/hierarchical_select/modules/hs_taxonomy.module on line 730
I am facing this issue when i enabled hierarchical select for taxonomy then I got this fatal error I think db_rewrite_sql() function is not present in drupal 7 and we are still using this function.
Please resolve this issue.
Comments
Comment #1
manau2000 commentedThe same problem. Anyone have a solution?? please
Comment #2
DanW commentedI also have this problem.
Comment #3
a.siebel commentedsubscribe
Comment #4
andy.s.clark commentedAlso seeing this issue.
Comment #5
dimapv commentedI have the same problem. When I try to get access to some admin sides page, I have the blank screen and the error record in apache' log. I restored functionality via DB change with phpmyadmin. In the 'variable' table I clear value in the record name='hs_config_taxonomy-2' and clear all caches twice.
Before manipulation, make the full DB backup!!!
Comment #6
mitzai commentedSame issue here. I'm working on a xampp Local install
Comment #7
khanjeee commentedsame issue dont any 1 heregot the solution :(
Comment #8
krisgraham commentedThe undefined function db_rewrite_sql no longer exists in D7.
This query basically counts the nodes for each term... so you should be able to comment out the lines calling on it in hs_taxonomy.module. You also need to comment out the return $count... a couple lines down. Here's the relevant code segment with the right parts commented out.
This is just a quick fix so use at your discretion.
As you can see, the comments state that this section needs to be updated to use the D7 query syntax, so if anyone is familiar with that, it shouldn't be too difficult to replicate. New DB query API: http://drupal.org/developing/api/database
Comment #9
wim leersDuplicate of #1068462: HS Taxonomy: "entity count" support — sponsorship needed.