syntacticvexation/redmine_favourite_projects — Issue #15: Internal Error 500 on my/page after adding favorites
Author: cooooooop
Created: 2012-01-19 18:51:42+00:00
State: open

Hi there, after installing this plugin I have encountered an error in Redmine when I go to My page. The error log is this:

Rendering my/page

ActionView::TemplateError (undefined method `favourite_project_modules_links' for #) on line #20 of vendor/plugins/redmine_favourite_projects/app/views/my/blocks/_favourite_projects_box.html.erb:
17:
<%= project.css_classes %> <%= level > 0 ? "idnt idnt-#{level}" : nil %>">
18:	<%= link_to_project(project, {:action => 'show'}, :class => 'icon icon-projects', :title => project.short_description) %>
19:
20:	<%= favourite_project_modules_links(project) %>
21:	<%= format_date(project.created_on) %>
22:
23:

vendor/plugins/redmine_favourite_projects/app/views/my/blocks/_favourite_projects_box.html.erb:20
app/models/project.rb:660:in `project_tree'
app/models/project.rb:656:in `each'
app/models/project.rb:656:in `project_tree'
app/helpers/application_helper.rb:264:in `project_tree'
vendor/plugins/redmine_favourite_projects/app/views/my/blocks/_favourite_projects_box.html.erb:16
app/views/my/page.html.erb:11
app/views/my/page.html.erb:8:in `each'
app/views/my/page.html.erb:8
passenger (3.0.11) lib/phusion_passenger/rack/request_handler.rb:96:in `process_request'
passenger (3.0.11) lib/phusion_passenger/abstract_request_handler.rb:513:in `accept_and_process_next_request'
passenger (3.0.11) lib/phusion_passenger/abstract_request_handler.rb:274:in `main_loop'
passenger (3.0.11) lib/phusion_passenger/classic_rails/application_spawner.rb:321:in `start_request_handler'
passenger (3.0.11) lib/phusion_passenger/classic_rails/application_spawner.rb:275:in `send'
passenger (3.0.11) lib/phusion_passenger/classic_rails/application_spawner.rb:275:in `handle_spawn_application'
passenger (3.0.11) lib/phusion_passenger/utils.rb:479:in `safe_fork'
passenger (3.0.11) lib/phusion_passenger/classic_rails/application_spawner.rb:270:in `handle_spawn_application'
passenger (3.0.11) lib/phusion_passenger/abstract_server.rb:357:in `__send__'
passenger (3.0.11) lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop'
passenger (3.0.11) lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously'
passenger (3.0.11) lib/phusion_passenger/abstract_server.rb:180:in `start'
passenger (3.0.11) lib/phusion_passenger/classic_rails/application_spawner.rb:149:in `start'
passenger (3.0.11) lib/phusion_passenger/spawn_manager.rb:219:in `spawn_rails_application'
passenger (3.0.11) lib/phusion_passenger/abstract_server_collection.rb:132:in `lookup_or_add'
passenger (3.0.11) lib/phusion_passenger/spawn_manager.rb:214:in `spawn_rails_application'
passenger (3.0.11) lib/phusion_passenger/abstract_server_collection.rb:82:in `synchronize'
passenger (3.0.11) lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'
passenger (3.0.11) lib/phusion_passenger/spawn_manager.rb:213:in `spawn_rails_application'
passenger (3.0.11) lib/phusion_passenger/spawn_manager.rb:132:in `spawn_application'
passenger (3.0.11) lib/phusion_passenger/spawn_manager.rb:275:in `handle_spawn_application'
passenger (3.0.11) lib/phusion_passenger/abstract_server.rb:357:in `__send__'
passenger (3.0.11) lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop'
passenger (3.0.11) lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously'
passenger (3.0.11) helper-scripts/passenger-spawn-server:99

Rendering /var/www/redmine/public/500.html (500 Internal Server Error)

I have removed <%= favourite_project_modules_links(project) %> from line 20, and this resolves the error but then the Go to module column is empty, so that's not ideal.

I noticed that the function exists in lib/favourite_projects_application_helper_patch.rb but I am not familiar enough with Ruby to understand why it is not accessible.

Any help would be appreciated.
Thanks