Hierarchical select hangs when loading taxonomy when you are creating a node with Hierarchical Select and you have Pathauto (6.x-2.x-dev) and Devel - Perfromance Log (6x v1.13) enabled.

Not actually sure if it's a Hierarchical Select bug or the problem lies elsewhere...

For some reason, when a term is slected and the JSON call is made to get the child term, on the third call to the includes section (line 74) of pathauto.inc, the script dies.

Watchdog shows the following error:

Type php
Date Sunday, February 1, 2009 - 04:11
User Administrator
Location http://d6.local.net/hierarchical_select_json
Referrer http://d6.local.net/node/add/destination-index
Message require_once(sites/all/modules/contrib/pathauto/pathauto.inc) [function.require-once]: failed to open stream: No such file or directory in /home/d6/public_html/sites/all/modules/contrib/pathauto/pathauto.module on line 74.
Severity error

The response from the call has the correct data but there is a similar error appended to the end of the response:

{ "cache": [  ], "output": "\x3cdiv class=\"form-item\" id=\"edit-taxonomy-3-wrapper\"\x3e\n \x3clabel for=\"edit-taxonomy-3\"\x3eGeo Hierarchy: \x3c/label\x3e\n \x3cdiv  class=\" hierarchical-select-wrapper hierarchical-select-level-labels-style-none\" id=\"hierarchical-select-1-wrapper\"\x3e\x3cdiv class=\"hierarchical-select clear-block\"\x3e\x3cdiv class=\"selects\"\x3e\x3cselect name=\"taxonomy[3][hierarchical_select][selects][0]\" class=\"form-select\" id=\"edit-taxonomy-3-hierarchical-select-selects-0\" \x3e\x3coption value=\"label_0\" class=\" level-label\"\x3e\x3c/option\x3e\x3coption value=\"none\" class=\"\"\x3e\x26lt;none\x26gt;\x3c/option\x3e\x3coption value=\"create_new_item\" class=\"\"\x3e\x26lt;create new item\x26gt;\x3c/option\x3e\x3coption value=\"4336\" class=\"has-children\" selected=\"selected\"\x3eWorld\x3c/option\x3e\x3c/select\x3e\x3cselect name=\"taxonomy[3][hierarchical_select][selects][1]\" class=\"form-select\" id=\"edit-taxonomy-3-hierarchical-select-selects-1\" \x3e\x3coption value=\"label_1\" class=\" level-label\" selected=\"selected\"\x3e\x3c/option\x3e\x3coption value=\"create_new_item\" class=\"\"\x3e\x26lt;create new item\x26gt;\x3c/option\x3e\x3coption value=\"4337\" class=\"has-children\"\x3eAfrica\x3c/option\x3e\x3coption value=\"4338\" class=\"has-children\"\x3eAsia\x3c/option\x3e\x3coption value=\"4339\" class=\"has-children\"\x3eCaribbean\x3c/option\x3e\x3coption value=\"4340\" class=\"has-children\"\x3eCentral America\x3c/option\x3e\x3coption value=\"4341\" class=\"has-children\"\x3eEurope\x3c/option\x3e\x3coption value=\"4342\" class=\"has-children\"\x3eMiddle East\x3c/option\x3e\x3coption value=\"4343\" class=\"has-children\"\x3eNorth America\x3c/option\x3e\x3coption value=\"4344\" class=\"has-children\"\x3eSouth America\x3c/option\x3e\x3coption value=\"4345\" class=\"has-children\"\x3eSouth Pacific\x26amp;Australia\x3c/option\x3e\x3c/select\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class=\"nojs\"\x3e\x3cinput type=\"submit\" name=\"op\" id=\"edit-taxonomy-3-nojs-update-button\" value=\"Update\"  class=\"form-submit update-button\" /\x3e\n\x3cdiv class=\"help-text\"\x3e\x3cspan class=\"warning\"\x3eYou don\'t have Javascript enabled.\x3c/span\x3e \x3cspan class=\"ask-to-hover\"\x3eHover for more information!\x3c/span\x3e But don\'t worry: you can still use this web site! You have two options:\x3cdiv class=\"item-list\"\x3e\x3cul class=\"solutions\"\x3e\x3cli class=\"first\"\x3e\x3cspan class=\"highlight\"\x3eenable Javascript\x3c/span\x3e in your browser and then refresh this page, for a much enhanced experience.\x3c/li\x3e\n\x3cli class=\"last\"\x3e\x3cspan class=\"highlight\"\x3eclick the \x3cem\x3eUpdate\x3c/em\x3e button\x3c/span\x3e every time you want to update the selection.\x3c/li\x3e\n\x3c/ul\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\n\x3c/div\x3e\n", "log": null }<br />
<b>Fatal error</b>:  require_once() [<a href='function.require'>function.require</a>]: Failed opening required 'sites/all/modules/contrib/pathauto/pathauto.inc' (include_path='.:/usr/lib/php:/usr/local/lib/php') in <b>/home/d6/public_html/sites/all/modules/contrib/pathauto/pathauto.module</b> on line <b>74</b><br />

