Everything seems to be working fine except when i select an option, the result on the ajax call i get is:

"form alter!{ "cache": [ ], "output": "\x3cdiv class=\"form-item\" id=\"hierarchical-select-90-wrapper-wrapper\"\x3e\n \x3clabel for=\"hierarchical-select-90-wrapper\"\x3eHS Section: \x3c/label\x3e\n \x3cdiv class=\" hierarchical-select-wrapper hierarchical-select-level-labels-style-none hierarchical-select-wrapper-for-name-edit-field-hs-section-nid hierarchical-select-wrapper-for-config-nodereference-roo.field_hs_section\" id=\"hierarchical-select-90-wrapper\"\x3e\x3cdiv class=\"hierarchical-select clear-block\"\x3e\x3cdiv class=\"selects\"\x3e\x3cselect name=\"field_hs_section[nid][hierarchical_select][selects][0]\" class=\"form-select\" id=\"edit-field-hs-section-nid-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=\"4479\" class=\"has-children\"\x3eLake Okeechobee\x3c/option\x3e\x3coption value=\"4873\" class=\"has-children\" selected=\"selected\"\x3eLake Weir\x3c/option\x3e\x3coption value=\"4876\" class=\"has-children\"\x3eLake Placid\x3c/option\x3e\x3coption value=\"4878\" class=\"has-children\"\x3eNewnans Lake\x3c/option\x3e\x3coption value=\"4880\" class=\"has-children\"\x3eLake Kerr\x3c/option\x3e\x3coption value=\"4891\" class=\"has-children\"\x3ePotomac River\x3c/option\x3e\x3coption value=\"4893\" class=\"has-children\"\x3eLake Springfield\x3c/option\x3e\x3coption value=\"4899\" class=\"has-children\"\x3eRaccoon Creek\x3c/option\x3e\x3coption value=\"4902\" class=\"has-children\"\x3ePatoka River\x3c/option\x3e\x3coption value=\"4994\" class=\"has-no-children\"\x3eLake Abert\x3c/option\x3e\x3coption value=\"5133\" class=\"has-children\"\x3eOSHYN-QA Lake Mendota\x3c/option\x3e\x3coption value=\"5183\" class=\"has-children\"\x3eOSHYN QA VIRGINIA WATER\x3c/option\x3e\x3coption value=\"5327\" class=\"has-no-children\"\x3eAlmanor Lake\x3c/option\x3e\x3coption value=\"5346\" class=\"has-children\"\x3eSalton Sea\x3c/option\x3e\x3coption value=\"5348\" class=\"has-children\"\x3eIsabella Lake\x3c/option\x3e\x3c/select\x3e\x3cselect name=\"field_hs_section[nid][hierarchical_select][selects][1]\" class=\"form-select\" id=\"edit-field-hs-section-nid-hierarchical-select-selects-1\" \x3e\x3coption value=\"4874\" class=\"has-no-children\" selected=\"selected\"\x3eAll section in Lake Weir\x3c/option\x3e\x3c/select\x3e\x3c/div\x3e\x3c/div\x3e\x3cinput type=\"hidden\" name=\"field_hs_section[nid][hsid]\" id=\"edit-field-hs-section-nid-hsid\" value=\"90\" /\x3e\n\x3cdiv class=\"nojs\"\x3e\x3cinput type=\"submit\" name=\"op\" id=\"edit-field-hs-section-nid-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 }"

But i get that alert so the HS really doesnt work. BTW my node reference field is called field_hs_section.

Comments

djmolny’s picture

Sorry, this looks like a dup of: http://drupal.org/node/538022. I'll repost to that thread.


I'm getting the same error. It appears to be associated (at least in my setup) with the use of a Views 2 attachment that has the Inherit exposed filters option set to yes. I surmise that something in either the PHP or JavaScript logic doesn't like being called twice. Reloading the page yields three additional PHP errors, displayed in the message area:

  • warning: Missing argument 2 for drupal_retrieve_form() in /var/www/includes/form.inc on line 326.
  • warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, '' was given in /var/www/includes/form.inc on line 372.
  • warning: uasort() [function.uasort]: The argument should be an array in /var/www/includes/common.inc on line 2874.
wim leers’s picture

Status: Active » Closed (duplicate)

No problem. Thanks for noticing :)

Indeed a duplicate of #538022: JS alert: "Received an invalid response from the server.".