Project

General

Profile

Actions

Defect #35823

closed

undefined method `+' for nil:NilClass

Added by Martin K about 3 years ago. Updated about 3 years ago.

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

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

Hi,
I am using latest Redmine SVN version, I am having trouble opening some issuses (some are OK, some cause error). This is what I get:

Started GET "/issues/4617" for xx.xx.xx.xx at 2021-08-28 09:07:21 +0200
Processing by IssuesController#show as HTML
  Parameters: {"id"=>"4617"}
  Current user: xxxx (id=3)
  Rendered issues/show.html.erb within layouts/base (Duration: 996.0ms | Allocations: 133997)
  Rendered layout layouts/base.html.erb (Duration: 996.6ms | Allocations: 134036)
Completed 500 Internal Server Error in 2302ms (ActiveRecord: 371.0ms | Allocations: 325712)

ActionView::Template::Error (undefined method `+' for nil:NilClass):
    10:
    11: <h3><%= l(:"label_#{watched_klass_name}_watchers") %> (<%= watched.watcher_users.size %>)</h3>
    12:
    13: <%= watchers_list(watched) %>

app/helpers/application_helper.rb:75:in `link_to_principal'
app/helpers/application_helper.rb:54:in `link_to_user'
app/helpers/watchers_helper.rb:54:in `block in watchers_list'
app/helpers/watchers_helper.rb:51:in `collect'
app/helpers/watchers_helper.rb:51:in `watchers_list'
app/views/watchers/_watchers.html.erb:13
app/views/issues/show.html.erb:142
app/views/issues/show.html.erb:136
app/controllers/issues_controller.rb:118:in `block (2 levels) in show'
app/controllers/issues_controller.rb:110:in `show'
lib/redmine/sudo_mode.rb:61:in `sudo_mode'
$ruby bin/about

sh: hg: command not found
sh: cvs: command not found
sh: bzr: command not found
Environment:
  Redmine version                4.2.2.devel.21201
  Ruby version                   2.5.9-p229 (2021-04-05) [x86_64-linux]
  Rails version                  6.1.4.1
  Environment                    production
  Database adapter               PostgreSQL
  Mailer queue                   ActiveJob::QueueAdapters::AsyncAdapter
  Mailer delivery                smtp
SCM:
  Subversion                     1.9.7
  Git                            2.14.3
  Filesystem
Redmine plugins:
  periodictask                   4.1.0
  projects_table                 0.0.4
  redmine_editauthor             0.11.0
  redmine_impersonate            0.10.0
  redmine_timelog_timer          2.0.1
  sidebar_hide                   0.0.8

BTW: also happens if all plugins are disabled


Files

35823.patch (2.9 KB) 35823.patch Go MAEDA, 2021-09-04 10:24

Related issues

Related to Redmine - Feature #12795: View group members by non-admin usersClosedGo MAEDA

Actions
Actions

Also available in: Atom PDF