Received an invalid response from the server
skizzo - August 2, 2009 - 14:41
| Project: | Hierarchical Select |
| Version: | 6.x-3.x-dev |
| Component: | Code - Taxonomy |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Wim Leers |
| Status: | postponed (maintainer needs more info) |
Description
I am reporting this as a new issue as I have no ctools and I can reproduce the problem consistently with both Firefox and Opera. I defined a new content type: 1 regular vocabulary, 1 HS vocabulary, 3 unrelated CCK fields, everything marked as "required". When adding a node the HS selection seems to work fine, however if I first attempt to preview or save the form without filling any field (just for the sake of testing) then subsequent HS selection attempts will result in Received an invalid response from the server. Please change status as required. Thank you.
Message: uasort() [<a href='function.uasort'>function.uasort</a>]: The argument should be an array in /var/www/drupal/includes/common.inc on line 2843
#1
Can you reproduce this on a vanilla Drupal installation *without* the CCK fields? I.e. just Drupal core with Taxonomy enabled for the "Page" content type (or any other built-in content type)?
#2
I managed to reproduce it right away on a no-CCK content type (stock Page with assigned HS vocabulary), however it is not core Drupal, as I have a bunch of contributed modules with many dependencies. In few weeks I will install a core Drupal on localhost and try again. The problem is a minor nuisance, as it shows up only after trying to save an empty form, and reloading the page will clear it up.
#3
It's 99% likely that it's a contrib module that causes this. I'm closing this issue if you're only retrying this in a few weeks. Just reopen it when you've tried to reproduce it.
#4
Hi Wim,
i have the same bug on a fresh Drupal installation after validation fails. My HS-version is from http://drupal.org/node/342992#comment-1880396
#5
I have the same problem and not using ctools as it was mentioned in some other thread.
I justy tried it on Vanilla d6.13 installation and latest dev of HS.
- Taxonomy has two levels. Saving only deepest, choosing only deepest. Showing node numbers and rest is disabled, also its Required.
To way to replicate, build some taxonomy with 2 levels, make it HS, choose options as above, when creating node, dont choose anything, just go to preview and then try selecting HS, doesnt work. think this is rather big problem for module.
#6
No response on this? I would say this is rather critical as with this bug HS is not so useable and altouth its DEV i guess many use it on live sites as i plan to do soon, as soon as i "solve" this and some other bugs. any chance on getting and pointing on some older DEV version of HS without this bug? I searched for other version but in there is only latest dev version, if someone has relase before this and its working please post/send it.
#7
Same here.
Create a vocabulary. Add 2 hierarchical terms: 1st level term, 2nd level term. Make the vocabulary mandatory for a content type.
Enable HS on the vocabulary, leave all the settings at default.
Try to preview or submit the node without selecting a term from the mandatory vocab. The validator outputs an error message (however, the HS taxonomy dropdown is not marked with red) and sends back the node edit form for correction.
Now try to select the 1st level term in the HS widget, you should get this Javascript error: Received an invalid response from the server.
On the Firebug Response console:
http://domain.com/hierarchical_select_json 500 Internal Server Error jquery.js?p (line 13)#8
Very odd, will try to reproduce. Can't tell when, because DrupalCon Paris is coming. Will work on this on the train probably.
#9
Same problem. Refreshing the page, than get this:
warning: uasort() [function.uasort]: The argument should be an array in /home/thamas/public_html/foldername/includes/common.inc on line 2843.
The HS is in a Content Profile node. There is no problem when logedd in user edit the node. Anonymous user (who want to register) can't use HS.
#10
Hey Wim, any news on this? Seems very problematic, if u dont have time let me know and maybe give us some older dev version that doesnt have this so we could use it in meantime?
thanx
#11
Hi deepm,
Yes, have same problem, but luckily had a backup of HS that works .. a previous version before 10 Sept.
find attached :)
#12
Found it, tried it, has the same problem as new version. Are u sure u posted working ver.? I did try uninstalling module but there is no unistall option, so i guess i only need to put new files (or old ones) but as i said the problem is the same so guessing problem is going from back then?
#13
This one is working so use it, its from 2009-04-07 but has no problem like mentioned here.
p.s.
why arent RAR's allowed?
#14
Well, if this was a problem, then it no longer is. I just did a fresh install of Drupal 6 and HEAD of Hierarchical Select. Works just fine.
Please update :)
#15
Works great now in my test site!
Thanks Wim.
JP
#16
I confirm it also, working fine now :-)
#17
working fine here too (Firefox and Opera)
#18
Sorry. Getting the same error on the Oct 3, Dev release.. When I click drop down to get to 2nd tier and select, I get Received and invalid response from server. I get this in ie and firefox.
#19
Installed the Oct 3 Dev release on a copy of my operational 6.13 drupal site:
now I receive the 'invalid response from server' message directly (before previewing and/or saving a uncomplete page). The whole hierarchical select menu stopped working!
Anyone else experiencing this problem as well?
#20
I get this error too. I don't know if its the same thing, but I can go levels deep, select etc a-ok, but as soon as I create a new item it comes back with this error and then everytime I select something it does the same. The only way to carry on is to save and come back. The item I tried to create is actually created.
fyi, this isnt vanilla and I am not in position to quickly install and test, but wanted to inform you just incase it was useful. (running latest dev + 6.14)
P.
#21
I have D6.13 and I have the same problem too: "Received an invalid response from the server" when i user hs to select a deeper level.
What in hell is the matter?!
i'm a little desperate.
#22
same here
#23
need fix.
#24
You are not alone ;-) sometimes got this, sometimes not, but got this everytime, when I enable user-register.tpl.php and
<?phpprint drupal_render($form['taxonomy']);
?>
#25
same problem, updated to the 6.x-3.x-dev on 3rd Nov. 2009.
#26
Can you reproduce this on a vanilla Drupal site? If you cannot, keep on adding modules that you're using on your actual site until the problem is reproduced.
When you're able to reproduce this (on a vanilla Drupal site with the minimum number of modules to reproduce it), then please make a screencast of:
That makes it easier for me to reproduce the problem. Thanks!
P.S.: don't have any screencast software yet? On Windows and Mac OS X, you can use the free Jing.
#27
I'd try it.
Now there is an other error, and I sure, the origin is the same:
Type page not found
Date kedd, november 3, 2009 - 21:22
User Pál úr
URL http://mydomain.net/hu/hierarchical_select_json
URI http://mydomain.net/node/add/favor
Message hu/hierarchical_select_json
Level figyelmeztetés
Host 195.56.237.179
The enabled hungarian language makes something wrong....
#28
Same problem, but with some differents.
* Drupal 6.13-6.14
* Enabled core modules: Database logging, Menu, Taxonomy
* Enabled contrib modules: HS, HS Taxonomy
Anonymous can create nodes.
When nodes created by registered user its OK.
But when it created by Anonimus, on checking any category in the HS field, get "invalid response from the server".
Same problem when enabled my module, that adding required HS field in the user register form. Users can't register...
If HS field is not required, and user leave it clear, user register normally and can edit this field when login.
This problem is on some computers (not on all) (no firewalls and anti-viruses).
Interesting, that if we get error on the computer, this error will be in all browsers. In FireBug on net folder we can see that there no POST data sending on server, and no response data from server.
But if we login from computers with that error, HS works correctly. This error only for Anonymous:)
#29
I did some more tests and found that it wasn't because of the permissions but from where I have clicked to edit the Content.
If I click to edit the content from our own created link I get this in the url: ?q=node/800/edit&destination=home
But if I click to edit the content from the adminstration menu I get this in the url: ?q=node/800/edit
And if I delete the "&destination=home" in the url it works.
Does this help Wim, to reproduce the scenario?