Hi There

I installed 5.x-3.0-alpha2 and the admin menu was working perfectly. Then i tried to add the 'Create Content' menu item and it refused to put it in to the admin menu (and yes it was a child of Administer).

So i reset my Administer menu to go back to default settings etc, and the admin menu disappeared! I have reset every menu back to default settings and it is still not there. I have tried uninstalling, and re-installing the module to no effect at all. I am at a complete loss as to why it no longer shows.

Please help.

Many thanks.

CommentFileSizeAuthor
#2 753410_use_proper_menu_id.patch447 byteshanoii

Comments

W0lvEriNE’s picture

Priority: Normal » Critical
hanoii’s picture

Title: Admin Menu disappeared after i changed a menu setting » Admin Menu not being rendered if admin menu ID not 5 (default)
Version: 5.x-3.0-alpha2 » 5.x-3.x-dev
Component: Miscellaneous » Code
Category: support » bug
StatusFileSize
new447 bytes

@wolverine.. try out this patch, I also saw this on a few sites of my own and I took the time to fix it for one of them.

The problem I found is that the theme_admin_menu_tree($pid) function had a $pid = 5 hardcoded. $pid is the menu ID for admin is most drupal 5 installation, however, that might change. Not sure when or why, on my case I think it was because it's been dragged from previous drupal versions. On wolverine, maybe because of a menu edit change.

hanoii’s picture

Status: Active » Needs review
sun’s picture

Thanks for reporting, reviewing, and testing! Committed.

A new development snapshot will be available within the next 12 hours. This improvement will be available in the next official release.

sun’s picture

Status: Needs review » Fixed
hanoii’s picture

That was quick, I think it was the fastest committed patch I ever submitted (it was a one line patch after all)

but yay anyway!
glad to help.

Status: Fixed » Closed (fixed)

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