Although I see the code is already commented as "needed to be API updated", I guess using Drupal 6 functions should be prevented even in alpha builds.

Fatal error: Call to undefined function db_rewrite_sql() in sites/all/modules/hierarchical_select/modules/hs_taxonomy.module on line 730

Comments

Wim Leers’s picture

Title: Call to undefined function db_rewrite_sql() » HS Taxonomy: disable unported functionality
Component: Code » Code - Taxonomy
Assigned: Unassigned » Wim Leers
Status: Active » Fixed

Status: Fixed » Closed (fixed)

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

Stefan Haas’s picture

suscribe

Stefan Haas’s picture

Sorry, I have this Error code with Hierarchical Select 7.x-3.0-alpha1

Fatal error: Call to undefined function db_rewrite_sql() in /www/htdocs/w00c947d/forestfolio/sites/all/modules/hierarchical_select/modules/hs_taxonomy.module on line 730

I don't understand why this is marked as fixed. Does that mean that it is fixed in the dev-version?

sierkje’s picture

Status: Closed (fixed) » Needs review

subscribe

See also: http://api.drupal.org/api/drupal/modules--system--system.api.php/functio...

(Changed status by mistake... oops)

sierkje’s picture

Status: Needs review » Closed (duplicate)
jdufaur’s picture

Hello, I don't understand also why this is marked as fixed because i've already got
the fatal error "hs_taxonomy.module on line 730" with 7.x-3.0 alpha1.

Have you an solution?

yugongtian’s picture

+1

Remove module and re install also get erro .How to fix it ?

( ! ) Fatal error: Call to undefined function db_rewrite_sql() in E:\wamp\www\test14\sites\all\modules\hierarchical_select\modules\hs_taxonomy.module on line 730
# Time Memory Function Location
1 0.0009 372312 {main}( ) ..\index.php:0
2 0.8136 28355256 menu_execute_active_handler( ) ..\index.php:22
3 0.8211 28948672 call_user_func_array ( ) ..\menu.inc:501
4 0.8212 28948904 drupal_get_form( ) ..\menu.inc:0
5 0.8212 28950296 drupal_build_form( ) ..\form.inc:188
6 0.8638 29155096 drupal_process_form( ) ..\form.inc:350
7 0.8638 29156672 form_builder( ) ..\form.inc:815
8 0.8640 29160936 form_builder( ) ..\form.inc:1780
9 0.8677 29194376 form_builder( ) ..\form.inc:1780
10 0.8680 29198328 form_builder( ) ..\form.inc:1780
11 0.8682 29201496 form_builder( ) ..\form.inc:1780
12 0.8684 29206592 form_hierarchical_select_process( ) ..\form.inc:1724
13 0.8695 29212456 _hierarchical_select_hierarchy_generate( ) ..\hierarchical_select.module:690
14 0.8741 29233632 _hierarchical_select_apply_entity_settings( ) ..\hierarchical_select.module:1617
15 0.8742 29234424 module_invoke( ) ..\hierarchical_select.module:1827
16 0.8742 29235280 call_user_func_array ( ) ..\module.inc:793
17 0.8742 29235512 hs_taxonomy_hierarchical_select_entity_count( ) ..\module.inc:0
18 0.8742 29235512 hs_taxonomy_term_count_nodes( ) ..\hs_taxonomy.module:467

yugongtian’s picture

Status: Closed (duplicate) » Active
narongwit12’s picture

subscribe

boiky’s picture

Hey Wim.
It's a great looking thing you are developing...
a lot of people start using it... me one of them. but being newbie I can't figure out the link you posted (http://drupal.org/cvs?commit=504338).
Please help simple people with short advise what to do with this error message?
Should we switch to -dev version for now?

boiky’s picture

It looks like we can't use at the moment functionality "Display the node count", that causes this db_rewrite_sql call...

Wim Leers’s picture

Status: Active » Closed (fixed)

hs_taxonomy_hierarchical_select_entity_count() has been commented ever since the inital port to Drupal 7, so I don't know how it is possible that that function is being called on your system, unless you deliberately uncommented that code.