Community & Support

$secondary_links not getting a value after upgrade

HELP!!

I have a site that has been upgraded from D4.6 to D6.12. Every theme I try fails to show secondary menus (in IE and Firefox). Global and specific theme configurations have the secondary menu checked. The items in the menu are links to nodes and one is a link to a view. Views are accessible to anonymous.

Anyone have any ideas?
thanks
c

Update - If I replace the secondary_link variable with primary_link in the page.tpl.php file, the menu appears (in the aboutpeople theme at least). So, for some reason, a value for secondary_link is not being assigned. Why?

Comments

menu_secondary_links_source was the problem

thanks to Heine for pointing me in the right direction on IRC.

This is the line of code that held the secret. I found it at http://api.drupal.org/api/function/menu_secondary_links/6

if (variable_get('menu_secondary_links_source', 'secondary-links') == variable_get('menu_primary_links_source', 'primary-links')) {

The sites that were once D4 sites have the variable menu_secondary_links_source (as well as menu_primary_links_source) in the variable table. Sites that I created after the upgrade to D6 don't have this variable. One of the three x-d4 sites was actually working and showed that the value for this variable should be s:15:"secondary-links"; and not what the other two sites showed - s:0:"";

I wrote up the process I used to get to this conclusion is you are interested http://idcminnovations.com/article/d468-d610-secondary-menu-not-working

Hope this helps if you get the same issue.

no submenu

thanks for the help but I have the same problem as idcm and while I followed your steps, the problem persists: I can see a submenu if I replace "secondary_link" by "primary_link", but then I only replicate the first level primary links which appear in the main menu. I verified the database and there is no variable "menu_secondary_links_source". I am at a loss here. Thanks for your help.

Patrick

maybe that is the problem?

maybe that is the problem? Can you try adding menu_secondary_links_source? Seriously, I am not saying this would work but it is what I would try.