# Bug OP-3372 - Duplicated childs in main menu

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-3372

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | High |
| Module |  |
| Target versions | 6.1.5 |
| Observed in versions |  |
| Sprint | 6.1.5 |
| Backlog bucket |  |
| Bug found in version (deprecated) |  |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers |  |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

Hello Dev Team,

today i’ve broken a projekt. This means, every call to this project results in internal errors.

This error seems to appear because i’ve made a duplicate wiki menu entry in the sidebar, while i wanted to repair a link to a menu entry.

In an older Version of Project a wiki entry was created with an ‘&’ in it. After an update you changed the way of wiki linking.  
So after this there was a menu item which links to an non existing wiki page. So i wanted to create a new menu entry of this. After that the internal error appeard.

It was also not possible to remove the already existing menu entry…

How can i repair this? Is it possible to remove this menu entrys?

Thanks for help in advance\!

OpenProject 6.0.4  
FATAL Error from internal Log:

    F, [2017-01-20T09:29:29.143308 #2149] FATAL -- :
    ActionView::Template::Error (Child already added):
        62:         </h2>
        63:       </div>
        64:     </noscript>
        65:     <% main_menu = render_main_menu(@project) %>
        66:     <% side_displayed = content_for?(:sidebar) || content_for?(:main_menu) || !main_menu.blank? %>
        67:     <% initial_classes = initial_menu_classes(side_displayed, show_decoration) %>
        68:     <div id="wrapper" style="<%= initial_menu_styles %>" class="<%= initial_classes %>"
      lib/redmine/menu_manager/tree_node.rb:56:in `add_at'
      lib/redmine/menu_manager/mapper.rb:81:in `push'
      lib/redmine/menu_manager/menu_helper.rb:54:in `block (2 levels) in build_wiki_menus'
      lib/redmine/menu_manager.rb:63:in `call'
      lib/redmine/menu_manager.rb:63:in `block in items'
      lib/redmine/menu_manager.rb:62:in `each'
      lib/redmine/menu_manager.rb:62:in `items'
      lib/redmine/menu_manager/menu_helper.rb:230:in `menu_items_for'
      lib/redmine/menu_manager/menu_helper.rb:105:in `render_menu'
      lib/redmine/menu_manager/menu_helper.rb:45:in `render_main_menu'
      app/views/layouts/base.html.erb:65:in `_app_views_layouts_base_html_erb___2842231802621859763_70026453900200'
      app/middleware/reset_current_user.rb:47:in `call'
      app/middleware/params_parser_with_exclusion.rb:40:in `call'
