Project

General

Profile

Actions

Defect #16740

closed

Internal error after update from Redmine 2.2 to 2.5.1 in app/helpers/custom_fields_helper.rb

Added by Peter Werner almost 10 years ago. Updated almost 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Custom fields
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
No feedback
Affected version:

Description

Hi,

I guess I have found a problem in Redmine 2.5.1.

First here the necessary informations:

Environment:
Redmine version 2.5.1.stable
Ruby version 1.9.3-p231 (2012-05-25) [i386-mingw32]
Rails version 3.2.17
Environment production
Database adapter Mysql2
SCM:
Filesystem
Redmine plugins:
redmine_custom_workflows 0.0.4
redmine_egroupware_clients 0.0.2
redmine_steinhart_capa 0.0.1

What happens?

I have made an update from version 2.2 to 2.5.1. Now I have the problem that some of the issues are causing an internal error. All these issues have a history but not all issues with a history are causing that error. According to the stack trace in the production log the method format_value is affected. Here two stack traces:

Completed 500 Internal Server Error in 656.3ms

ActionView::Template::Error (private method `format' called for "bool":String):
    8: 
    9:     <% if journal.details.any? %>
    10:     <ul class="details">
    11:       <% details_to_strings(journal.visible_details).each do |string| %>
    12:        <li><%= string %></li>
    13:       <% end %>
    14:     </ul>
  app/helpers/custom_fields_helper.rb:112:in `format_value'
  app/helpers/issues_helper.rb:277:in `block in details_to_strings'
  app/helpers/issues_helper.rb:263:in `each'
  app/helpers/issues_helper.rb:263:in `details_to_strings'
  app/views/issues/_history.html.erb:11:in `block in _app_views_issues__history_html_erb___1036113763_8711856'
  app/views/issues/_history.html.erb:2:in `each'
  app/views/issues/_history.html.erb:2:in `_app_views_issues__history_html_erb___1036113763_8711856'
  app/controllers/issues_controller.rb:128:in `block (2 levels) in show'
  app/controllers/issues_controller.rb:125:in `show'
Completed 500 Internal Server Error in 1156.2ms

ActionView::Template::Error (private method `format' called for "list":String):
    8: 
    9:     <% if journal.details.any? %>
    10:     <ul class="details">
    11:       <% details_to_strings(journal.visible_details).each do |string| %>
    12:        <li><%= string %></li>
    13:       <% end %>
    14:     </ul>
  app/helpers/custom_fields_helper.rb:112:in `format_value'
  app/helpers/issues_helper.rb:277:in `block in details_to_strings'
  app/helpers/issues_helper.rb:263:in `each'
  app/helpers/issues_helper.rb:263:in `details_to_strings'
  app/views/issues/_history.html.erb:11:in `block in _app_views_issues__history_html_erb___1036113763_8711856'
  app/views/issues/_history.html.erb:2:in `each'
  app/views/issues/_history.html.erb:2:in `_app_views_issues__history_html_erb___1036113763_8711856'
  app/controllers/issues_controller.rb:128:in `block (2 levels) in show'
  app/controllers/issues_controller.rb:125:in `show'

I have not figured out yet what kind of journal entry in the history is the reason, but I try to get more details ASAP. Anyway, maybe one of the developers might have an idea what is going wrong here.

Best regards
Peter

Actions #1

Updated by Constantin Manea almost 10 years ago

Hello,

I had the same problem (i updated from Redmine 2.4.1 to 2.5.1) and when i wanted to access "Roadmap" tab in every project i received the error:

private method `format' called for "date":String
app/helpers/custom_fields_helper.rb:112:in `format_value'

After a while i figured that this issue was from "Redmine Extended Fields Plugin". Uninstalled it and it resolved my problem.
Maybe this helps you too.

Actions #2

Updated by Peter Werner almost 10 years ago

Hi Constantin,

thank you for your feedback. Although we have not installed that plug-in, we have other plug-ins installed and maybe one of theses causes similar problems. I had that already in mind before I opened a bug report but unfortunately I could not test it how Redmine behaves without the plug-ins because when our own developed plugin is missing all issues can not be displayed any more. So I need at least our own plugin.

Anyway, thanks for your tip and I guess I have to debug our installed plug-ins to find out if they cause the problem.

Best regards
Peter

Actions #3

Updated by Toshi MARUYAMA almost 10 years ago

  • Status changed from New to Needs feedback
Actions #4

Updated by Jean-Philippe Lang almost 9 years ago

  • Status changed from Needs feedback to Closed
  • Resolution set to No feedback
Actions

Also available in: Atom PDF