我最近从 Trav 0.12 迁移到 Redmine 1.4.0。将数据从 Rrac 迁移到 Redmine 后,出现此错误:
Processing UsersController#show (for xx.xxx.xx.xxx at 2012-04-16 12:45:36) [GET]
Parameters: {"id"=>"4", "action"=>"show", "controller"=>"users"}
NoMethodError (undefined method `<=>' for nil:NilClass):
lib/redmine/activity/fetcher.rb:80:in `events'
lib/redmine/activity/fetcher.rb:80:in `sort!'
lib/redmine/activity/fetcher.rb:80:in `events'
app/controllers/users_controller.rb:68:in `show'
thin (1.3.1) lib/thin/connection.rb:80:in `pre_process'
thin (1.3.1) lib/thin/connection.rb:78:in `catch'
thin (1.3.1) lib/thin/connection.rb:78:in `pre_process'
thin (1.3.1) lib/thin/connection.rb:53:in `process'
thin (1.3.1) lib/thin/connection.rb:38:in `receive_data'
eventmachine (0.12.10) lib/eventmachine.rb:256:in `run_machine'
eventmachine (0.12.10) lib/eventmachine.rb:256:in `run'
thin (1.3.1) lib/thin/backends/base.rb:61:in `start'
thin (1.3.1) lib/thin/server.rb:159:in `start'
thin (1.3.1) lib/thin/controllers/controller.rb:86:in `start'
thin (1.3.1) lib/thin/runner.rb:185:in `send'
thin (1.3.1) lib/thin/runner.rb:185:in `run_command'
thin (1.3.1) lib/thin/runner.rb:151:in `run!'
thin (1.3.1) bin/thin:6
/usr/bin/thin:23:in `load'
/usr/bin/thin:23
Rendering /mnt/storage/redmine/public/500.html (500 Internal Server Error)
我是红宝石新手,有人可以帮助我吗?
注意:这里描述的问题非常相似。在我的情况下,我使用 MySQL 数据库。