Project

General

Profile

Actions

Defect #12026

closed

500 error on user page after migrating from Trac to RedMine 2.0.3

Added by Anonymous about 12 years ago. Updated about 12 years ago.

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

0%

Estimated time:
Resolution:
Affected version:

Description

When we click on a username (https://redmine/users/id), we get the 500 error.

Environment:
Redmine version 2.0.3.stable.9901
Ruby version 1.8.7 (x86_64-linux)
Rails version 3.2.6
Database adapter MySQL 5.1.63
Redmine plugins:
redmine_ldap_sync 1.2.0
redmine_scm 0.4.1

Message log :

Started GET "/users/105" for at Fri Oct 05 11:14:49 +0200 2012
Processing by UsersController#show as HTML
Parameters: {"id"=>"105"}
Rendered users/show.html.erb within layouts/base (14.2ms)
Completed 500 Internal Server Error in 32ms

ActionView::Template::Error (undefined method `empty?' for nil:NilClass):
34:
35: <div class="splitcontentright">
36:
37: <% unless @events_by_day.empty? >
38: <h3><
= link_to l(:label_activity), :controller => 'activities',
39: :action => 'index', :id => nil, :user_id => user user,
40: :from => @events_by_day.keys.first %></h3>
app/views/users/show.html.erb:37:in `_app_views_users_show_html_erb__1794637145_69869802302240'
app/controllers/users_controller.rb:77:in `show'
app/controllers/users_controller.rb:76:in `show'

Thanks for your help !


Related issues

Related to Redmine - Patch #38139: Add guard clause to time_tag method to handle nil timeClosedGo MAEDA

Actions
Actions

Also available in: Atom PDF