Started POST "/projects" for 124.134.52.190 at 2015-01-07 13:53:37 +0800
Processing by ProjectsController#create as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"Ul3OecVgk7CIEeuRjgY4CkJwfEs87lZLAtfcPE79+RQ=", "project"=>{"name"=>"bluemarkplatform", "description"=>"", "identifier"=>"bluemarkplatform", "homepage"=>"", "is_public"=>"1", "inherit_members"=>"0", "enabled_module_names"=>["issue_tracking", "time_tracking", "news", "documents", "files", "wiki", "repository", "boards", "calendar", "gantt", ""], "tracker_ids"=>["1", "2", "3", ""]}, "commit"=>"创建"}
Current user: admin (id=1)
Redirected to http://zb.bluemark.cn:3000/projects/bluemarkplatform/settings
Expire fragment views/zb.bluemark.cn:3000/robots.txt 0.1ms
Completed 302 Found in 272.9ms (ActiveRecord: 225.5ms)
Started GET "/projects/bluemarkplatform/settings" for 124.134.52.190 at 2015-01-07 13:53:37 +0800
Processing by ProjectsController#settings as HTML
Parameters: {"id"=>"bluemarkplatform"}
Current user: admin (id=1)
Rendered projects/_form.html.erb (12.9ms)
Rendered projects/_edit.html.erb (14.3ms)
Rendered projects/settings/_modules.html.erb (2.9ms)
Rendered projects/settings/_members.html.erb (20.2ms)
Rendered projects/settings/_versions.html.erb (2.6ms)
Rendered common/_tabs.html.erb (43.8ms)
Rendered projects/settings.html.erb within layouts/base (44.2ms)
Completed 500 Internal Server Error in 58.4ms
ActionView::Template::Error (undefined method `name' for nil:NilClass):
33: <% end %>
34:
35: <div class="contextual">
36: <% if @project.versions.any? %>
37: <%= link_to l(:label_close_versions), close_completed_project_versions_path(@project), :method => :put %>
38: <% end %>
39: </div>
app/views/projects/settings/_versions.html.erb:36:in `_app_views_projects_settings__versions_html_erb___2239517397735631269_16574600'
app/views/common/_tabs.html.erb:22:in `block in _app_views_common__tabs_html_erb__147846800572085940_21340380'
app/views/common/_tabs.html.erb:21:in `each'
app/views/common/_tabs.html.erb:21:in `_app_views_common__tabs_html_erb__147846800572085940_21340380'
app/helpers/application_helper.rb:328:in `render_tabs'
app/views/projects/settings.html.erb:3:in `_app_views_projects_settings_html_erb__2163854291192367152_21364260'
redmine 版本号2.6.0
ruby 2.2.0
http://www.redmine.org/boards/2/topics/45039?r=45061#message-45061
在官网上发现这个解释
I had the same problem, uninstalling ruby 2.2 and installing 2.0 (also
installing gems again for 2.0) solved it for me.
正在测试
就错误信息来看,
app/views/projects/settings/_versions.html.erb
文件内有一处调用了name
方法的对象是不存在的,没有相关代码的话不好分析是什么对象。可能出现的原因正如你搜索到的官网解释,降级 Ruby,不要用 v2.2。其实你用的 redmine 不太适合用较新版本的 Ruby。我在公司部署的一个用两年了一直跑在 Ruby v1.9.3 下,还从未抱过错呢。