Project

General

Profile

Error: Child already added

Added by Bruno Prado almost 15 years ago

When I try to migrate or start Redmine (trunk version, in 01.05.2010), I get this error:


# RAILS_ENV=production rake db:migrate --trace
(in /webapps/redmine_trunk)
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
Child already added
/webapps/redmine_trunk/lib/redmine/menu_manager.rb:77:in `add'
/webapps/redmine_trunk/lib/redmine/menu_manager.rb:358:in `push'
/webapps/redmine_trunk/lib/redmine/plugin.rb:178:in `menu'
(...)

# ruby script/server webrick -e production
=> Booting WEBrick
=> Rails 2.3.5 application starting on http://0.0.0.0:3000
/webapps/redmine_trunk/lib/redmine/menu_manager.rb:77:in `add': Child already added (RuntimeError)
        from /webapps/redmine_trunk/lib/redmine/menu_manager.rb:358:in `push'
        from /webapps/redmine_trunk/lib/redmine/plugin.rb:178:in `menu'
(...)

Replies (5)

RE: Error: Child already added - Added by Bruno Prado almost 15 years ago

Complete error messages included.

RE: Error: Child already added - Added by John Fisher almost 15 years ago

me too.

In my case I am trying to upgrade from 0.8.5 to the latest from SVN. I am using
  • LOCAL GEMS ***

actionmailer (2.3.5, 2.3.4, 2.1.2)
actionpack (2.3.5, 2.3.4, 2.1.2)
activerecord (2.3.5, 2.3.4, 2.1.2)
activeresource (2.3.5, 2.3.4, 2.1.2)
activesupport (2.3.5, 2.3.4, 2.1.2)
fastthread (1.0.7)
mysql (2.8.1)
passenger (2.2.8, 2.2.5)
rack (1.1.0, 1.0.1)
radiant (0.8.1)
rails (2.3.5, 2.1.2)
rake (0.8.7)
RedCloth (4.2.2)
rubygems-update (1.3.5)

Running on Ubuntu.

thanks,
John

RE: Error: Child already added - Added by John Fisher almost 15 years ago

Bruno, I think it has something to do with the plugins. When I start to eliminate them, the error changes to something like this:

rake aborted!
uninitialized constant ActionController::AbstractRequest

where AbstractRequest can be several different methods.

John

RE: Error: Child already added - Added by John Fisher almost 15 years ago

Further...

When I try the stable 0.8 svn checkout it works just fine.

This solves the problem for me, for now.

John

RE: Error: Child already added - Added by japan shah over 14 years ago

I've fallen in the same issue, I resolved by manually edited the plugin
cause of this error is one or more your plugins are conflicted with each other - error is trying to say key is already added to the dict/hashtable

Here is how I resolved the issue,

- Scrumdashboard plugin
- Scrum PM Plugin
were conflicted so I resolved by editing the source code of Scrum PM Plugin.

menu.push :dashboard, { :controller => 'sprints', :action => 'show', :id => :show }, :caption => :label_dashboard, :after => :activity, :param => :project_id

CHANGED TO

menu.push :my_dashboard, { :controller => 'sprints', :action => 'show', :id => :show }, :caption => :label_dashboard, :after => :activity, :param => :project_id

    (1-5/5)