Project

General

Profile

Actions

Defect #35174

closed

Internal Error when accessing the home page of some projects

Added by Miguel Moquillon over 3 years ago. Updated over 3 years ago.

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

0%

Estimated time:
Resolution:
Invalid
Affected version:

Description

Since the upgrade from 4.1.2 to 4.2.0 and 4.2.1, when accessing the home page of some of our projects, we have an "Internal Error" page with the following error messages in the log:

ActionView::Template::Error (comparison of NilClass with User failed):
    2:   <div class="members box">
    3:     <h3 class="icon icon-group"><%=l(:label_member_plural)%></h3>
    4:     <% @principals_by_role.keys.sort.each do |role| %>
    5:       <p><span class="label"><%= role %>:</span> <%= @principals_by_role[role].sort.collect{|p| link_to_user p}.join(", ").html_safe %></p>
    6:     <% end %>
    7:   </div>
    8:   <% end %>

app/views/projects/_members_box.html.erb:5:in `sort'
app/views/projects/_members_box.html.erb:5:in `block in _app_views_projects__members_box_html_erb___1165424576507768033_82920'
app/views/projects/_members_box.html.erb:4:in `each'
app/views/projects/_members_box.html.erb:4:in `_app_views_projects__members_box_html_erb___1165424576507768033_82920'
app/views/projects/show.html.erb:132:in `_app_views_projects_show_html_erb___1481690599684784851_82880'
lib/redmine/sudo_mode.rb:61:in `sudo_mode'

Note: not all the projects are concerned by this problem.


Files

redmine-Internal_error_page.png (13.5 KB) redmine-Internal_error_page.png Internal Error HTML page Miguel Moquillon, 2021-04-27 16:03
redmine-internal_errror_page.log (1.44 KB) redmine-internal_errror_page.log Part of the log relative to the Internal Error Miguel Moquillon, 2021-04-27 16:10
Actions

Also available in: Atom PDF