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
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.
--
Franck Horlaville
Senior IT Consultant
TAM Software
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.