Project

General

Profile

NoMethodError in IssuesController#show and NoMethodError in Projects#show

Added by Matus Pakozdy almost 12 years ago

- Redmine 1.4.5
- Apache 2.2.23
- ImageMagick 6.7.5
- MySQL 5.5.28
- Subversion 1.7.5
- Git 1.7.11.3
- Ruby 1.9.3-p327
- Rails 3.2.9
- RubyGems 1.8.12

Hello,

I has update bitnami redmine stack from version 1.0.2 to 1.4.5.0 (from one machine to second) and I´m getting this errors in web browser when I want to see issues or projects :
NoMethodError in Projects#show

Showing app/views/projects/show.html.erb where line #21 raised: 
undefined method `multiple?' for #<ProjectCustomField:0x5b68408>

Extracted source (around line #21):
18: <li><%=l(:label_subproject_plural)%>:
19: <%= @subprojects.collect{|p| link_to(h(p), :action => 'show', :id => p)}.join(", ").html_safe ></li>
20: <
end >
21: <
@project.visible_custom_field_values.each do |custom_value| >
22: <
if !custom_value.value.blank? >
23: <li><
=h custom_value.custom_field.name >: <=h show_value(custom_value) ></li>
24: <
end %>

RAILS_ROOT: C:/BitNami/redmine/apps/redmine/htdocs
Application Trace | Framework Trace | Full Trace
C:/BitNami/redmine/ruby/lib/ruby/gems/1.9.1/gems/activerecord-2.3.14/lib/active_record/attribute_methods.rb:255:in `method_missing'
C:/BitNami/redmine/apps/redmine/htdocs/vendor/plugins/acts_as_customizable/lib/acts_as_customizable.rb:90:in `block in custom_field_values'
C:/BitNami/redmine/apps/redmine/htdocs/vendor/plugins/acts_as_customizable/lib/acts_as_customizable.rb:86:in `collect'
C:/BitNami/redmine/apps/redmine/htdocs/vendor/plugins/acts_as_customizable/lib/acts_as_customizable.rb:86:in `custom_field_values'
C:/BitNami/redmine/apps/redmine/htdocs/vendor/plugins/acts_as_customizable/lib/acts_as_customizable.rb:106:in `visible_custom_field_values'
C:/BitNami/redmine/apps/redmine/htdocs/app/views/projects/show.html.erb:21:in `_run_erb_app47views47projects47show46html46erb'
C:/BitNami/redmine/apps/redmine/htdocs/app/controllers/projects_controller.rb:168:in `show'
Request

Parameters: {"id"=>"server"}

Show session dump
Response

Headers: {"Cache-Control"=>"no-cache",
"Content-Type"=>"text/html"}

for projects and this for issues :NoMethodError in IssuesController#show
undefined method `multiple?' for #<IssueCustomField:0x395ee00>

RAILS_ROOT: C:/BitNami/redmine/apps/redmine/htdocs
Application Trace | Framework Trace | Full Trace
C:/BitNami/redmine/ruby/lib/ruby/gems/1.9.1/gems/activerecord-2.3.14/lib/active_record/attribute_methods.rb:255:in `method_missing'
C:/BitNami/redmine/apps/redmine/htdocs/app/models/custom_field.rb:132:in `order_statement'
C:/BitNami/redmine/apps/redmine/htdocs/app/models/query.rb:59:in `initialize'
C:/BitNami/redmine/apps/redmine/htdocs/app/models/query.rb:370:in `new'
C:/BitNami/redmine/apps/redmine/htdocs/app/models/query.rb:370:in `block in available_columns'
C:/BitNami/redmine/apps/redmine/htdocs/app/models/query.rb:367:in `collect'
C:/BitNami/redmine/apps/redmine/htdocs/app/models/query.rb:367:in `available_columns'
C:/BitNami/redmine/apps/redmine/htdocs/app/models/query.rb:401:in `sortable_columns'
C:/BitNami/redmine/apps/redmine/htdocs/app/controllers/issues_controller.rb:340:in `retrieve_previous_and_next_issue_ids'
C:/BitNami/redmine/apps/redmine/htdocs/app/controllers/issues_controller.rb:117:in `block (2 levels) in show'
C:/BitNami/redmine/apps/redmine/htdocs/app/controllers/issues_controller.rb:115:in `show'
Request

Parameters: {"id"=>"2305"}

Show session dump
Response

Headers: {"Cache-Control"=>"no-cache",
"Content-Type"=>"text/html"}

But issues were fine unless I created new column in repositories: is_default, which has missing. After that issues cant be displayed too :(

Im noob in that things about redmine, please, can somebody help me with that? Thats the last problem I have, then will be redmine working fine. Thanks

Im using Windows Server 2008r2 64bit.

Problem is solved by remove table changeset_parents and column is_default from repositories, then I ran again command rake db:migrate RAILS_ENV="production". I hope that will help someone else :)