Closed (works as designed)
Project:
Hierarchical Select
Version:
7.x-3.x-dev
Component:
Code - Menu
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
22 Apr 2011 at 13:46 UTC
Updated:
16 Sep 2011 at 05:11 UTC
When I tried to add the link to newly created menu, I get following error related to the hierarchical select:
Fatal error: Call to undefined function db_fetch_object() in /home/manveru/www/new.manveru.pl/htdocs/sites/all/modules/hierarchical_select/modules/hs_menu.module on line 91
Call Stack:
0.0001 663648 1. {main}() /home/manveru/www/new.manveru.pl/htdocs/index.php:0
0.3849 38754752 2. menu_execute_active_handler() /home/manveru/www/new.manveru.pl/htdocs/index.php:22
0.3876 39062600 3. call_user_func_array() /home/manveru/www/new.manveru.pl/htdocs/includes/menu.inc:501
0.3876 39063216 4. drupal_get_form() /home/manveru/www/new.manveru.pl/htdocs/includes/menu.inc:0
0.3877 39064976 5. drupal_build_form() /home/manveru/www/new.manveru.pl/htdocs/includes/form.inc:188
2.8036 49404448 6. drupal_process_form() /home/manveru/www/new.manveru.pl/htdocs/includes/form.inc:350
2.8036 49408336 7. form_builder() /home/manveru/www/new.manveru.pl/htdocs/includes/form.inc:815
2.8067 49511128 8. form_builder() /home/manveru/www/new.manveru.pl/htdocs/includes/form.inc:1780
2.8067 49516152 9. form_builder() /home/manveru/www/new.manveru.pl/htdocs/includes/form.inc:1780
2.8068 49524640 10. form_hierarchical_select_process() /home/manveru/www/new.manveru.pl/htdocs/includes/form.inc:1724
2.8094 49539736 11. _hierarchical_select_hierarchy_generate() /home/manveru/www/new.manveru.pl/htdocs/sites/all/modules/hierarchical_select/hierarchical_select.module:690
2.8115 49542960 12. module_invoke() /home/manveru/www/new.manveru.pl/htdocs/sites/all/modules/hierarchical_select/hierarchical_select.module:1616
2.8115 49543904 13. call_user_func_array() /home/manveru/www/new.manveru.pl/htdocs/includes/module.inc:793
2.8115 49544240 14. hs_menu_hierarchical_select_root_level() /home/manveru/www/new.manveru.pl/htdocs/includes/module.inc:0Now I am stucked, because I blocked from adding the link to the menu.
Additionally I am seeing following notices now:
Notice: Undefined index: #item w hs_menu_form_alter() (linia 41 z /home/manveru/www/new.manveru.pl/htdocs/sites/all/modules/hierarchical_select/modules/hs_menu.module).
Notice: Undefined index: #item w hs_menu_form_alter() (linia 41 z /home/manveru/www/new.manveru.pl/htdocs/sites/all/modules/hierarchical_select/modules/hs_menu.module).
Notice: Array to string conversion w _hs_process_attach_css_js() (linia 396 z /home/manveru/www/new.manveru.pl/htdocs/sites/all/modules/hierarchical_select/hierarchical_select.module).
Notice: Undefined offset: 1 w hs_menu_hierarchical_select_lineage() (linia 114 z /home/manveru/www/new.manveru.pl/htdocs/sites/all/modules/hierarchical_select/modules/hs_menu.module).
Comments
Comment #1
lukpe commentedI have the same problem, adding menu links works only after disabling Hierarchical Select Menu component...
Comment #2
duckzland commentedseems the author forget to convert db_fetch_object() to d7 new database api equivalent
this new code for hs_menu.module should fix this problem
Comment #3
manveru commentedYou should post it as a patch.
Comment #4
geerlingguy commentedSubscribe, moving to -dev. Might post a patch when I get some time.
Comment #5
dafederAllowed me to access the page (WSOD before) but now I get a number of php errors, such as:
Notice: Undefined index: #item in hs_menu_form_alter() (line 41 of /XXX/sites/all/modules/hierarchical_select/modules/hs_menu.module).
Comment #6
pepperoni13 commentedI tried changing the this code snippet in that module and still have an issue when i try to edit a meu link.
Comment #7
puya commentedI have the same issue. really stuck here with the hs_menu.module line 91
Comment #8
puya commentedI got the dev version ans I was getting a fatal error. for now disabling the 'hierarchical select menu' works since I dont need it for the menu, just for taxonomy (Although it would be nice to have it on the menu system as well.)
Comment #9
wim leershs_menu has not yet been ported and is marked as such, hence you cannot enable it at admin/build/modules. You should not enable it with force..
Comment #10
geerlingguy commentedI was able to enable the module at admin/build/modules...
Comment #11
Azamat commentedwhat about "?>" at the end of hs_menu.module ????
Comment #12
offerman commentedSame problem here (as designed :-)
However, was able to enable the Hierarchical Select Menu in the module admin window.
Please don't put it there / disable it if not yet ported, must be confusing a lot of people.
Comment #13
wim leersLet's look at
modules/hs_menu.info.In git, HS 7.x-3.x:
In the tarball:
Drupal.org's packaging scripts are to blame for the ability to enable the module.
Comment #14
wim leersReported at #1244792: In .info files, "core=" values are overridden by packaging scripts.
Comment #15
tommychris#2 maybe for a commit?