Project

General

Profile

Actions

Defect #7389

closed

Error 500 when showing user page with user custom fields

Added by Siegfried Vogel almost 14 years ago. Updated about 13 years ago.

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

0%

Estimated time:
Resolution:
Invalid
Affected version:

Description

When I click on an URL like <redmine>/users/xx
an error 500 is produced in Redmine V.1.1.0.
Must have to do with user custom fields, as the log shows:

ActionView::TemplateError (undefined method `each' for nil:NilClass) on line #12 of app/views/users/show.rhtml:
9:     <% unless @user.pref.hide_mail %>
10:         <li><%=l(:field_mail)%>: <%= mail_to(h(@user.mail), nil, :encode => 'javascript') %></li>
11:     <% end %>
12:     <% for custom_value in @custom_values %>
13:     <% if !custom_value.value.blank? %>
14:     <li><%=h custom_value.custom_field.name%>: <%=h show_value(custom_value) %></li>
15:     <% end %>
Actions #1

Updated by Jean-Philippe Lang almost 14 years ago

  • Status changed from New to Closed
  • Resolution set to Invalid

This is not the content of app/views/users/show.rhtml in Redmine 1.1.0.
You must have done something wrong during the upgrade.

Actions #2

Updated by Jean-Philippe Lang almost 14 years ago

Or you have a plugin that overrides this view and is not compatible with 1.1.0

Actions #3

Updated by Siegfried Vogel almost 14 years ago

You are right, this was a leftover from V.1.0.4. After a fresh installation the error disappeared.
Thanks a lot for your time!

Actions #4

Updated by nicolas diogo about 13 years ago

  • Status changed from Closed to Reopened

the same problem persists on debian package
redmine_1.0.1-2_all.deb

Actions #5

Updated by Etienne Massip about 13 years ago

  • Status changed from Reopened to Closed

Either you have the problem described here and the code part included in the description is also present on your setup, in which case this is not a Redmine bug since the code is not present in latest versions

or you have the same symptom but not the same piece of code, in which case this is not the same issue.

Actions

Also available in: Atom PDF