ActiveRecord::ConfigurationError in Issues#show

Showing issues/_sidebar.rhtml where line #7 raised:

Association named 'project' was not found; perhaps you misspelled it?

Extracted source (around line #7):

4: <%= link_to l(:field_summary), :controller => 'reports', :action => 'issue_report', :id => @project %><br />
5: <%= link_to l(:label_change_log), :controller => 'projects', :action => 'changelog', :id => @project %><br />
6: <% end %>
7: <%= call_hook(:view_issues_sidebar_issues_bottom) %>
8: 
9: <% planning_links = []
10:   planning_links << link_to(l(:label_calendar), :action => 'calendar', :project_id => @project) if User.current.allowed_to?(:view_calendar, @project, :global => true)

Trace of template inclusion: /issues/show.rhtml

RAILS_ROOT: C:/www/redmine/trunk/redmine

Application Trace | Framework Trace | Full Trace
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib/active_record/associations.rb:1682:in `build'
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib/active_record/associations.rb:1687:in `build'
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib/active_record/associations.rb:1686:in `each'
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib/active_record/associations.rb:1686:in `build'
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib/active_record/associations.rb:1692:in `build'
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib/active_record/associations.rb:1690:in `each'
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib/active_record/associations.rb:1690:in `build'
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib/active_record/associations.rb:1687:in `build'
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib/active_record/associations.rb:1686:in `each'
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib/active_record/associations.rb:1686:in `build'
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib/active_record/associations.rb:1606:in `initialize'
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib/active_record/calculations.rb:194:in `new'
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib/active_record/calculations.rb:194:in `construct_calculation_sql'
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib/active_record/calculations.rb:225:in `execute_simple_calculation'
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib/active_record/calculations.rb:126:in `calculate'
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib/active_record/calculations.rb:122:in `catch'
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib/active_record/calculations.rb:122:in `calculate'
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib/active_record/calculations.rb:48:in `count'
vendor/plugins/question_plugin/lib/question_issue_hooks.rb:73:in `view_issues_sidebar_issues_bottom'
lib/redmine/hook.rb:60:in `send'
lib/redmine/hook.rb:60:in `call_hook'
lib/redmine/hook.rb:59:in `each'
lib/redmine/hook.rb:59:in `call_hook'
lib/redmine/hook.rb:104:in `call_hook'
app/views/issues/_sidebar.rhtml:7:in `_run_erb_47app47views47issues47_sidebar46rhtml'
app/views/issues/show.rhtml:120:in `_run_erb_47app47views47issues47show46rhtml'
app/helpers/application_helper.rb:600:in `content_for'
app/views/issues/show.rhtml:119:in `_run_erb_47app47views47issues47show46rhtml'
app/controllers/issues_controller.rb:106:in `show'
app/controllers/issues_controller.rb:105:in `show'

Request

Parameters:

{"id"=>"4"}

Show session dump

Response

Headers:

{"cookie"=>[],
 "Content-Type"=>"text/html",
 "Cache-Control"=>"no-cache"}