Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I setup a minimal drupal 6.2 test site with jstools and active menus and german locale. The collapsing and expanding of menus works as long as no AJAX loading is required. Here is an example POST-Request/Response from firebug for the menu admin/build invoked from admin.
Location with parameters:
http://drupaltest.localhost/activemenu/menu?path=admin/build
Request Headers:
Host: drupaltest.localhost
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; de; rv:1.8.1.14) Gecko/20080404 Iceweasel/2.0.0.14 (Debian-2.0.0.14-2)
Accept: application/json, text/javascript, */*
Accept-Language: de-de,de;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Content-Type: application/x-www-form-urlencoded
X-Requested-With: XMLHttpRequest
Referer: http://drupaltest.localhost/admin
Content-Length: 18
Cookie: has_js=1; SESS56bda2a98d15753f38695322713b4a85=5b5fa3eb2686c978d68450ed0418f679
Pragma: no-cache
Cache-Control: no-cache
Response Headers:
Date: Sun, 18 May 2008 16:13:54 GMT
Server: Apache/2.2.8 (Debian) PHP/5.2.5-3 with Suhosin-Patch mod_wsgi/2.0 Python/2.5.2
X-Powered-By: PHP/5.2.5-3
Expires: Sun, 19 Nov 1978 05:00:00 GMT
Last-Modified: Sun, 18 May 2008 16:13:54 GMT
Cache-Control: store, no-cache, must-revalidate, post-check=0, pre-check=0
Content-Length: 4828
Keep-Alive: timeout=15, max=97
Connection: Keep-Alive
Content-Type: text/html; charset=utf-8
Response Body:
{ "status": true, "content": "\x3cspan id=\"thmr_35\" class=\"thmr_call\"\x3e\n \x3cul class=\"menu\"\x3e\x3cspan id=\"thmr_2\" class=\"thmr_call\"\x3e\n \x3cli class=\"leaf first\"\x3e\x3cspan id=\"thmr_1\" class=\"thmr_call\"\x3e\n \x3ca href=\"/coder\"\x3eCode review\x3c/a\x3e\x3c/span\x3e\n\n\x3c/li\x3e\n\x3c/span\x3e\n\n\x3cspan id=\"thmr_4\" class=\"thmr_call\"\x3e\n \x3cli class=\"leaf\"\x3e\x3cspan id=\"thmr_3\" class=\"thmr_call\"\x3e\n \x3ca href=\"/user/1\"\x3eMein Konto\x3c/a\x3e\x3c/span\x3e\n\n\x3c/li\x3e\n\x3c/span\x3e\n\n\x3cspan id=\"thmr_6\" class=\"thmr_call\"\x3e\n \x3cli class=\"collapsed\"\x3e\x3cspan id=\"thmr_5\" class=\"thmr_call\"\x3e\n \x3ca href=\"/node/add\"\x3eInhalt erstellen\x3c/a\x3e\x3c/span\x3e\n\n\x3c/li\x3e\n\x3c/span\x3e\n\n\x3cspan id=\"thmr_32\" class=\"thmr_call\"\x3e\n \x3cli class=\"expanded active-trail\"\x3e\x3cspan id=\"thmr_7\" class=\"thmr_call\"\x3e\n \x3ca href=\"/admin\"\x3eVerwalten\x3c/a\x3e\x3c/span\x3e\n\n\x3cspan id=\"thmr_31\" class=\"thmr_call\"\x3e\n \x3cul class=\"menu\"\x3e\x3cspan id=\"thmr_9\" class=\"thmr_call\"\x3e\n \x3cli class=\"collapsed first\"\x3e\x3cspan id=\"thmr_8\" class=\"thmr_call\"\x3e\n \x3ca href=\"/admin/content\" title=\"Verwalten Sie Inhalte der Website.\"\x3eInhaltsverwaltung\x3c/a\x3e\x3c/span\x3e\n\n\x3c/li\x3e\n\x3c/span\x3e\n\n\x3cspan id=\"thmr_22\" class=\"thmr_call\"\x3e\n \x3cli class=\"expanded active-trail\"\x3e\x3cspan id=\"thmr_10\" class=\"thmr_call\"\x3e\n \x3ca href=\"/admin/build\" title=\"Einstellungen zum Look-and-Feel der Website.\"\x3eStrukturierung\x3c/a\x3e\x3c/span\x3e\n\n\x3cspan id=\"thmr_21\" class=\"thmr_call\"\x3e\n \x3cul class=\"menu\"\x3e\x3cspan id=\"thmr_12\" class=\"thmr_call\"\x3e\n \x3cli class=\"leaf first\"\x3e\x3cspan id=\"thmr_11\" class=\"thmr_call\"\x3e\n \x3ca href=\"/admin/build/block\" title=\"Die Einstellungen für den Inhalt der Seitenleiste und anderer Bereiche.\"\x3eBlöcke\x3c/a\x3e\x3c/span\x3e\n\n\x3c/li\x3e\n\x3c/span\x3e\n\n\x3cspan id=\"thmr_14\" class=\"thmr_call\"\x3e\n \x3cli class=\"collapsed\"\x3e\x3cspan id=\"thmr_13\" class=\"thmr_call\"\x3e\n \x3ca href=\"/admin/build/menu\" title=\"Die Organisation des Navigationsmenüs der Website, und der Haupt- und Sekundärlinks, sowie die Umbenennung und Reorganisation von Menüpunkten.\"\x3eMenüs\x3c/a\x3e\x3c/span\x3e\n\n\x3c/li\x3e\n\x3c/span\x3e\n\n\x3cspan id=\"thmr_16\" class=\"thmr_call\"\x3e\n \x3cli class=\"leaf\"\x3e\x3cspan id=\"thmr_15\" class=\"thmr_call\"\x3e\n \x3ca href=\"/admin/build/modules\" title=\"Aktivieren oder Deaktivieren von Zusatzmodulen für die Website.\"\x3eModule\x3c/a\x3e\x3c/span\x3e\n\n\x3c/li\x3e\n\x3c/span\x3e\n\n\x3cspan id=\"thmr_18\" class=\"thmr_call\"\x3e\n \x3cli class=\"leaf\"\x3e\x3cspan id=\"thmr_17\" class=\"thmr_call\"\x3e\n \x3ca href=\"/admin/build/themes\" title=\"Auswahl des Theme für die Website oder welche Themes Benutzer auswählen dürfen.\"\x3eThemes\x3c/a\x3e\x3c/span\x3e\n\n\x3c/li\x3e\n\x3c/span\x3e\n\n\x3cspan id=\"thmr_20\" class=\"thmr_call\"\x3e\n \x3cli class=\"leaf last\"\x3e\x3cspan id=\"thmr_19\" class=\"thmr_call\"\x3e\n \x3ca href=\"/admin/build/translate\" title=\"Translate the built in interface and optionally other text.\"\x3eTranslate interface\x3c/a\x3e\x3c/span\x3e\n\n\x3c/li\x3e\n\x3c/span\x3e\n\n\x3c/ul\x3e\x3c/span\x3e\n\n\x3c/li\x3e\n\x3c/span\x3e\n\n\x3cspan id=\"thmr_24\" class=\"thmr_call\"\x3e\n \x3cli class=\"collapsed\"\x3e\x3cspan id=\"thmr_23\" class=\"thmr_call\"\x3e\n \x3ca href=\"/admin/settings\" title=\"Grundlegende Website-Einstellungen verändern.\"\x3eEinstellungen\x3c/a\x3e\x3c/span\x3e\n\n\x3c/li\x3e\n\x3c/span\x3e\n\n\x3cspan id=\"thmr_26\" class=\"thmr_call\"\x3e\n \x3cli class=\"collapsed\"\x3e\x3cspan id=\"thmr_25\" class=\"thmr_call\"\x3e\n \x3ca href=\"/admin/user\" title=\"Benutzer, Gruppen und deren Zugangsrechte verwalten.\"\x3eBenutzerverwaltung\x3c/a\x3e\x3c/span\x3e\n\n\x3c/li\x3e\n\x3c/span\x3e\n\n\x3cspan id=\"thmr_28\" class=\"thmr_call\"\x3e\n \x3cli class=\"collapsed\"\x3e\x3cspan id=\"thmr_27\" class=\"thmr_call\"\x3e\n \x3ca href=\"/admin/reports\" title=\"View reports from system logs and other status information.\"\x3eReports\x3c/a\x3e\x3c/span\x3e\n\n\x3c/li\x3e\n\x3c/span\x3e\n\n\x3cspan id=\"thmr_30\" class=\"thmr_call\"\x3e\n \x3cli class=\"leaf last\"\x3e\x3cspan id=\"thmr_29\" class=\"thmr_call\"\x3e\n \x3ca href=\"/admin/help\"\x3eHilfe\x3c/a\x3e\x3c/span\x3e\n\n\x3c/li\x3e\n\x3c/span\x3e\n\n\x3c/ul\x3e\x3c/span\x3e\n\n\x3c/li\x3e\n\x3c/span\x3e\n\n\x3cspan id=\"thmr_34\" class=\"thmr_call\"\x3e\n \x3cli class=\"leaf last\"\x3e\x3cspan id=\"thmr_33\" class=\"thmr_call\"\x3e\n \x3ca href=\"/logout\"\x3eAbmelden\x3c/a\x3e\x3c/span\x3e\n\n\x3c/li\x3e\n\x3c/span\x3e\n\n\x3c/ul\x3e\x3c/span\x3e\n\n" }
It looks like the first level of menu items is returned instead of the path specific sub menu items.
Comments
Comment #1
jandd CreditAttribution: jandd commentedI just tested again using english language and it didn't work either.
Response body:
Comment #2
nedjoProbably a duplicate of http://drupal.org/node/254277.
Comment #3
jandd CreditAttribution: jandd commentedI disabled locale, content translation and potx modules (everything i18n related) and the bug still occurs. Doesn't seem to be a duplicate of http://drupal.org/node/254277 though.
Comment #4
nedjoReturning the full menu is by design. It's parsed on the client to extract the relevant part. (This is due to changes in the menu system in 6.x).
Can anyone reproduce this issue?
Comment #5
nedjoWhat theme are you using? If you switch to Garland does it work?
Comment #6
jandd CreditAttribution: jandd commentedSorry for the late response. I already use the Garland theme.
The site has the following modules installed:
Includes: Activemenu
Includes: Coder
Includes: Devel, Theme developer
Includes: Javascript tools
Includes: Translation template extractor
Comment #7
jandd CreditAttribution: jandd commentedThe problem seems to occur when the Theme Developer module is active. If I disable Theme Developer the menus work.
Comment #8
jandd CreditAttribution: jandd commentedComment #9
TUc CreditAttribution: TUc commentedSame here. When disabling theme developer, active menus work again...
Comment #10
jandd CreditAttribution: jandd commentedThe theme developer maintainer won't fix this issue (see http://drupal.org/node/278806) the only way to fix this issue is to make the JavaScript in Active menu aware of theme developer's changes to HTML. An example of the differences between "normal" HTML and theme developer changed HTML can be found in my comment http://drupal.org/node/278806#comment-918067.
Comment #11
nedjoThanks for the detail. I don't think this is something that can be easily or cleanly addressed. Theme developer is going to conflict with some UI elements. The answer is, I think, turn modules like active menu off when using theme developer.