Closed (cannot reproduce)
Project:
Hierarchical Select
Version:
6.x-3.x-dev
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 Mar 2009 at 23:30 UTC
Updated:
8 Sep 2010 at 23:10 UTC
Am getting the above message, even though JS is enabled. The Update button and message appear briefly, then both disappear. All the Javascript type interactions appear to work OK.
Am using this with simple Taxonomy. Works fine in IE 6 & 7.
Ideas?
Comments
Comment #1
skizzo commentedI am seeing the same error with FF 3.0.5 on Linux
with Content Taxonomy CCK field (I have applied
the patch http://drupal.org/node/342992).
I tried to disable Javascript optimization, to no avail.
I see the same problem also with Opera.
[edit]
I am seeing the same problem with core taxonomy too (no CCK, hierarchical vocabulary).
I installed Firebug. When loading the submission form I get the "no Javascript" message
Firebug console reads:
body.val() is undefined teaser.js?f (line 74)
var text = body.val().split('
', 2);
Comment #2
wim leersThis is a bug in Drupal core. Patch: http://drupal.org/node/336517.
Comment #3
Liberation commentedI do not believe this to be a duplicate, as comment #1 is not the same problem as I originally reported . I do not get any error in the FF console. I would also like to restate that for me the Update button and message appear momentarily then disappear, whereas I suspect that in comment #1 they remain visible indefinitely.
Just for the record, I am using Drupal 6.9 and I looked at the patch to teaser.js. It was not applicable since Drupal 6.9 and 6.10 are revision 1.12 for that file. I did download the Drupal 7 teaser.js (revision 1.14), then applied the patch, but when loaded this broke with a Javascript console error of "this is not a function" at line 42 of drupal.js so I have reverted back to revision 1.12.
One other possibility: am I completely misunderstanding things in that the reported behaviour is actually the correct one, and this is what I should expect to see in FF? After all things seems to work OK in practice; however the visual effect is quite different in IE 6 and 7 where the button and message never appear at all.
Comment #4
wim leersLiberation: the reason is that the JS is loaded either to slowly (due to a slow server) or too late (JS aggregation may be at fault?).
You can manually apply the patch and it'll work just fine. If you got the "this is not a function" error, you definitely did something wrong.
And no, the message should never appear at all.
Could you make a screencast to clarify what it looks like for you?
Comment #5
Liberation commentedOK, the problem went away when I promoted the code to the live server, which is quite a bit faster than the PC I was testing on. So, the effect is probaly due to slow server as you mentioned. Thanks for the input (and this excellent module).
Comment #6
jibort commentedI solved this problem when I disabled "Page compression" from admin/settings/performance in Drupal 6.15
Comment #7
fblevins commentedI realize this thread has been closed for some time now, but I am experience exactly this problem with Hierarchical Select as the others, have applied the patch as directed and also disable page compression as suggested, all to no avail. I believe that I applied the patch correctly but am including the modified code here as well. I've not been able to find anything else as thorough as this thread, so it is disappointing that I can't seem to get this to work. It's a small issue, but will definitely undermine the user's opinion of the site if I can't get this fixed.
-----
$(include).parent().parent().before(button);
// Extract the teaser from the body, if set. Otherwise, stay in joined mode.
if (text !== undefined) {
text.split('
', 2);
if (text.length == 2) {
teaser[0].value = trim(text[0]);
body[0].value = trim(text[1]);
$(teaser).attr('disabled', '');
$('input', button).val(Drupal.t('Join summary')).toggle(join_teaser, split_teaser);
}
else {
$('input', button).val(Drupal.t('Split summary at cursor')).toggle(split_teaser, join_teaser);
$(checkbox).hide().children('input').attr('checked', true);
}
}
// Make sure that textarea.js has done its magic to ensure proper visibility state.
As a PS here, the error is consistent across all browsers I've tested: Firefox, Chrome, Opera and IE (actually IE4Linux), and is still present after installation of the patch.
Comment #8
wim leersCan you reproduce the problem on a vanilla Drupal installation? I.e. it's very likely that the problem is being caused by some other module's poorly written JS … Typically, this is the case.
Comment #9
fblevins commentedFunny you asked. I'm just about to put up a vanilla install on local host tonight, not only for the JS issue but that my comments and flag abuse options under my content have mysteriously disappeared within the past few days (but my 4-star widget is still there)! I just posted details on this disappearing options issue a minute ago. Do you have any ideas on what could cause this?
In any case I'll post back as soon as I get my vanilla install up and see if I still have the JS problem. Thanks much for your help.
Comment #10
wim leersClosing due to lack of response.