I only get this error when the taxonomy vocabulary is inside of a group. If I move the same vocabulary outside of the group, HS works fine.
This issue seems similar to the page_route issue, but the same fixes for page-route do not work, or are already applied to the dev version. I got HS to work on a sandbox vanilla installation with drupal 6.11. and activated the modules I needed one at a time, then testing HS. The only time HS fails is with og_vocab module. I also experimented with making sure HS loads last, to no avail.
Please let me know if you need more information. I LOVE this module, thanks for your hard work.
Comments
Comment #1
digitalproductionart commentedI loaded firebug and devel, and it appears that the issue is similar to pageroute. I changed the weights of all hs components (changing only hierarchical_select didn't work) directly in the database to load last (system table). I'm not a developer by any means, so no doubt, this is the incorrect way to fix this. I just want to give Wim as much information as possible for his module development, and will apply his fixes once he updates. Here is what I changed:
Here is what I changed in the database:
hs_taxonomy_views = 10
hs_taxonomy = 10
hs_smallhierarchy = 10
hs_menu = 10
hs_flatlist = 10
hs_content_taxonomy = 10
hs_content_taxonomy_views = 10
hierarchical_select = 16
hs_book = 10
Comment #2
kongoji commentedThank you man, you made my day! I can happily confirm the weight changes fixed the problem for me too
Comment #3
wim leers@artedemingo: Thanks, very useful :) What was og_vocab's weight? What's the rationale behind setting HS itself to 16 and all implementation modules to 10? (If you remember it, it'll save me the time from looking that up as well.)
Comment #4
digitalproductionart commentedHey Wim,
og_vocab's weight is 5, which has to be higher than taxonomy in order to over-ride it while in a group. Originally, the HS Select module was 6, and the implementation modules were 0. I simply added 10 to all to make sure all of them were higher than og_vocab, and reading that HS Select needs to load last among all modules, I chose a high number that I'm fairly confident will be higher than future installed modules. Also, I was not sure if the weight relationship between HS Select and the implementation modules needed to stay the same, hence HS Select set to 16 and the rest set to 10.
Let me know if you need more information.
Comment #5
wim leersExcellent. All I needed to know :)
Comment #6
Andrew Gorokhovets commentedGood day Wim!
Your module is very nice!
But I have a problem with it install.
What I do:
1)I'm setup clear drupal
2)Place this module(6.x-3.x-dev 2009-Apr-07) in "sites/all/modules/"
3)enable Hierarchical Select 6.x-3.x-dev and Hierarchical Select Taxonomy 6.x-3.x-dev
4)go to admin/content/taxonomy and Select a vocabulary.
Now,when I try to select term in node/add/* I'm take a error "Received an invalid response from the server"
Troubleshooting
5)in admin/reports/status Hierarchical Select All updates installed. Implementation modules are installed correctly.
6) Then Use CTRL+R in Windows/Linux browsers and have no changes.
7)hs_pageroute.patch do not help
8)
artedemingo - May 2, 2009 - 12:18
I loaded firebug and devel, and it appears that the issue is similar to pageroute. I changed the weights of all hs components (changing only hierarchical_select didn't work) directly in the database to load last (system table). I'm not a developer by any means, so no doubt, this is the incorrect way to fix this. I just want to give Wim as much information as possible for his module development, and will apply his fixes once he updates. Here is what I changed:
Here is what I changed in the database:
hs_taxonomy_views = 10
hs_taxonomy = 10
hs_smallhierarchy = 10
hs_menu = 10
hs_flatlist = 10
hs_content_taxonomy = 10
hs_content_taxonomy_views = 10
hierarchical_select = 16
hs_book = 10
Wim, please write where I must changed. In my DB thera no hs_taxonomy... table's
I have
Drupal 6.12
Apache/2.2.6 (Win32) PHP/5.2.5
MySQL5.0.45
Help please
Comment #7
Andrew Gorokhovets commentedIt is really important
Comment #8
skyredwangTitle changed, because the problem is not with og_vocab particularly.
When the error occurs, below is the response sent back by
Fatal error: Unsupported operand types in /home/greatbre/public_html/includes/common.inc on line 2831
Comment #9
wim leersThen please track down the cause.
Comment #10
crea commentedIn my case that error was caused by CTools Delegator causing HS to miss node.pages.inc file for inclusion.
skyredwang if you have Panels 3 and CTools Delegator, then this is duplicate of #368471: CTools Delegator causes error in hierarchical_select_json()
Comment #11
skyredwangNo, I don't have the CTools on the site
Comment #12
bacchus101 commentedI thought this was the delegator issue, but I now have it disabled and I am still getting the invalid response error message.
Comment #13
erle commenteda placeholder for anyone stumbling across this error.
I just hit this same bug, without og_vocab installed. Turned out to be my bad, an errant print_r in some form alters was causing JS loading problerms, giving this error.
Removing the print_r solved it
Comment #14
skyredwangThis error is caused by
hieracrchical_select.js line 509
See comment#8 for the response.output
Observation: If you select the exact same item, SOMETIMES, it works, SOMETIMES it throws this error, which might imply the problem is 'caching'
Comment #15
wim leersI've committed changes to the D5 and D6 versions to alter the module weight according to artedemingo's reports. For all other problems reported here, please open new issues.
See http://drupal.org/cvs?commit=239182 and http://drupal.org/cvs?commit=239184.
Comment #17
ivy5 commentedWhen i select the first level's item for getting the second level's items.
But it appear this error."Receive an invalid response form the server."
I want to know how to solove this problem.