Redmine 插件 time_trackers_controller 出错
我正在使用 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
I'm using redmine with the plugin redmine_time_tracker. However, I am getting the following error message:
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'
Does anyone know how can I fix this?
Redmine Version: Redmine 1.1.2
Plugin Version: 0.4
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
安装 redmine 插件时,您应该遵循本教程: http://www.redmine.org/项目/redmine/wiki/插件。我认为您错过的命令是:
rake db:migrate:plugins RAILS_ENV=product
。但为了确保万无一失,请仔细完成安装。When installing a redmine plugin you should follow this tutorial: http://www.redmine.org/projects/redmine/wiki/Plugins. The command I'm thinking you missed is:
rake db:migrate:plugins RAILS_ENV=production
. But just to be sure, go through the install carefully.