Magento showing top menu twice

magento

Solution

this problem manifested itself on my site after upgrade from 1.6 to 1.7.0.2.

1.6 used top.phtml to render the menus. I had customized top.phtml and included changes in my custom theme via mytheme/layout/catalog.xml with

        <reference name="top.menu">
        <block type="catalog/navigation" name="catalog.topnav" template="catalog/navigation/top.phtml"/>
        </reference>

1.7.0.2 seems to now use a module topmenu.phtml to render the menu.

So I removed my customization by removing the call in catalog.xml and added my customizations back into topmenu.phtml.

No more double menus!

Problem

Magento is showing the top (categories) menu twice after upgrade, see screenshot. It seems to me that the `top.phtml` is being executed twice by the line `<?php echo $this->getChildHtml('topMenu') ?>` in the file `header.phtml`. I have tried switching to the default code ( ie from the base/default theme) for each of these files but I get the same result. I have also checked the backend admin and when I pick a category and select 'NO' from `Include in Navigation Menu` the category disappears from BOTH iterations of the menu. Can anyone suggest a possible solution or course of action. Magento Community Edition 1.7.0.0 EDIT: I have discovered that setting system>config>design>themes>layout to the original ( downloaded ) theme as opposed to my own makes the problem go away, however I have layout mods I need to keep so I still need to isolate the problem

Original source