HS doesn't work with clean URLs off

dopedwizard - October 15, 2009 - 23:01
Project:Hierarchical Select
Version:6.x-3.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Wim Leers
Status:closed
Description

Status in log file checked: Hierarchical Select All updates installed. Implementation modules are installed correctly.

Whenever we try to add a new Taxonomy term and than try to assign it to a parent term we get the error 'Received an invalid response from server.'
When using terms that were assigned previously we also get this error message after selecting the parrent term in a cck field.

We searched quiet a bit but could not come across anyone else having this issue.

rgds

dopedwizard

#1

Wim Leers - October 16, 2009 - 12:44
Priority:critical» normal
Status:active» postponed (maintainer needs more info)

There must be something causing this problem other than HS, since HS works fine for thousands of people. Most likely, it's a module that's conflicting. Before continuing, please try to reproduce it on a vanilla Drupal install. If you can't, it's a conflicting module. Then I'm afraid you will have to track down which module is causing it. Without posting steps to reproduce, there's nothing I can do!

#2

dopedwizard - October 18, 2009 - 14:24

Just installed a vanilla install on a different server and I have the exact same issue

Drupal 6.14
Clean urls are off
nothing installed except hierachical select into

/sites/all/modules

everything acitvated except for the two unsupported features and the the once related to cck and views as they are not isntalled.

After adding a term and than adding vocabulary it is ok, but if I than want to assign a parent to the vocabulary I get teh same error ass above.

Sample:

City <- adding vocab city (works)
adding term Toronto to city works

Now I want to add the term 5th AVe. to toronto and when selecting toronto as the parrent I get the above stated error message as said I have installed drupal on two different servers and on both I gethte same issue.

rgds
wiz

#3

Wim Leers - October 18, 2009 - 14:30

Could you please make a screencast that:
1) shows the configuration of your site
2) shows the problem

That makes it easier for me to reproduce the problem. Thanks!

P.S.: you can use this free application: http://jingproject.com/

#4

dopedwizard - October 18, 2009 - 14:41

Hi,

ok solved ... it did have to have clean urls activated to work, did not know this, did not read it anywhere else as well. Is this a mandatory setting for the module to work?

rgds
wiz

#5

Wim Leers - October 18, 2009 - 14:50

It should not be mandatory. Considering that adding a city works for you, but then adding another term fails, excludes that from being the cause.

#6

dopedwizard - October 18, 2009 - 14:56

Mh nope seems to be mandatory, not that it bothers me, but as soon as i turn off clean urls on any of the two installations it fails again.

#7

Wim Leers - October 18, 2009 - 15:24
Category:bug report» support request
Status:postponed (maintainer needs more info)» fixed

Ok, weird. I'll remember this, but I think it's an isolated case.

#8

dopedwizard - October 20, 2009 - 14:24

Ok well just to let you know have tried it now with a local install, and had the same issue. So this was now on two shared hostes and one local install.

rgds
wiz

#9

Flying Drupalist - October 21, 2009 - 11:40

Getting this too. Also clean urls off.

#10

barako - October 22, 2009 - 19:50

Hi,

I had the same problem but only for administrator users.
After many tests, I think it was due to a conflict with the module Administration menu.
Indeed, with that module disabled now I don't have that error anymore.

#12

Wim Leers - October 25, 2009 - 13:46
Title:Assigning Terms to Parents gets error 'Received an invalid response from server.'» HS doesn't work with clean URLs *or* when Administration menu module is enabled
Status:fixed» active

Updating to mirror new information.

Anybody who's got the time to investigate which one it is? (Or maybe even both.)

#13

Flying Drupalist - October 26, 2009 - 02:22

I vote for clean urls, turned it on and it works. Didn't have administration menu.

#14

andybounce - October 30, 2009 - 04:58

So... I have both Clean URLS *and* Administration menu enabled, and I'm getting this error when trying to preview an exposed HS filter in views. Haven't tested it outside of the views panel, however I figured I'd try and be helpful and post some response code from firebug:

Fatal error: views_exposed_form() [<a href='function.views-exposed-form'>function.views-exposed-form</a>]: The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition &quot;views_handler_filter_node_type&quot; of the object you are trying to operate on was loaded _before_ unserialize() gets called or provide a __autoload() function to load the class definition in /sites/all/modules/views/views.module on line 962

I know it's a little specific toward views, but I thought it might help those who are smarter than I :)

#15

hefox - October 30, 2009 - 14:24
Title:HS doesn't work with clean URLs *or* when Administration menu module is enabled» HS doesn't work with clean URLs off *or* when Administration menu module is enabled

(Adding 'off' to the title to indicate the issue is when clean urls is off to avoid the brief bit of worry I at least had thinking it was buggy with them on. Sorry no time to try and tackle this)

#16

barako - October 30, 2009 - 15:39

I think you can remove Admin menu from the title, I still have the problem whith that module disabled, sorry for the mistake.
I can't identify why the error happens for now.
When selecting the parent term in node form, sometimes it works well the first time but it fails when doing it immediatly after the second time.
Errors messages are :
'Received an invalid response from the server'
in Firebug : drupal/hierarchical_select_json? 500 Internal server Error
on the page :
* warning: Missing argument 2 for drupal_retrieve_form() in drupal/includes/form.inc on line 325.
* warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, '' was given in drupal/includes/form.inc on line 371.
* warning: uasort() [function.uasort]: The argument should be an array in drupal/includes/common.inc on line 2875.

I need to do other tests.

#17

Wim Leers - October 30, 2009 - 15:58
Title:HS doesn't work with clean URLs off *or* when Administration menu module is enabled» HS doesn't work with clean URLs off
Component:Code - Taxonomy» Code
Category:support request» bug report
Assigned to:Anonymous» Wim Leers

Yep, reproduced, in both D5 and D6.

@hefox: thanks for the fixed title :P :)

#18

Wim Leers - October 30, 2009 - 16:06
Status:active» fixed

Fixed! This was a regression caused by #535274: HS does not maintain GET arguments.

- D6: http://drupal.org/cvs?commit=281706
- D5: http://drupal.org/cvs?commit=281708

#19

System Message - November 13, 2009 - 16:10
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.