Redmine插件time_trackers_controller出错

时间:2011-04-19 12:37:33

标签: ruby-on-rails ruby plugins redmine

我正在使用redmine和插件redmine_time_tracker。但是,我收到以下错误消息:

ActiveRecord::StatementInvalid (Mysql::Error: Column count doesn't match value count at row 1: INSERT INTO `time_trackers` (`issue_id`, `user_id`, `time_spent`, `paused`, `started_on`) VALUES(8, 3, 0,0, 0, '2011-04-19 08:35:19')):
  vendor/plugins/redmine_time_tracker/app/controllers/time_trackers_controller.rb:13:in `start'
  /usr/local/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
  /usr/local/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
  /usr/local/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
  /usr/local/lib/ruby/1.8/webrick/server.rb:162:in `start'
  /usr/local/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
  /usr/local/lib/ruby/1.8/webrick/server.rb:95:in `start'
  /usr/local/lib/ruby/1.8/webrick/server.rb:92:in `each'
  /usr/local/lib/ruby/1.8/webrick/server.rb:92:in `start'
  /usr/local/lib/ruby/1.8/webrick/server.rb:23:in `start'
  /usr/local/lib/ruby/1.8/webrick/server.rb:82:in `start'

有谁知道如何解决这个问题?

Redmine Version: Redmine 1.1.2
Plugin Version: 0.4

1 个答案:

答案 0 :(得分:0)

安装redmine插件时,您应该遵循本教程:http://www.redmine.org/projects/redmine/wiki/Plugins。我想你错过的命令是:rake db:migrate:plugins RAILS_ENV=production。但只是为了确保,仔细检查安装。