Project

General

Profile

ActionView::Template::Error (unidentified method 'identifier' for nil:NilClass

Added by Kevin Yin almost 8 years ago

Hello everyone,

I am tasked with fixing a bug left over from a previous developer for our website. He implemented a custom plugin for creating new issues, based on this existing plugin:

https://github.com/akiko-pusu/redmine_issue_templates/issues

I'm able to create new issues based on his version of the template, but every time I try to access "Issues Assigned to Me" or "Reported Issues" links from the "My Page" section, I am redirected to an internal error. The issues have been successfully created, as I can access them. It is just these two links that are broken. I do not have too much experience with redmine or Ruby on rails development, so any help is appreciated.

Here's the text for the error logs for this issue:

Started GET "/issues?assigned_to_id=me&set_filter=1&sort=priority%3Adesc%2Cupdated_on%3Adesc" for 192.168.137.1 at 2017-01-30 22:54:39 +0000
Processing by IssuesController#index as HTML
Parameters: {"assigned_to_id"=>"me", "set_filter"=>"1", "sort"=>"priority:desc,updated_on:desc"}
Current user: admin (id=1)
Rendered queries/_filters.html.erb (5.4ms)
Rendered queries/_columns.html.erb (1.6ms)
Rendered issues/_list.html.erb (48.8ms)
Rendered issues/_sidebar.html.erb (1.5ms)
Rendered issues/index.html.erb within layouts/base (74.3ms)
Completed 500 Internal Server Error in 233ms (ActiveRecord: 93.4ms)

ActionView::Template::Error (undefined method `identifier' for nil:NilClass):
18: <% end >
19: </ul>
20:
21: <
= call_hook(:view_issues_sidebar_issues_bottom) >
22: <
= call_hook(:view_issues_sidebar_planning_bottom) >
23:
24: <
= render_sidebar_queries %>
lib/redmine/hook.rb:61:in `block (2 levels) in call_hook'
lib/redmine/hook.rb:61:in `each'
lib/redmine/hook.rb:61:in `block in call_hook'
lib/redmine/hook.rb:58:in `tap'
lib/redmine/hook.rb:58:in `call_hook'
lib/redmine/hook.rb:96:in `call_hook'
app/views/issues/_sidebar.html.erb:21:in `_app_views_issues__sidebar_html_erb__3427629480964977966_70213843743380'
app/views/issues/index.html.erb:104:in `block in app_views_issues_index_html_erb__3179331357202124288_24941180'
app/views/issues/index.html.erb:103:in `_app_views_issues_index_html_erb___3179331357202124288_24941180'
app/controllers/issues_controller.rb:77:in `block (2 levels) in index'
app/controllers/issues_controller.rb:76:in `index'
lib/redmine/sudo_mode.rb:63:in `sudo_mode'

Here is the info for my redmine version:

Environment:
Redmine version 3.2.0.stable
Ruby version 2.1.5-p273 (2014-11-13) [x86_64-linux-gnu]
Rails version 4.2.5
Environment production
Database adapter Mysql2
SCM:
Subversion 1.8.10
Mercurial 3.1.2
Bazaar 2.7.0
Git 2.1.4
Filesystem
Redmine plugins:
issue_templates 1.0.0