The Call Stacks that go through line 74 of pathauto.inc , the first two are successful, the last dies:

#3 DIES

      PHP Debug [Remote PHP Launch]	
	 PHP Application	
		http://d6.local.net/node/add/destination-index (suspended)	
			_pathauto_include() /D6 Sandbox/sites/all/modules/contrib/pathauto/pathauto.module at line 73	
			_pathauto_include() /D6 Sandbox/sites/all/modules/contrib/pathauto/pathauto.module at line 72	
			pathauto_user() /D6 Sandbox/sites/all/modules/contrib/pathauto/pathauto.module at line 379	
			pathauto_user() /D6 Sandbox/sites/all/modules/contrib/pathauto/pathauto.module at line 378	
			user_module_invoke() /D6 Sandbox/modules/user/user.module at line 22	
			user_module_invoke() /D6 Sandbox/modules/user/user.module at line 18	
			user_load() /D6 Sandbox/modules/user/user.module at line 183	
			user_load() /D6 Sandbox/modules/user/user.module at line 141	
			user_uid_optional_load() /D6 Sandbox/modules/user/user.module at line 1123	
			user_uid_optional_load() /D6 Sandbox/modules/user/user.module at line 1122	
			_menu_load_objects() /D6 Sandbox/includes/menu.inc at line 410	
			_menu_load_objects() /D6 Sandbox/includes/menu.inc at line 371	
			_menu_link_translate() /D6 Sandbox/includes/menu.inc at line 650	
			_menu_link_translate() /D6 Sandbox/includes/menu.inc at line 629	
			_menu_tree_check_access() /D6 Sandbox/includes/menu.inc at line 1007	
			_menu_tree_check_access() /D6 Sandbox/includes/menu.inc at line 1003	
			menu_tree_check_access() /D6 Sandbox/includes/menu.inc at line 996	
			menu_tree_check_access() /D6 Sandbox/includes/menu.inc at line 982	
			menu_tree_page_data() /D6 Sandbox/includes/menu.inc at line 945	
			menu_tree_page_data() /D6 Sandbox/includes/menu.inc at line 860	
			menu_set_active_trail() /D6 Sandbox/includes/menu.inc at line 1522	
			menu_set_active_trail() /D6 Sandbox/includes/menu.inc at line 1490	
			menu_get_active_trail() /D6 Sandbox/includes/menu.inc at line 1554	
			menu_get_active_trail() /D6 Sandbox/includes/menu.inc at line 1553	
			menu_get_active_title() /D6 Sandbox/includes/menu.inc at line 1589	
			menu_get_active_title() /D6 Sandbox/includes/menu.inc at line 1588	
			drupal_get_title() /D6 Sandbox/includes/path.inc at line 188	
			drupal_get_title() /D6 Sandbox/includes/path.inc at line 183	
			performance_log_details() /D6 Sandbox/sites/all/modules/devel/devel/performance/performance.module at line 282	
			performance_log_details() /D6 Sandbox/sites/all/modules/devel/devel/performance/performance.module at line 278	
			performance_shutdown() /D6 Sandbox/sites/all/modules/devel/devel/performance/performance.module at line 177	
	http://d6.local.net/node/add/destination-index	

