Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
effects is undefined
dhtmlMenu()()f8ad1e6c....jsmin.js (line 21)
t()()f8ad1e6c....jsmin.js (line 2)
e()f8ad1e6c....jsmin.js (line 2)
t()(Document EDITING_A_VIEW)f8ad1e6c....jsmin.js (line 2)
placeholder()()f8ad1e6c....jsmin.js (line 15)
e()f8ad1e6c....jsmin.js (line 2)
e()f8ad1e6c....jsmin.js (line 2)
e()f8ad1e6c....jsmin.js (line 2)
e()f8ad1e6c....jsmin.js (line 2)
[Break on this error] var effects=Drupal.settings.dhtmlMenu;$(...d')){Drupal.dhtmlMenu.toggleMenu(li);}}}
All JS stops working on the page. Get the error randomly, a page refresh usually takes care of it.
Comments
Comment #1
pixelpreview@gmail.com CreditAttribution: pixelpreview@gmail.com commentedyes same error on firebug
it's here with get cookie
I am working in a localhost server, it's perhaps the problem ?
Comment #2
pixelpreview@gmail.com CreditAttribution: pixelpreview@gmail.com commentedafter a little research, i think the problem is here
http://drupal.org/node/364801
for customising my principal menu, i use a phptemplate_menu_item override in my tempate.php to give an unique id to my menu.
it seems that the problem is there because on garland it's ok. The problem is only in my theme.
it's a great module but i don't understand why it breaks because my li receive an unique id ?
Comment #3
pixelpreview@gmail.com CreditAttribution: pixelpreview@gmail.com commentedresolved for me
my solution is not create an id for each li from a menu but add a class and it works.
Comment #4
cburschkamikeytown2: You appear to be using aggregated/minified JS code, which makes it tricky to see the problem. The error "effects is undefined" shouldn't occur on that line as effects is being defined by that command. Could you please try this with non-packed Javascript code to make the error clearer? :)
pixelpreview: On that line, the error makes more sense and may mean that Drupal.settings.dhtmlMenu never got set.
Could you please view the HTML code of any page of your site and look for something that looks like this in the header?
All these fields should be there, even if they're set to 0.
Comment #5
pixelpreview@gmail.com CreditAttribution: pixelpreview@gmail.com commentedyes I have this line :
jQuery.extend(Drupal.settings, { "basePath": "/lalati6/", "admin_menu": { "margin_top": 1 }, "dhtmlMenu": { "slide": "slide", "siblings": "siblings", "relativity": "relativity", "children": "children", "clone": "clone", "doubleclick": 0 }
it's ok for me now.
after changing id in class for my menu in my override function. I don't have errors in firebug after that change.
it works very nice.
thanks for your reply :-)
Comment #6
derjochenmeyer CreditAttribution: derjochenmeyer commentedConfirming this bug.
#4: I looked into that. It seems the error is only present with the Core Javascript Aggregation enabled. I disabled and deinstalled Javascript Aggregator to check if the JSMin minification was causing the error. It does not.
I dont know if this helps more
this error is located here
Comment #7
derjochenmeyer CreditAttribution: derjochenmeyer commentedComment #9
vuilI set the issue to Closed (outdated), not present update since 23 July 2009.