Error on "issues" after upgrade 0.9.4 to 1.0.1 stable
Added by stopspam stopspam over 14 years ago
After the upgrade, all works except the view "issues". This seems to be like this bug http://www.redmine.org/boards/2/topics/17304 but i don't know how to check if the "route.rb" file is corrupted ??
ActionView::TemplateError (undefined method `-' for nil:NilClass) on line #16 of app/views/issues/_list.rhtml: 13: </tr></thead> 14: <% previous_group = false %> 15: <tbody> 16: <% issue_list(issues) do |issue, level| -%> 17: <% if @query.grouped? && (group = @query.group_by_column.value(issue)) != previous_group %> 18: <% reset_cycle %> 19: <tr class="group open"> app/helpers/issues_helper.rb:28:in `issue_list' app/helpers/issues_helper.rb:23:in `each' app/helpers/issues_helper.rb:23:in `issue_list' app/views/issues/_list.rhtml:16 app/views/issues/_list.rhtml:1:in `_run_rhtml_app47views47issues47_list46rhtml_locals_issues_list_object_query' app/views/issues/index.rhtml:62:in `_run_rhtml_app47views47issues47index46rhtml' app/controllers/issues_controller.rb:83 app/controllers/issues_controller.rb:82:in `index' public/dispatch.fcgi:24
thanks in advance.
Replies (6)
RE: Error on "issues" after upgrade 0.9.4 to 1.0.1 stable - Added by Felix Schäfer over 14 years ago
I don't think this is related to a routes problem. Did you have the subtasks plugin installed?
RE: Error on "issues" after upgrade 0.9.4 to 1.0.1 stable - Added by stopspam stopspam over 14 years ago
No plugin installed.
RE: Error on "issues" after upgrade 0.9.4 to 1.0.1 stable - Added by Felix Schäfer over 14 years ago
Did you run the migrations properly?
RE: Error on "issues" after upgrade 0.9.4 to 1.0.1 stable - Added by stopspam stopspam over 14 years ago
yes, i've followed the redmineUpgrade instruction without error :
- backup old files and db
- extract archive
- cp email.yml, database.yml and files/
- copy theme (i use basecamp)
- rake session generate
- rake migrate db
- rake tmp, cache...
- reload lighttpd
RE: Error on "issues" after upgrade 0.9.4 to 1.0.1 stable - Added by Felix Schäfer over 14 years ago
Mmh, see if you are in the same situation as here: http://www.redmine.org/issues/5907#note-8
RE: Error on "issues" after upgrade 0.9.4 to 1.0.1 stable - Added by stopspam stopspam over 14 years ago
Yeah !!
I restore my backup and re-run the rake db migrate. I've check if column root_id, lft, rgt existed and are filled. Now it's ok !
Very thanks to you, for support. Redmine is the best bugtracking and projet management system ever !!