#2 WORKS

	PHP Debug [Remote PHP Launch]	
		 PHP Application	
			http://d6.local.net/node/add/destination-index (suspended)	
				_pathauto_include() /D6 Sandbox/sites/all/modules/contrib/pathauto/pathauto.module at line 73	
				_pathauto_include() /D6 Sandbox/sites/all/modules/contrib/pathauto/pathauto.module at line 72	
				pathauto_nodeapi() /D6 Sandbox/sites/all/modules/contrib/pathauto/pathauto.module at line 201	
				pathauto_nodeapi() /D6 Sandbox/sites/all/modules/contrib/pathauto/pathauto.module at line 200	
				node_invoke_nodeapi() /D6 Sandbox/modules/node/node.module at line 673	
				node_invoke_nodeapi() /D6 Sandbox/modules/node/node.module at line 669	
				node_object_prepare() /D6 Sandbox/modules/node/node.pages.inc at line 87	
				node_object_prepare() /D6 Sandbox/modules/node/node.pages.inc at line 68	
				node_form() /D6 Sandbox/modules/node/node.pages.inc at line 109	
				node_form() /D6 Sandbox/modules/node/node.pages.inc at line 93	
				drupal_retrieve_form() /D6 Sandbox/includes/form.inc at line 366	
				drupal_retrieve_form() /D6 Sandbox/includes/form.inc at line 320	
				hierarchical_select_json() /D6 Sandbox/sites/all/modules/contrib/hierarchical_select/hierarchical_select.module at line 294	
				hierarchical_select_json() /D6 Sandbox/sites/all/modules/contrib/hierarchical_select/hierarchical_select.module at line 267	
				menu_execute_active_handler() /D6 Sandbox/includes/menu.inc at line 348	
				menu_execute_active_handler() /D6 Sandbox/includes/menu.inc at line 334	
				/D6 Sandbox/index.php at line 18	
		http://d6.local.net/node/add/destination-index	

#1 WORKS

PHP Debug [Remote PHP Launch]	
		 PHP Application	
			http://d6.local.net/node/add/destination-index (suspended)	
				_pathauto_include() /D6 Sandbox/sites/all/modules/contrib/pathauto/pathauto.module at line 73	
				_pathauto_include() /D6 Sandbox/sites/all/modules/contrib/pathauto/pathauto.module at line 72	
				pathauto_nodeapi() /D6 Sandbox/sites/all/modules/contrib/pathauto/pathauto.module at line 201	
				pathauto_nodeapi() /D6 Sandbox/sites/all/modules/contrib/pathauto/pathauto.module at line 200	
				node_invoke_nodeapi() /D6 Sandbox/modules/node/node.module at line 673	
				node_invoke_nodeapi() /D6 Sandbox/modules/node/node.module at line 669	
				node_object_prepare() /D6 Sandbox/modules/node/node.pages.inc at line 87	
				node_object_prepare() /D6 Sandbox/modules/node/node.pages.inc at line 68	
				node_form() /D6 Sandbox/modules/node/node.pages.inc at line 109	
				node_form() /D6 Sandbox/modules/node/node.pages.inc at line 93	
				drupal_retrieve_form() /D6 Sandbox/includes/form.inc at line 366	
				drupal_retrieve_form() /D6 Sandbox/includes/form.inc at line 320	
				hierarchical_select_json() /D6 Sandbox/sites/all/modules/contrib/hierarchical_select/hierarchical_select.module at line 294	
				hierarchical_select_json() /D6 Sandbox/sites/all/modules/contrib/hierarchical_select/hierarchical_select.module at line 267	
				menu_execute_active_handler() /D6 Sandbox/includes/menu.inc at line 348	
				menu_execute_active_handler() /D6 Sandbox/includes/menu.inc at line 334	
				/D6 Sandbox/index.php at line 18	
		http://d6.local.net/node/add/destination-index	

I also see a few more related errors in the log--but I am not sure what they relate to, I haven't been able to reproduce them.

Type php
Date Sunday, February 1, 2009 - 03:06
User Administrator
Location http://d6.local.net/hierarchical_select_json
Referrer http://d6.local.net/admin/reports/event/484
Message Missing argument 2 for drupal_retrieve_form() in /home/d6/public_html/includes/form.inc on line 320.
Severity error

Type php
Date Sunday, February 1, 2009 - 03:06
User Administrator
Location http://d6.local.net/hierarchical_select_json
Referrer http://d6.local.net/admin/reports/event/484
Message uasort() [function.uasort]: The argument should be an array in /home/d6/public_html/includes/common.inc on line 2825.
Severity error

Type php
Date Sunday, February 1, 2009 - 03:06
User Administrator
Location http://d6.local.net/hierarchical_select_json
Referrer http://d6.local.net/admin/reports/event/484
Message call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, '' was given in /home/d6/public_html/includes/form.inc on line 366.
Severity error

Which looks like an error that I saw in ticket http://drupal.org/node/348677 which might be related.

Comments

Wim Leers’s picture

Status: Active » Closed (fixed)

Do these problems still exist with the latest version?

Closing while cleaning up the issue queue. Feel free to reopen.