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.

CommentFileSizeAuthor
#12 Screenshot.png19.14 KBvictorkane

Comments

clivesj’s picture

Have a look here, i have the same thing:

http://drupal.org/node/155240

Regards, Clivesj

kvarnelis’s picture

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).

kvarnelis’s picture

i've replaced the module with head. no difference, but alas, no luck.

vacilando’s picture

Version: 5.x-0.6 » 5.x-0.8
Category: support » bug
Priority: Normal » Critical

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.

clivesj’s picture

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.

nedjo’s picture

@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?

vacilando’s picture

@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.

nedjo’s picture

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.

jfall’s picture

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:

  • a "collapsed" menu item cannot be opened by pressing the +,
  • until the menu link itself is pressed, which forces the menu to be "expanded",
  • now that menu item can be collapsed and expanded as usual, but still not any others

    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.

clivesj’s picture

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.

jfall’s picture

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.

victorkane’s picture

StatusFileSize
new19.14 KB

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

afox’s picture

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.

jfall’s picture

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!)

nedjo’s picture

Issue http://drupal.org/node/195111 included a fix for issues with Activemenus not expending when jQuery update is present.

nedjo’s picture

Status: Active » Fixed

Now fixed I believe.

bander2’s picture

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

  1. I downgraded to v.5.x-0.6, and updraded to the latest dev version.
  2. I checked template.php for trailing PHP tags
  3. I checked this post http://drupal.org/node/195111 and concluded that the patch therein is already applied to my current version of jtools
  4. I am using the Garland theme, but tried several other with the same problem

I love this module and really want it to work. Any ideas?

bander2’s picture

Found a solution here for all IIS users:

http://drupal.org/node/221867

Fixed it for me.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

rstaylor’s picture

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.

vacilando’s picture

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!

jfall’s picture

Version: 5.x-0.8 » 5.x-1.1
Priority: Critical » Normal
Status: Closed (fixed) » Active

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...

pavlos’s picture

Devel was the cause for me too... All smooth now..

jfall’s picture

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!

Steve Dondley’s picture

devel was the culprit for me. after disabling, things worked.