Closed (fixed)
Project:
Hierarchical Select
Version:
6.x-3.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
6 May 2009 at 21:46 UTC
Updated:
16 May 2013 at 18:30 UTC
Jump to comment: Most recent
Comments
Comment #1
billnbell commentedType 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
Comment #2
wim leersCan you reproduce this with a vanilla installation of Drupal?
Comment #3
billnbell commentedIt 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
Comment #4
billnbell commentedI 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.
Comment #5
wim leersI 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?
Comment #6
billnbell commentedI 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.
Comment #7
wim leersWell then, no way to solve this issue! Closing this issue.
Comment #8
freelylw commentedgot the same problem here. just suddenly happen, it was ok yesterday, I don't know how it happen today.
Comment #9
summit commentedHi 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).
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:
Thanks for going into this!
Greetings, Martijn
Comment #10
wim leersYou'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?
Comment #11
summit commentedHi Wim,
This is my module list. Hopefully you see something familiair related to the moduel which hacks forms.
Thanks a lot in advance!
Greetings, Martijn
Comment #12
wim leersChaos 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.
Comment #13
summit commentedHi Wim,
Thanks for your quick response. I will report back what my findings are.
Greetings, Martijn
Comment #14
summit commentedHi 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
Comment #15
wim leers@freelylw: I'm assuming it was a random server glitch. Please reopen if the problem persists.
Comment #16
freelylw commentedHi wim
Problem caused by the module Chaos tool . once I swich off the Delegator module. the problem is gone.
Comment #17
elvis2 commentedHi 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:
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).
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...
Comment #18
bstrange commentedSame 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.
Comment #19
Andrew Gorokhovets commentedIn my case the problem was in admuncher (http://www.admuncher.com)
Comment #20
kiev1.org commentedplease help, without Chaos tool work, however it is need for panels!
Comment #21
nchase commentedI'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.
Comment #22
nchase commentedsorry, double posting...
Comment #23
SWeddig commentedI have the same problem also using ctools.
When will this error be fixed?
Comment #24
wim leersThis 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.
Comment #25
gumdrop commented@ Wim Leers Thank-you for clearing that up and your most excellent work. Patch applied as stated and seems to be working.
Comment #26
wim leersExcellent. 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.
Comment #27
doq commentedThis might be the problem: http://doques.net/node/513
Comment #28
Dev.Moh Sh commentedI have the same problem
it is appear in one of my sites and does not in another one, so i search for the differences and found that the problem come when i enable the i18n module (http://drupal.org/project/i18n)
Comment #29
Anonymous (not verified) commentedStill having this issue. Tried all patches, not using Ctools Delegator. Using Ctools 1.3, Panels 3.3, HS 3.0 stable latest (31 Dec 09).
It happened suddenly, can't exlain it. Worked fine until 5 days ago, probably some update.
My site is dead now, since user generated content depends on HS...
Comment #30
Equinger commentedSubscribed. Was using 6.x.3.0 and just loaded and ran update.php with the latest 6.x.3.x-dev. Basically, this problem started happening with 6.x.3.0 after I added more exposed filters to a view pane. I thought I would take them away and I would be back to square one, but the HS no longer functions, yielding this error.
Comment #31
mayerwin commentedsubscribing
Comment #32
Alex Andrascu commentedsubscribing
Comment #33
Ingumsky commentedThank you Wim for your continuing work on this module.
I've tried to disable all contributed modules on my test website and to create a term but error still occurs. Probably size of the dictionary makes it difficult to create a new term. There're 496 terms im my Geography dictionary (4 levels) and every time I'll try to use HS for it "Received an invalid response from the server." window appears.
Comment #34
picacsso commentedI had the same issues. I was using hs_nodereference module and had the views UI module installed too. After I disable the views UI i get the "...invalid response" error when using the drop down. When the views UI is enabled, it works fine.
Not sure whats going on.
I just thought I'd share this. May help someone.
Comment #35
Anonymous (not verified) commented+1 here ... disabling the chaos tools seems to do the trick, but chaos tools it`s an important module.
Still... apparently this one shows up without chaos tools enabled, some would say.
Comment #36
qproNo error changing the view display:
I have a view with content pane display and exposed filter (Term ID with depth and Hierarchical Select selection type) added in a panel. When i apply the filter in the view i get the "Received an invalid response from the server."
If the display is changed to page display the error is not shown.
#34 for my site the error is independent of the views ui enabled/disabled state
- Hierarchical Select 6.x-3.7
- Chaos tools 6.x-1.8
- Views content panes 6.x-1.8
- Panels 6.x-3.9
- Views 6.x-2.12
Comment #37
user654 commented.
Comment #38
daniel wentsch commentedI'd like to throw in my experience: I get that error reproducibly every time I duplicate a node using node_clone module (http://drupal.org/project/node_clone).
Adding and editing nodes isn't affected by the error at all. Maybe someone else is using node clone?
Edit: okay, the problem with node_clone is a different issue: #355226: HS + Node clone compatibility and making HS more informative when an error occurs
Comment #39
amogiz commentedGot the same and even with Drupal 7 … No solution ? I did not have the problem a few days before.
Comment #40
oriol_e9gSame problem error with HS 3.7 when we try to /node/add/*, same problem with 3.7+3-dev :(
Comment #41
oriol_e9gI have solved the problem! The bug and my solution here #1439736: Hierarchical Select doesn't work if you disable English language
Comment #42
stefan81 commentedIn my case the Dialog API module interfered HS.
Deactivating the module solved the problem (temporarily).
@Wim Leers: Thank you for this great module!
Comment #43
stefan81 commentedHi I just wanted to clarify my debug:
1)
Actually it is query_ui which is interfering with the loading of the drop downs selectors.
I am using jquery_ui version 1.8.16
See related issue http://drupal.org/node/873170
2)
Only if I have multiple nodes in edit mode open tabs in my browser (Safari),
i get the "invalid response" error message.
Comment #44
gangaloo commentedI had the same problem but it goes away when you remove any debugging from devel like dpm(). It also will appear when you do any drupal_set_message() commands. After removing any drupal_set_messages or debugging commands like dpm(), the message never comes back.
Comment #45
ltrainThanks @gangaloo - this saved me some time!
Comment #46
kars-t commentedDear fellow Drupal enthusiasts,
this issue is now lasting for a very long time in the issue queue and was unfortunately never solved. As Drupal is a open source project everyone is helping on voluntary basis. So that this is was not solved is nothing personal and means no harm. But perhaps no one had time to deal with this issue, maybe it is too complex or did not describe the problem comprehensibly.
But this issue is not the only one. There are thousands of issues on Drupal.org that have never been worked on or could not be processed. This means that we are building a wave that is unmanageable and just a problem for the Drupal project as a whole. Please help us keep the issue queue smaller and more manageable.
Please read again, "Making an issue report" and see if you can improve the issue. Test the problem with the current Core and modules. Maybe the problem doesn't exist anymore, is a duplicate or has even been solved within this issue but never closed.
Help can also be found for it on IRC and in the user groups.
In order to remove this issue, I have set this issue to "fixed"
If there is new information, please re-open the issue.