some activemenus don't expand upon hitting plus sign
kvarnelis - July 8, 2007 - 22:15
| Project: | Javascript Tools |
| Version: | 5.x-1.1 |
| Component: | Activemenus |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Description
i'm not sure what's going on here.
take a look at http://netlab.audc.org
why don't the menus expand when you hit the plus sign (trying this in mac firefox 2.0.0.4)?
once i've expanded the menus by navigating into the hierarchy (say be clicking teaching), then i can activate the menus, but by default they are not active.
if i look at these menus in the menus admin, they are set to "expanded" -> no. This is because, using another scheme, they were once expanded. other menus that are available only to the admin have no problem expanding and they are not set to expanded - no (just to nothing). i am wondering if that isn't the issue? but i can't clear the "expanded" - no either.

#1
Have a look here, i have the same thing:
http://drupal.org/node/155240
Regards, Clivesj
#2
close, but not quite. i don't receive an error, the menus just don't work ... and perversely the menus available to logged in users DO work (these menus still don't, but the create content, etc. does).
#3
i've replaced the module with head. no difference, but alas, no luck.
#4
This really is a bug, and a critical one, for this module's component.
In short, also on my site the + signs fail to expand menus on mouseclick (both in FF and in IE). See the menu for http://www.uia.org/
Please help.
#5
I recently switched from PHP5 to PHP4, and all of a sudden activemenu's pluses and minuses are working again. When I switch back tot PHP5 activemenu fails again.
#6
@vacilando
I had a look at http://www.uia.be. In Firefox, some menus work (e.g., Services and Services > Yearbook) but others don't (e.g., Project and Services > Calendar).
The problem seems to be with the setup of the menus and appears even when Javascript is disabled. The broken menu items appear as parent items, but have no children. E.g., Project has the bullet that indicates it is a parent item, but when clicked it doesn't show any children. Activemenus fails because it looks for children but there are none. I don't think it's possible to fix this issue with Activemenus. It looks like a core Drupal bug.
vacilando, can you investigate and try to determine why these menu items are broken?
@clivesj
Thanks for the note. Can you check if the problem with PHP 5 is what I've described above, i.e., that under PHP 5 menus with no available children appear as if they were parents?
#7
@nedjo - I'd love to help but I am not sure where and what to look for. JavaScript is not really my cup of tea.
FYI, the projects menu item contains just one submenu, which is called "Online databases" and which links to http://www.uia.be/project/oldb ( well, in fact just to the path "project/oldb" ).
I cannot understand why this one does not open while the others do.
This is a grave problem. Hope you will be able to figure out the reasons just by looking at the page's code (use Firebug or what).
Keep me/us informed. Thanks.
#8
As far as I can tell, this is not a Javascript issue and is not an bug in Activemenus.
Take another look at your site. Turn off Javascript in your browser (or turn off the Activemenus module). Click on "Services". Note that on the page that loads, "Services" is expanded in the menu block. Now click on "Projects". Note that projects does not expand. This is the bug. Apparently, it has nothing to do with Activemenus.
#9
This sounds like the same bug I've got? (looks like vacilando gave up on activemenu, kvarnelis got it working?)
Here's the behavior I'm getting:
Effective behavior: only the active menu item can be collapsed and expanded with the activemenu bullet.
Seems to have something to do with my theme, because activemenu works fine when I look at the site through Garland. However, have done side-by-side comparison of source files produced by two themes and can't find any relevant differences - both include same scripts and css files.
Unfortunately my dev site is local - did anyone ever solve this? Is anyone willing to give a look if I temporarily enable it on my staging site?
Thanks for any help - this looks like exactly what I need to speed up navigation times, really hoping I can make use of it.
#10
Have a look at
http://drupal.org/node/155240
In my case the problem was due to an incorrect menustructure:
I had a couple of Views having incorrect parent-child settings.
Once that was corrected activemenu worked OK again.
I must also say I'm always using the last dev version of JStools.
So I would say: have a carefull look at your menu/views structure (if you have views) and try the dev or head version.
#11
thanks clivesj.
I don't get any errors and this is a very repeatable problem - it happens on every menu item. I've checked my menu/views structure multiple times - but it's really not very complex, just a straight-forward hierarchy of menu items created with the menu module.
I'll give the head version of jstools a go - thanks for your advice.
#12
Here is a screenshot of the admin menu, so nothing wrong with the menu here. But upon opening the Administer branch of the menu, clearly Content Management, Site Building, etc., are "stuck" and cannot be open.
When I downgrade to v.5.x-0.6, everything works as it should, however.
Thanks for your work on this great module,
Victor
#13
I had this problem also. In my case, I also had the blank screen on module install confirmation page. So that led me to check my template.php -file and see if I had any empty rows at the end (see http://drupal.org/coding-standards --> PHP Code tags). Removed the PHP end tag and voilà!! Everything's back to normal...
So check your files (especially template.php) and see if you have unwanted empty rows at the end of the files. Best practice is to remove the last end tag.
#14
Nice idea - seemed promising - thanks... I checked all my modules and code and removed a couple of trailing ?>'s but didn't change anything for me.
Hmmmm. Only happens with my custom theme, works fine with Garland, and the activeMenus work once the menu has been opened once, just not when they are closed (which is really when you want them - aggghhh!)
#15
Issue http://drupal.org/node/195111 included a fix for issues with Activemenus not expending when jQuery update is present.
#16
Now fixed I believe.
#17
I am experienceing this problem after a migration from linux/apache server to windows/iis. The migration went amaizingly well, with the exception of Activemenu. I don't get an error when I click the plus sign, it just won't open. Unless I click on the menu item then I can open and close just the one I have clicked.
I've been through this post and
I love this module and really want it to work. Any ideas?
#18
Found a solution here for all IIS users:
http://drupal.org/node/221867
Fixed it for me.
#19
Automatically closed -- issue fixed for two weeks with no activity.
#20
I noticed that devel module can clash with activemenus - if you have the 'Display page timer' or 'Display memory usage' options on, it will tack info onto the end of the AJAX response for the menus, which keeps them from expanding, so it looks like the [+]s aren't working. This shows as a "missing ) in parenthetical" error in firebug or firefox error console.
#21
RSTaylor, good on you - this finally seems like a way towards solution of this long-term problem!
I had a similar problem, see here. The solution was to use
$GLOBALS['devel_shutdown'] = FALSE;wherever the extra Devel info was not desirable.I guess the functions that answer the AJAX calls should use this.
Hope the developer can have a look at this. Thanks!
#22
I'm re-opening this because the problem still exists in latest version and there is a potential way forward here - I'll try disabling devel and get back...
#23
Devel was the cause for me too... All smooth now..
#24
Disabling Devel didn't help for me ... sigh...
This only happens with my custom theme - works fine for Garland;
only for collapsed menus - the current, open menu can be collapsed and un-collapsed;
and the link on the menu bullet works for all collapsed menus - firebug shows jquery being called, from what I can tell correctly... but the menu does not load / un-collapse
Next step - learn how to debug a jquery call - yikes!