I have followed the installation procedure and created a mini-panel. All settings for menu_minipanel are default.
In Firebug I see this:
Drupal.settings.menuMinipanels is undefined
It relates to this line in menu_minipanels.js:
var settings = Drupal.settings.menuMinipanels.panels[matches[1]];
What have I missed?
BTW: thanks for a fantastic idea, this seems to be a very powerful combination and a great, flexible way to create mega menus!
| Comment | File | Size | Author |
|---|---|---|---|
| #10 | mm-1.2-JS-error.png | 35.76 KB | achton |
Comments
Comment #1
achtonI see the problem now. The module currently only supports megamenus attached to the core Primary or Secondary Links menus.
This is apparent in
menu_minipanels_init()in menu_minipanels.module:Ideally, the settings page would allow you to select which menus to enable for the module. If no one beats me to it, I will probably submit a patch that does this. Until then, the configuration guide should probably be updated with this info.
Setting this to 'needs work' since the problem is identified.
Comment #2
possum4all commentedsubscribing
Comment #3
willieseabrook commentedHi @achton
Actually, unless it slipped out from the initial release somehow, menu minpanels does actually support any menu (see hook_theme_registry_alter)
Primary and secondary links are processed separately because they are a special case in which the regular theme registry alter method doesn't work.
Do you have any numbers in your minipanel names. I.E: my_panel_1
There is a known bug with a similar manifestation.
Comment #4
ManchesterNewsGuild commentedI have just implemented the menu_minipanels module and am running into this very problem, which is generated in the menu_minipanel.js at line 32. Another error is generated first, which is "Invalid argument" at jquery-qtip-1.0.0-rc3.min.js?c, line 15 character 31447. Despite the errors the minipanel renders in Firefox, Safari, etc., but in IE 8 (surprise!) nothing happens...Is there a fix for it? I've checked everywhere and can't find one. I've almost no experience in js, and ony a little (learning by sight) in php. Also, there is no number in my minipanel name. Any help would be most appreciated. Thanks.
Comment #5
marranca commentedSubscribing, also (same issues, and thus far have not identified the cause).
Comment #6
marranca commentedUpdate: if you are encountering this JavaScript error, check the other js and jQuery libraries, as well as associated functions, that are being used by your theme.
I have determined the issues in my case were caused by a collision between the Menu Minipanels js file and a jQuery Lavalamp effect I was using in my theme. I commented out the code associated with the Lavalamp effect, and Menu Minipanels instantly worked as expected. Thought I would share immediately, in the event it helps any of you!
Comment #7
sammo commentedHi I think I have patched this see:
http://drupal.org/node/948784#comment-3823734
Comment #8
willieseabrook commentedTry the latest dev version with the following environment:
drupal-6.20
ctools-6.x-1.8
panels-6.x-3.8
If you still experience the issue, please reopen.
Comment #9
willieseabrook commentedNote you need to save and edit each menu item with a menu minpanel on it to get latest version to work. It's a manual upgrade process.
Comment #10
achtonI still experience this issue with 1.2 in the environment mentioned above. I did edit and save each of the two menu items manually. See the attached screenshot from Chrome which points at the specific line in menu_minipanels.js where the code breaks.
Applying my own fix from #1 to the new version of menu_minipanels.module works for me.
To be clear: this pertains only to situations where you wish to apply menu_minipanels to a custom menu. The menu name contains only letters and underscore.
Comment #11
achtonComment #12
Michsk commentedStill having this issue, panels 3.9 and this modules latest dev
Comment #13
Michsk commentedfor me this had to do with: http://drupal.org/node/1257806, after implementing the hardcoded fix the error is gone and it also works with custom menu's
Comment #14
damienmckennaGoing to close this as a dupe of #1199790: Support all menus, I'll have a fix for this soon.
Comment #15
dewolfe001 commentedI just tried the dev version of this module-- http://drupal.org/node/1251450 it seems to have this issue resolved. At least that what I'm finding.
All the best,
Mike