hdgarrood / redmine_release_notes

A plugin to add release notes to Redmine
GNU General Public License v3.0
73 stars 46 forks source link

Plugin incompatibility -undefined local variable or method `sidebar_tags' #65

Closed cforce closed 11 years ago

cforce commented 11 years ago

I found out that redmine_tags plugin crashes together with this plugin when calling issues or issues view with following error


Started GET "/projects/bus/issues" for 172.25.252.99 at 2013-01-09 11:09:10 +0100 Processing by IssuesController#index as HTML Parameters: {"project_id"=>"bus"} Current user: 00001276 (id=3) Rendered plugins/redmine_time_tracker/app/views/queries/_filters.html.erb (43.5ms) Rendered queries/_columns.html.erb (3.7ms) Rendered issues/_list.html.erb (165.7ms) Rendered plugins/redmine_contacts/app/views/issues/_contacts.html.erb (1.1ms) Rendered plugins/redmine_issue_templates/app/views/issue_templates/_issue_template_link.html.erb (1.9ms) Rendered plugins/redmine_tags/app/views/issues/_tags_sidebar.html.erb (311.9ms) Rendered issues/_sidebar.html.erb (355.7ms) Rendered issues/index.html.erb (653.9ms) Rendered plugins/redmine_anonymous_watchers/app/views/issues/index.html.erb within layouts/base (667.0ms) Completed 500 Internal Server Error in 1254ms

ActionView::Template::Error (undefined local variable or method sidebar_tags' for #<#<Class:0xd9e8a10>:0xd607b30>): 1: <% unless sidebar_tags.empty? -> 2: <= stylesheet_link_tag 'jquery.tagit.css', :plugin => 'redmine_tags' > 3: <= stylesheet_link_tag 'redmine_tags', :plugin => 'redmine_tags' > 4: <h3><= l(:tags) %></h3> lib/redmine/hook.rb:111:inblock in render_on' lib/redmine/hook.rb:61:in block (2 levels) in call_hook' lib/redmine/hook.rb:61:ineach' lib/redmine/hook.rb:61:in block in call_hook' lib/redmine/hook.rb:58:intap' lib/redmine/hook.rb:58:in call_hook' lib/redmine/hook.rb:158:incall_hook' app/views/issues/_sidebar.html.erb:14:in _app_views_issues__sidebar_html_erb___89747382_99460450' app/views/issues/index.html.erb:93:inblock in app_views_issues_index_html_erb_940294355_112433450' app/helpers/application_helper.rb:1190:in content_for' app/views/issues/index.html.erb:92:in_app_views_issues_index_html_erb__940294355_112433450' app/controllers/issues_controller.rb:83:in block (2 levels) in index' app/controllers/issues_controller.rb:82:inindex'

cforce commented 11 years ago

See also https://github.com/ixti/redmine_tags/issues/17

hdgarrood commented 11 years ago

Thanks for this report. Could you post your environment (on Administration > Information)?

I think it might be redmine_anonymous_watchers that's the culprit here. Can you give me a URL for the project, and also the commit which you're using?

hdgarrood commented 11 years ago

Actually never mind. I made a pull request to redmine_tags which seems to fix this.