"Received an invalid response from the server."
billnbell - May 6, 2009 - 21:46
| Project: | Hierarchical Select |
| Version: | 6.x-3.x-dev |
| Component: | Miscellaneous |
| Category: | support request |
| Priority: | normal |
| Assigned: | Wim Leers |
| Status: | duplicate |
Jump to:
Description
I am getting this when adding and then removing items in the HS.
Any suggestions on setup. This is IE6 and 7. There are a lot of items in the list.

#1
Type php
Date Wednesday, May 6, 2009 - 11:22
User user
Location http://site/hierarchical_select_json
Referrer http://site/node/add/jobs
Message Missing argument 2 for drupal_retrieve_form() in /var/www/html/drupal-6.11/includes/form.inc on line 320.
Severity error
Hostname 64.78.226.5
Operations
#2
Can you reproduce this with a vanilla installation of Drupal?
#3
It does not happen every time. It seems to happen when the user is adding and removing items using IE.
the form locks up - but they can refresh the page to get a clean form. Not easy to duplicate. But is does happen.
Drupal 6.11
Latest HS
#4
I think the form is timing out. Maybe I have too many items in the list? I have like 5,000 items. two-levels.
I might be able to use tag autocomplete or multi-select - it's just not as nice for huge numbers.
#5
I know of sites who are browsing 30,000 items via HS. I assume you don't have >100 items or so *per* level?
Also, in #3, you did reproduce the problem in a vanilla installation of Drupal?
#6
I didn't try it. I moved to autocomplete due to the client requesting it... WE thought it might have been google analytics interfering when google is slow, but did not have time to verify.
#7
Well then, no way to solve this issue! Closing this issue.
#8
got the same problem here. just suddenly happen, it was ok yesterday, I don't know how it happen today.
#9
Hi Wim,
Set this to active, if this is ok by you. Got the same error "received an invalid response from the server" using Hierarchical Select 6.x-3.x-dev (2009-Apr-07).
And got these warnings:* warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'node_form' was given in httpdocs/includes/form.inc on line 366.
* warning: uasort() [function.uasort]: The argument should be an array in httpdocs/includes/common.inc on line 2838.
I made already the changes suggested in: http://drupal.org/node/451038#comment-1545140
I even set HS itself to 30, no improvement.
The HS installation gives the following configuration:
$config = array('config_id' => 'taxonomy-2',
'save_lineage' => 0,
'enforce_deepest' => 0,
'entity_count' => 0,
'resizable' => 0,
'level_labels' => array(
'status' => 1,
'labels' => array(
0 => '',
),
),
'dropbox' => array(
'status' => 1,
'title' => '',
'limit' => 0,
'reset_hs' => 1,
),
'editability' => array(
'status' => 1,
'item_types' => array(
0 => '',
),
'allowed_levels' => array(
0 => 1,
),
'allow_new_levels' => 1,
'max_levels' => 0,
),
);
Thanks for going into this!
Greetings, Martijn
#10
You're using a module that hacks forms, Summit.
node_form() is not being found, which means the associated file is not being loaded, which means another file gets loaded, which means a wrapper function was used, which means you're using a module that hacks forms.
So … what module are you using?
#11
Hi Wim,
This is my module list. Hopefully you see something familiair related to the moduel which hacks forms.
AdSense 6.x-1.x-dev (2009-Apr-01)Advanced help 6.x-1.2
Chaos tool suite 6.x-1.x-dev (2009-May-12)
FCKeditor - WYSIWYG HTML editor 6.x-2.0-beta1
Front Page 6.x-1.2
Global Redirect 6.x-1.2
Google Analytics 6.x-2.2
Hierarchical Select 6.x-3.x-dev (2009-Apr-07)
Image 6.x-1.x-dev (2009-May-02)
Image FUpload 6.x-3.0-rc2
IMCE 6.x-1.2
Image Assist 6.x-2.0-alpha3
Utility 6.x-2.3
Meta tags 6.x-1.0
Page Title 6.x-2.x-dev (2009-May-08)
Panels 6.x-3.x-dev (2009-May-12)
Pathauto 6.x-2.x-dev (2009-May-03)
Web Links 6.x-2.x-dev (2009-May-11)
SiteMenu 6.x-1.x-dev (2009-Mar-12)
Taxonomy Image 6.x-1.x-dev (2009-May-02)
Token 6.x-1.x-dev (2009-Apr-21)
Views 6.x-2.x-dev (2009-May-07)
Views Bonus Pack 6.x-1.x-dev (2009-May-11)
Views Bulk Operations (VBO) 6.x-1.x-dev (2009-May-11)
Weight 6.x-1.0
Thanks a lot in advance!
Greetings, Martijn
#12
Chaos tool suite is a known problematic module. There's a temporary patch in the issue queue that you can apply.
That aside, you'll have to figure it out on your own.
#13
Hi Wim,
Thanks for your quick response. I will report back what my findings are.
Greetings, Martijn
#14
Hi Wim, The Ctools patch worked for me. But now I have another User Interface issue.
The html with span-id is shown with the 'none' and 'create' items. The issue is: http://drupal.org/node/461984
Thanks for telling me about the patch! I think this issue is closed again.
greetings,
Martijn
#15
@freelylw: I'm assuming it was a random server glitch. Please reopen if the problem persists.
#16
Hi wim
Problem caused by the module Chaos tool . once I swich off the Delegator module. the problem is gone.
#17
Hi Wim, I ran into the same issue. Here is what I can tell you.
Running HS with ubercart and ubercart market place. Ubercart Market Place has an option to "hide' certain ubercart product fields on node form "product" (node/add/product). Originally UC and MP was installed and setup to "hide" some product fields.
I then installed HS and set it up. The first few goes HS didn't throw up any errors when creating the product node. I decided to go back into MP and change that setting to unhide product node fields. That is when I begin having this issue above. Odd thing is, FF works fine, as super admin and regular authenticated user. But, in IE7 I get the error, with both normal auth user and super admin.
Just thought I would post the code that MP is using to hide specific fields:
if (!user_access('administer sellers') && variable_get('mp_products_hide_fields', TRUE)) {$form['base']['weight']['#access'] = FALSE;
$form['base']['dimensions']['#access'] = FALSE;
$form['base']['pkg_qty']['#access'] = FALSE;
$form['base']['default_qty']['#access'] = FALSE;
$form['base']['ordering']['#access'] = FALSE;
$form['shipping']['#access'] = FALSE;
}
According to the API this is an acceptable method to hiding form fields:
http://api.drupal.org/api/file/developer/topics/forms_api_reference.html...
Here is the error status message given after you try to use HS and get the "Received an invalid response from the server." message (you have to refresh the page to see this error, once HS spits out the "invalid response" error).
warning: Missing argument 2 for drupal_retrieve_form() in C:\WAMP\www\fordrupal\includes\form.inc on line 320.warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, '' was given in C:\WAMP\www\fordrupal\includes\form.inc on line 366.
warning: uasort() [function.uasort]: The argument should be an array in C:\WAMP\www\fordrupal\includes\common.inc on line 2829.
A little more digging... In IE, I logged in as admin, went to each vocab setting, and resubmitting the form. Within each "edit vocab" the HS preview does work without errors, in FF and IE.
I hope this is helpful in solving this issue...
#18
Same problem as above, same solution as #16. Turned off delegator and it works fine. Not sure if delegator is something I need, but have too much work in HS to try and keep it atm.
#19
In my case the problem was in admuncher (http://www.admuncher.com)
#20
please help, without Chaos tool work, however it is need for panels!
#21
I'm having this issue without having ctools installed. Using Opera. It happens whenever I want to add a new term into taxonomy at the node form while creating a new node.
There are some errors loged:
1.
Location hierarchical_select_json
Message Missing argument 2 for drupal_retrieve_form() in /includes/form.inc on line 320.
2.
Location hierarchical_select_json
Message call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, '' was given in /includes/form.inc on line 366.
3.
Location hierarchical_select_json
Message uasort() [function.uasort]: The argument should be an array in/includes/common.inc on line 2843.
#22
sorry, double posting...
#23
I have the same problem also using ctools.
When will this error be fixed?
#24
This is not a bug. It's another module that does weird Forms API stuff and because of that, HS cannot retrieve the data is has stored that is necessary for the AJAX callbacks. Please apply the latest patch in #368471: CTools Delegator causes error in hierarchical_select_json() and report back in *that* issue and that issue only if you have CTools installed.
Those with problems in a specific browser: make sure you cannot reproduce the issue in another browser and then please start a new issue.
#25
@ Wim Leers Thank-you for clearing that up and your most excellent work. Patch applied as stated and seems to be working.
#26
Excellent. Marking this one as duplicate then. For those of you that don't get a fully operational HS thanks to the patch referenced in #24, please open a new issue.
#27
This might be the problem: http://doques.net/node/513