first:
I migrate a basic site form d6 to d7 (no contrib modules)
problem:
the toolbar it's empty after enabling
things i have tried
i noticed that the toolbar takes the links from the mangement menu (no config is possible)
i looked into a vanila D7 and i see that management menu thera have a "admin" item with the link under that. in my site with problems i have all the items hanging from the root of the management menu.
i don't how this parent item got deleted
i tried to rebuild the mangement menu to its default state but the devel module only have the option tho rebuild individual items.
i cleaned the cache_menu table.
i created a menu item with the 'admin' path and put some link in there.
nothing.
i think that the source of the toolbar sould be configurable like the source of the primary/secondary links in a theme
thanks
Comments
Solved
i created the administration item in the database and now it's fine
Tam's suggestion worked for me
Excellent Tam's suggestion worked for me (upgraded from D6 to D7 and lost admin menu in the toolbar).
rgds Dave
Where in the database?
I am having this same problem. Where in the database did you create the "administration item"?
more detailed explanation
What i did was looking at a fresh D7 instalation and look for the row that was missing in my updated D6->D7, the one that is parent for the admin items, and add it manually
Are you speaking of the
Are you speaking of the menu_links table?
Rodrigo's response (via email)
Here is Rodrigo's response in an email to me: "yes, sorry I can't be more specific, I guess that I should documented it :)"
I added a row to the menu_links table in the Drupal 7 site backend database as follows:
Field Value
______ __________
menu_name management
mlid 1
plid 0
link_path admin
router_path admin
link_title Administration
options [BLOB - 6 B]
module system
hidden 0
external 0
has_children 1
expanded 0
weight 9
depth 1
customized 0
p1 1
p2 0
p3 0
p4 0
p5 0
p6 0
p7 0
p8 0
p9 0
updated 0
Still the toolbar still shows at the top of the page with no options other than a "home" icon on the far left, and a logout button on the right. My immediate solution has been to disable the Toolbar module and then install and enable the Administration menu module - which is similar to the Toolbar.
I have yet to figure out how to rebuild the Toolbar, so if anyone has any ideas, I would love to hear them.
I think that the best
I think that the best solution should be that the toolbar module had a config option to set the parent menu that have the admin links. now its very confusing when you see the toolbar empty
I had to redo this in another
I had to redo this in another D6->D7 migration and now I documented it. run this query
INSERT INTO `menu_links` (
`menu_name` ,
`mlid` ,
`plid` ,
`link_path` ,
`router_path` ,
`link_title` ,
`options`,
`module` ,
`hidden` ,
`external` ,
`has_children` ,
`expanded` ,
`weight` ,
`depth` ,
`customized` ,
`p1` ,
`p2` ,
`p3` ,
`p4` ,
`p5` ,
`p6` ,
`p7` ,
`p8` ,
`p9` ,
`updated`
)
VALUES (
'management', '1', '0', 'admin', 'admin', 'Administration', 0x613a303a7b7d, 'system', '0', '0', '1', '0', '9', '0', '0', '1', '0', '0', '0', '0', '0', '0', '0', '0', '0'
);
and then you have the administration menu item into the managemet menu and the childs will be shown in the toolbar
Solved !
Didn't work for me.
What worked for me to have admin menus appear in the toolbar after upgrading from 6 to 7 was following this post:
http://drupal.org/node/865702#comment-4015758
i.e.:
DELETE FROM menu_links WHERE module = 'system';
Then you need to visit /admin/config/development/performance and clear the cache.
TAM Software's solution
TAM Software's solution worked for me.
Many thanks.
Solved!
Thanks, TAM. I ran your query in phpmyadmin (after I exported my database, just to be safe) and it worked perfectly!
Yes, it is!
TAM Software's solution worked for me, too. Thanks.
Works for me too. Thanks
Works for me too. Thanks
Worked on 3rd try
Worked after I did the following:
Removing the database record (per Tam's software broke the site)
Tried executing the SQL from
Tried executing the SQL from rodrigoaguilera - didn't work. Then tries Tam's SQL and that did work. Not sure if I needed to do the first SQL query or not...
after my DB has been broken
after my DB has been broken by TAM's solution, i tried this first solution (Rodrigo's response supra), changing the 'mlid' value because '1' was already used :
INSERT INTO `menu_links` (
`menu_name` ,
`mlid` ,
`plid` ,
`link_path` ,
`router_path` ,
`link_title` ,
`options`,
`module` ,
`hidden` ,
`external` ,
`has_children` ,
`expanded` ,
`weight` ,
`depth` ,
`customized` ,
`p1` ,
`p2` ,
`p3` ,
`p4` ,
`p5` ,
`p6` ,
`p7` ,
`p8` ,
`p9` ,
`updated`
)
VALUES (
'management', '1', '0', 'admin', 'admin', 'Administration', 0x613a303a7b7d, 'system', '0', '0', '1', '0', '9', '0', '0', '1',
'0', '0', '0', '0', '0', '0', '0', '0', '0'
);
=> nothing occurred ...
but i precised it because i didn't remove it, and may be it makes the following solution work.
(!? if you can tell me ... welcome, because i don't want to test removing it ! ;-D )
then i went on mysite.com/admin/structure/menu/manage/management
and i moved every item, appearance, people, modules and so on, as children of "administration"
i registered ... it's OK !!!
(as you understand reading me, i'm not english speaking native, and i also translated my menu at this level [i'm using i18n])
i'm not sure it's clear nor complete, but you'll excuse me because i'm a little fed up with this upgrade :(
CC
Administer in the wrong place
The Administer menu entry was in the Navigation menu. I edited it to move it into Management and then made all of the entries in the Management menu hang off it.
That fixed the problem.
D6 to D7 upgrade - administrative toolbar empty
I too got this to work after D6 to D7 upgrade by locating the 'Administration' menu. Problem solved.
I posted a comment and what I did to resolve here...
http://drupal.org/node/865702#comment-7204914