Project

General

Profile

Custom Fields creates "Internal Error" after updating Redmine to 2.5.2 from 2.4.2

Added by sascha ehlers over 9 years ago

Hello all.

We used Redmine (2.4.2) on a Testmachine to see if we want to use it.
Now we decided to use it and installed it on our server right now.
I installed 2.5.2 !

I copied the MySql database and the files-directory .. !

If i want to view/edit an Ticket with some custom fields i got an Internal Error!

Logs says following:

Started GET "/redmine/issues/39" for 127.0.0.1 at 2014-08-07 09:48:41 +0200
Processing by IssuesController#show as HTML
Parameters: {"id"=>"39"}
Current user: s.ehlers (id=3)
Rendered issues/_action_menu.html.erb (0.0ms)
Rendered issues/show.html.erb within layouts/base (31.2ms)
Completed 500 Internal Server Error in 93.7ms

ActionView::Template::Error (undefined method `format_store' for #<IssueCustomField:0x4d8e9a8>):
64: rows.right l(:label_spent_time), (@issue.total_spent_hours > 0 ? link_to(l_hours(@issue.total_spent_hours), project_issue_time_entries_path(Herve Harster, @issue)) : "-"), :class => 'spent-time'
65: end
66: end >
67: <
= render_custom_fields_rows(@issue) >
68: <
= call_hook(:view_issues_show_details_bottom, :issue => @issue) %>
69: </table>
70:
lib/redmine/field_format.rb:279:in `formatted_value'
lib/redmine/field_format.rb:147:in `formatted_custom_value'
app/helpers/application_helper.rb:187:in `format_object'
app/helpers/custom_fields_helper.rb:107:in `show_value'
app/helpers/issues_helper.rb:176:in `block in render_custom_fields_rows'
app/helpers/issues_helper.rb:173:in `each'
app/helpers/issues_helper.rb:173:in `render_custom_fields_rows'
app/views/issues/show.html.erb:67:in `_app_views_issues_show_html_erb__7481017_39856800'
app/controllers/issues_controller.rb:128:in `block (2 levels) in show'
app/controllers/issues_controller.rb:125:in `show'

Even if i want to create new custom fields redmine throws "Internal Error" !

Log:

Started GET "/redmine/custom_fields/new?utf8=%E2%9C%93&type=IssueCustomField" for 127.0.0.1 at 2014-08-07 15:33:52 +0200
Processing by CustomFieldsController#new as HTML
Parameters: {"utf8"=>"✓", "type"=>"IssueCustomField"}
Current user: s.ehlers (id=3)
Rendered custom_fields/_form.html.erb (0.0ms)
Rendered custom_fields/new.html.erb within layouts/admin (0.0ms)
Completed 500 Internal Server Error in 0.0ms

ActionView::Template::Error (undefined method `description' for #<IssueCustomField:0x658cda0>):
4: <div class="box tabular">
5: <p><%= f.select :field_format, custom_field_formats_for_select(@custom_field), {}, :disabled => @custom_field.new_record? ></p>
6: <p><
= f.text_field :name, :required => true ></p>
7: <p><
= f.text_area :description, :rows => 7 ></p>
8:
9: <
if @custom_field.format.multiple_supported %>
10: <p>
lib/redmine/views/labelled_form_builder.rb:31:in `text_area'
app/views/custom_fields/_form.html.erb:7:in `_app_views_custom_fields__form_html_erb__636792546_52966284'
app/views/custom_fields/new.html.erb:6:in `block in app_views_custom_fields_new_html_erb__822483069_52512096'
app/helpers/application_helper.rb:1043:in `labelled_form_for'
app/views/custom_fields/new.html.erb:5:in `_app_views_custom_fields_new_html_erb___822483069_52512096'


Replies (3)

RE: Issues with attachment not shown after updating Redmine to 2.5.2 from 2.4.2 - Added by Anonymous over 9 years ago

Did you check the permissions on new files directory and the owner of the existing files?

Alex

RE: Issues with attachment not shown after updating Redmine to 2.5.2 from 2.4.2 - Added by sascha ehlers over 9 years ago

Yes.. seems like it was a fluke that this issue was with an attachment..

Must be another problem .. But thanks for your reply!

    (1-3/3)