Ruby 在 Rails Redmine Active Record::Record 找不到 select 页面

Ruby on Rails Redmine Active Record::Record not found for select pages

我最近在一家使用 Redmine 的新公司开始工作,我被要求从 2.3.3 升级到 3.0.3 - Ruby 和 Rails 完全是新手,但它目前看来没问题。

我已经安装了 3.0.3 的实例并使用 mysqldump 更新了数据库。它似乎在很大程度上起作用,但是新 Redmine 上的随机 wiki 页面不起作用 - 只是在浏览器中出现 404 错误。

其他一切都已成功 - 所有用户凭据、应用程序配置、许多项目、问题等,实际上还有许多 wiki - 只是其中一些不成功。我一直无法解释我从错误日志中得到的信息。

我的环境详细信息是:

应用生产日志的输出如下 -

    ActiveRecord::RecordNotFound (Couldn't find all Versions with 'id': (all, {:include=>:attachments}) [WHERE `versions`.`project_id` = ?] (found 0 results, but was looking for 2)):
  lib/redmine/hook.rb:119:in `block (2 levels) in render_on'
  lib/redmine/hook.rb:117:in `map'
  lib/redmine/hook.rb:117:in `block in render_on'
  lib/redmine/hook.rb:61:in `block (2 levels) in call_hook'
  lib/redmine/hook.rb:61:in `each'
  lib/redmine/hook.rb:61:in `block in call_hook'
  lib/redmine/hook.rb:58:in `tap'
  lib/redmine/hook.rb:58:in `call_hook'
  lib/redmine/hook.rb:167:in `call_hook'
  app/helpers/application_helper.rb:1229:in `view_layouts_base_sidebar_hook_response'
  app/views/layouts/base.html.erb:53:in `_app_views_layouts_base_html_erb__2179447321350669763_44059640'
  app/controllers/wiki_controller.rb:97:in `show'

而且我还没有找到与类似问题相关的任何信息。

任何帮助将不胜感激,因为这已经拖了很长时间,这是我们推出此升级之前的最后一步。

谢谢。

答案是插件不兼容。下载按钮插件导致了这个问题,一旦它被删除并再次 "bundle exec rake redmine:plugins:migrate RAILS_ENV=production" 运行,问题就解决了。