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.

CommentFileSizeAuthor
#17 bug.png43.8 KBivy5

Comments

digitalproductionart’s picture

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

kongoji’s picture

Thank you man, you made my day! I can happily confirm the weight changes fixed the problem for me too

wim leers’s picture

@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.)

digitalproductionart’s picture

Hey 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.

wim leers’s picture

Component: Code - Taxonomy » Code
Assigned: Unassigned » wim leers

Excellent. All I needed to know :)

Andrew Gorokhovets’s picture

Good 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

Andrew Gorokhovets’s picture

Priority: Normal » Critical

It is really important

skyredwang’s picture

Title: "Received an invalid response from the server." error with og_vocab module » "Received an invalid response from the server." error

Title 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

wim leers’s picture

Priority: Critical » Normal

Then please track down the cause.

crea’s picture

In 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()

skyredwang’s picture

No, I don't have the CTools on the site

bacchus101’s picture

I thought this was the delegator issue, but I now have it disabled and I am still getting the invalid response error message.

erle’s picture

a 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

skyredwang’s picture

This error is caused by
hieracrchical_select.js line 509

success:    function(response) {
      // When invalid HTML is received in Firefox, jQuery calls this function.
      if ($('.hierarchical-select-wrapper > *', $(response.output)).length == 0$
        Drupal.HierarchicalSelect.throwError(hsid, Drupal.t('Received an invali$
       	return;
      }

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'

wim leers’s picture

Title: "Received an invalid response from the server." error » OG Vocabulary compatibility
Status: Active » Fixed

I'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.

Status: Fixed » Closed (fixed)

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

ivy5’s picture

Title: OG Vocabulary compatibility » When i select the first level's item for getting the second level's items.but it appear this error
Priority: Normal » Major
StatusFileSize
new43.8 KB

When 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.