git update from 3.2.0(i think) to 3.3.0, undefined method `accessor'
Added by None None over 8 years ago
A bit stupid, but I thought i was updating a minor release. Any way got stuck with i think a permission problem. Normal users get an error when they are opening a project. When i make them admin, they can open view the project summary page. But opening an issue is also not possible as admin.
Any quick help is much appreciated.
Internal error
An error occurred on the page you were trying to access.
If you continue to experience problems please contact your Redmine administrator for assistance.
If you are the Redmine administrator, check your log files for details about the error.
Back
+++++++++++++
Started GET "/projects/sysadmin" for 192.168.11.35 at 2016-07-14 18:13:27 +0200
Processing by ProjectsController#show as HTML
Parameters: {"id"=>"sysadming"}
Current user: marc (id=5)
Completed 500 Internal Server Error in 97ms (ActiveRecord: 35.2ms)
NoMethodError (undefined method `accessor' for #<ActiveRecord::Type::Value:0x007fb19a10fec0>):
app/models/role.rb:213:in `permissions_all_trackers'
app/models/role.rb:222:in `permissions_all_trackers?'
app/models/tracker.rb:60:in `block (2 levels) in <class:Tracker>'
app/models/project.rb:215:in `block in allowed_to_condition'
app/models/project.rb:214:in `each'
app/models/project.rb:214:in `allowed_to_condition'
app/models/tracker.rb:59:in `block in <class:Tracker>'
app/controllers/projects_controller.rb:134:in `show'
lib/redmine/sudo_mode.rb:63:in `sudo_mode'
Started GET "/issues/2806" for 192.168.11.35 at 2016-07-14 18:17:46 +0200
Processing by IssuesController#show as HTML
Parameters: {"id"=>"2806"}
Current user: marc (id=5)
Rendered issues/_action_menu.html.erb (2.7ms)
Rendered plugins/scrum/app/views/scrum_hooks/issues/_show.html.erb (1.7ms)
Rendered plugins/redmine_agile/app/views/issues/_issue_story_points.html.erb (0.0ms)
Rendered issue_relations/_form.html.erb (1.0ms)
Rendered issues/_relations.html.erb (1.7ms)
Rendered issues/_history.html.erb (3.1ms)
Rendered issues/_action_menu.html.erb (1.6ms)
Rendered issues/_attributes.html.erb (4.2ms)
Rendered issues/_form.html.erb (46.4ms)
Rendered issues/_edit.html.erb (46.9ms)
Rendered issues/show.html.erb within layouts/base (70.9ms)
Completed 500 Internal Server Error in 130ms (ActiveRecord: 41.0ms)
ActionView::Template::Error (undefined method `accessor' for #<ActiveRecord::Type::Value:0x007fb19a10fec0>):
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:530:in `block in assignable_users'
app/models/project.rb:530: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__3328270613438114610_70200350533920'
app/helpers/application_helper.rb:1058:in `labelled_fields_for'
app/views/issues/_attributes.html.erb:1:in `_app_views_issues__attributes_html_erb__3328270613438114610_70200350533920'
app/views/issues/_form.html.erb:42:in `block in app_views_issues_form_html_erb__2946017214343369439_10583720'
app/helpers/application_helper.rb:1058:in `labelled_fields_for'
app/views/issues/_form.html.erb:1:in `_app_views_issues__form_html_erb__2946017214343369439_10583720'
app/views/issues/_edit.html.erb:8:in `block in app_views_issues_edit_html_erb__2381979893847655214_17915960'
app/helpers/application_helper.rb:1051:in `labelled_form_for'
app/views/issues/_edit.html.erb:1:in `_app_views_issues__edit_html_erb__2381979893847655214_17915960'
app/views/issues/show.html.erb:136:in `_app_views_issues_show_html_erb___2694647082069803279_32871120'
app/controllers/issues_controller.rb:118:in `block (2 levels) in show'
app/controllers/issues_controller.rb:115:in `show'
lib/redmine/sudo_mode.rb:63:in `sudo_mode'
Replies (1)
RE: git update from 3.2.0(i think) to 3.3.0, undefined method `accessor' - Added by Toshi MARUYAMA over 8 years ago
Did you run "rake db:migrate"?