Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I have created a node called move. A person has to select a province and a city using Hierarchical select.
To reproduce the issue:
- I have put the node creation form inside a panel and when I try to create a new node I get the following error message:
Received an invalid response from the server
. - If I put the node creation form in a Quick Tab the drop down select completely disappears. (which is rather another issue with QuickTab? OT, please elaborate.)
(edited by #diqidoq for better readability)
Comments
Comment #1
GoldTidying up the issue queue. The 6.x version is no longer supported. Only reopen this if it also applies to the 7.x.
Comment #2
dqdBug is reproducable in 7.x like described in the OT. Disabling panels for this edit view brings back hierarchical select functionality.
2 possible ways to discuss before writing patches:
Comment #3
stefan.r CreditAttribution: stefan.r commentedI would rather see the underlying issue fixed than add a checkbox
Comment #4
dqdThanks for your fast reply, @stefan.r
Agreed. Just wanted to make sure, that no time is wasted in walking down dead roads.
Comment #5
dqdWell, it seems, there will be no guidance in this issue from any panels involded folks anytime soon yet. Tackling it down allone as somebody not involved in panels code much, would take much time and would be very inefficient while there are some who may know where to start. FIrst I would like to see more people chimging in being interested in a fix and some hints where to look at before I would start to get my fingers dirty on it.
To reproduce this issue:
One of the very first things to make clear first would be the question if this is rather a HS or a Panels issue from the bottom.
Interesting is the fact that it does not work in node edit panel pages but it does in node view panels pages with editable fields and hierachical select :-P
Comment #6
dqdComment #7
dqdComment #8
GoldThanks for the detailed instructions diqidoq. They were sufficient to replicate the issue.
Discovery: I set the variant up so that it only triggered on Articles. I also added the HS widget to the Basic Page so I could test with and without panels in the same instance.
Initial discovery is that form_id is not being sent in the POST from the form on the panels based form. This prevents ajax_get_form() from finding the form at all and it bails early with a drupal_exit() that returns a zero length 200 OK response. The zero length is what HS reacts to in this case.
I will continue to dig into this and see if I can work out why the form_id isn't part of the form POST.
Comment #9
GoldHmm... This isn't an issue with HS. It is just floated to the surface due to it.
All of the standard hidden form fields are absent in the form in a panel variant. The
changed
,form_build_id
,form_token
andform_id
are all absent regardless of the use of the HS form widget.I'm seeing 2 ways around this.
Thoughts?
Comment #10
ShaneOnABike CreditAttribution: ShaneOnABike at Bees on a Bike commentedFor what it's worth this is also an issue with Views Megarows when you are editing a node. It returns back the same error message and I would imagine that it is associated to the lack of id not being sent.