jongha / redmine_vote

This is redmine vote plugin. Its style is similar to stackoverflow. You can vote for each message with a positive or negative point. When you install this plugin votes table is created internally. This plugin shows the sum of points the message using internal table. If you want to know the reaction of message in Redmine forum, this plugin helps you. And also if you want more functions of the plugin, you can add the issue on github freely.
http://www.redmine.org/plugins/redmine_vote_plugin
MIT License
32 stars 6 forks source link

Completed 500 Internal Server Error #2

Closed codyliou closed 10 years ago

codyliou commented 10 years ago

Completed 500 Internal Server Error in 306.0ms

ActionView::Template::Error (undefined method id' for nil:NilClass): 1: <% unless User.current.login == '' %> 2: <div id="vote" class="vote-area" data-board="<%=@board.id%>" data-topic ="<%=@topic.id%>"> 3: <div><a class="vote-button" href="#" data-point="1">▲</a></div> 4: <div class="vote-point">-</div> 5: <div><a class="vote-button" href="#" data-point="-1">▼</a></div> 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/layouts/base.html.erb:59:in `_fca6d3eee27b614e572b338fe195411a'

jongha commented 10 years ago

Sorry @codyliou. What is your version of Redmine?

codyliou commented 10 years ago

Environment: Redmine version 2.5.0.stable Ruby version 2.0.0-p247 (2013-06-27) [i386-mingw32] Rails version 3.2.17 Environment production Database adapter Mysql2 SCM: Subversion 1.8.3 Git 1.8.4 Filesystem
Redmine plugins: ajax_counters 0.0.1 bonus_time 0.0.1 event_notifications 2.0.0 handlebars 0.1.2 redmine_agile 1.0.1-light1.0.1 redmine_emergya_adjustments 0.0.2 redmine_group_gantt 0.0.1 redmine_hours 0.1.0 redmine_limited_visibility 0.0.1 redmine_remember_logged_date 0.1 redmine_responsibility_list 0.0.1 redmine_schedules 0.5.0 redmine_spent_time 2.6.3 redmine_sticky_messages 1.0.1 redmine_time_invoices 0.0.1 redmine_timereports 0.0.1 scrum 0.5.0

jongha commented 10 years ago

@codyliou I'll check it soon. Thanks.

jongha commented 10 years ago

Fixed. Thanks @codyliou. :)

vikolyada commented 10 years ago

I have a similar problem with plugin version 1.1. Tried to use the solution of this issue, but in this case the number of votes nondisplayed. Screenshot:

image

my setup: Environment: Redmine version 2.5.1.stable Ruby version 1.9.3-p545 (2014-02-24) [i386-mingw32] Rails version 3.2.17 Environment production Database adapter Mysql2 SCM: Filesystem
Redmine plugins: clipboard_image_paste 1.8 redmine_contacts 3.2.17 redmine_dashboard 2.2.2 redmine_issue_checklist 2.0.5 redmine_issue_templates 0.0.8 redmine_lightbox 0.0.1 redmine_login_audit 0.1.5 redmine_people 0.1.8 redmine_theme_changer 0.1.0 redmine_vote 1.0.1 redmine_wiki_backlinks 0.0.2 sidebar 0.1.2 wiking 1.0.0b

jongha commented 10 years ago

@vikolyada

Sorry I'm late. Recently, I was very busy at work. Thanks for your report! The bugs has been fixed. Please check one more time. If you have other comments, please contact me again.

Thanks.