Internal error after use "new issue" wherever in Redmine - fresh instalation
Added by Michał Bierski about 8 years ago
Hi, I have a problem with Redmine 3.3.1. When I click "new issue" I get "Internal error".
Could you help me?
Thanks!
Environment:
Redmine version 3.3.1.stable
Ruby version 2.1.9-p490 (2016-03-30) [i386-mingw32]
Rails version 4.2.7.1
Environment production
Database adapter SQLServer
Redmine plugins: no plugin installed
In my log:
ActionView::Template::Error (undefined method `accessor' for #<ActiveRecord::Type::Value:0xe638fb0>): 15: <% end %> 16: 17: <% if @issue.safe_attribute? 'assigned_to_id' %> 18: <p><%= f.select :assigned_to_id, principals_options_for_select(@issue.assignable_users, @issue.assigned_to), :include_blank => true, :required => @issue.required_attribute?('assigned_to_id') %></p> 19: <% end %> 20: 21: <% if @issue.safe_attribute?('category_id') && @issue.project.issue_categories.any? %> app/models/role.rb:213:in `permissions_all_trackers' app/models/role.rb:222:in `permissions_all_trackers?' app/models/role.rb:228:in `permissions_tracker?' app/models/project.rb:532:in `block in assignable_users' app/models/project.rb:532:in `assignable_users' app/models/issue.rb:863:in `assignable_users' app/views/issues/_attributes.html.erb:18:in `block in _app_views_issues__attributes_html_erb__393947134_114367380' app/helpers/application_helper.rb:1058:in `labelled_fields_for' app/views/issues/_attributes.html.erb:1:in `_app_views_issues__attributes_html_erb__393947134_114367380' app/views/issues/_form.html.erb:42:in `block in _app_views_issues__form_html_erb__929292908_114867852' app/helpers/application_helper.rb:1058:in `labelled_fields_for' app/views/issues/_form.html.erb:1:in `_app_views_issues__form_html_erb__929292908_114867852' app/views/issues/new.html.erb:11:in `block in _app_views_issues_new_html_erb___904060764_115063068' app/helpers/application_helper.rb:1051:in `labelled_form_for' app/views/issues/new.html.erb:5:in `_app_views_issues_new_html_erb___904060764_115063068' app/controllers/issues_controller.rb:129:in `block (2 levels) in new' app/controllers/issues_controller.rb:128:in `new' lib/redmine/sudo_mode.rb:63:in `sudo_mode'
Replies (4)
RE: Internal error after use "new issue" wherever in Redmine - fresh instalation - Added by Kush Suryavanshi about 8 years ago
Have you created any project? I vaguely remember redmine failing when I tried to create an issue without any project.
RE: Internal error after use "new issue" wherever in Redmine - fresh instalation - Added by Michał Bierski about 8 years ago
Yes, I have one project and subproject.
RE: Internal error after use "new issue" wherever in Redmine - fresh instalation - Added by Kush Suryavanshi about 8 years ago
No idea but looks similar to
git update from 3.2.0(i think) to 3.3.0, undefined metho...
RE: Internal error after use "new issue" wherever in Redmine - fresh instalation - Added by Michał Bierski about 8 years ago
I found a solution :) It is part of update procedure.
1. Stop WEBrick
2. Run following commands:
bundle exec rake db:migrate RAILS_ENV=production
bundle exec rake tmp:cache:clear tmp:sessions:clear RAILS_ENV=production
3. Start WEBrick
Thanks Kush Suryavanshi for engagement!