Redmine 插件 time_trackers_controller 出错

发布于 2024-11-02 16:49:04 字数 1116 浏览 0 评论 0原文

我正在使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

梦回梦里 2024-11-09 16:49:04

安装 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文