Issues installing Stuff To Do Plugin
Added by Richard Brown about 14 years ago
Hi Guys,
I'm having problems installing the Stuff To Do Plugin in Redmine 0.9.
The process i've followed is..
1. Used git to download the plugin to #{RAILS_ROOT}/vendor/plugins
2. Ran rake db:migrate_plugins RAILS_ENV=production
3. Restarted Apache
The plugin is designed to setup a new Menu item - which does appear in Redmine. I can also configure the plugin successfully within "Administration > Plugins".
When I click on the Menu item to get into the plugin, I get a response back saying
---
Internal error
An error occurred on the page you were trying to access.
If you continue to experience problems please contact your redMine administrator for assistance.
---
I had a look in the error logs and this is what I get.. any help appreciated! Thanks
ActionView::TemplateError (No plugin called 'stuff_to_do_plugin' - please use the full name of a loaded plugin.) on line #34 of vendor/plugins/stuff-to-do-plugin/app/views/stuff_to_do/index.html.erb:
31: <%= render :partial => 'time_grid' if !Setting.plugin_stuff_to_do_plugin['use_time_grid'].blank? && Setting.plugin_stuff_to_do_plugin['use_time_grid'] != "0" >
32:
33: < content_for :header_tags do >
34: <= stylesheet_link_tag "stuff_to_do.css", :plugin => "stuff_to_do_plugin", :media => 'all' >
35: <= javascript_include_tag 'jquery-1.2.6.min.js', :plugin => 'stuff_to_do_plugin' >
36: <= javascript_include_tag 'ui/ui.core.js', :plugin => 'stuff_to_do_plugin' >
37: <= javascript_include_tag 'ui/ui.sortable.js', :plugin => 'stuff_to_do_plugin' %>
vendor/plugins/stuff-to-do-plugin/app/views/stuff_to_do/index.html.erb:34
app/helpers/application_helper.rb:692:in `content_for'
vendor/plugins/stuff-to-do-plugin/app/views/stuff_to_do/index.html.erb:33
passenger (2.2.15) lib/phusion_passenger/rack/request_handler.rb:92:in `process_request'
passenger (2.2.15) lib/phusion_passenger/abstract_request_handler.rb:207:in `main_loop'
passenger (2.2.15) lib/phusion_passenger/railz/application_spawner.rb:441:in `start_request_handler'
passenger (2.2.15) lib/phusion_passenger/railz/application_spawner.rb:381:in `handle_spawn_application'
passenger (2.2.15) lib/phusion_passenger/utils.rb:252:in `safe_fork'
passenger (2.2.15) lib/phusion_passenger/railz/application_spawner.rb:377:in `handle_spawn_application'
passenger (2.2.15) lib/phusion_passenger/abstract_server.rb:352:in `__send__'
passenger (2.2.15) lib/phusion_passenger/abstract_server.rb:352:in `main_loop'
passenger (2.2.15) lib/phusion_passenger/abstract_server.rb:196:in `start_synchronously'
passenger (2.2.15) lib/phusion_passenger/abstract_server.rb:163:in `start'
passenger (2.2.15) lib/phusion_passenger/railz/application_spawner.rb:222:in `start'
passenger (2.2.15) lib/phusion_passenger/spawn_manager.rb:253:in `spawn_rails_application'
passenger (2.2.15) lib/phusion_passenger/abstract_server_collection.rb:126:in `lookup_or_add'
passenger (2.2.15) lib/phusion_passenger/spawn_manager.rb:247:in `spawn_rails_application'
passenger (2.2.15) lib/phusion_passenger/abstract_server_collection.rb:80:in `synchronize'
passenger (2.2.15) lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'
passenger (2.2.15) lib/phusion_passenger/spawn_manager.rb:246:in `spawn_rails_application'
passenger (2.2.15) lib/phusion_passenger/spawn_manager.rb:145:in `spawn_application'
passenger (2.2.15) lib/phusion_passenger/spawn_manager.rb:278:in `handle_spawn_application'
passenger (2.2.15) lib/phusion_passenger/abstract_server.rb:352:in `__send__'
passenger (2.2.15) lib/phusion_passenger/abstract_server.rb:352:in `main_loop'
passenger (2.2.15) lib/phusion_passenger/abstract_server.rb:196:in `start_synchronously'
Replies (4)
RE: Issues installing Stuff To Do Plugin
-
Added by Stu MacDonald about 14 years ago
Hi,
I get the same problem.
Have you changed the folder name to: vendor/plugins/stuff-to-do-plugin ?
I'm not sure if it has something to do with Engines as I can't seem to get any other plugins to be recognized, even after triple checking that the folder is the correct name.
/Stu
RE: Issues installing Stuff To Do Plugin
-
Added by Stu MacDonald about 14 years ago
I've got a work around, it's not pretty and it's not 'good' coding but I'm new to RoR.
1. Copy all the plugin's stylesheets, javascript, images from the plugin's assets directory to redmine's public folders.
2. Remove the plugin references in index.html.erb. eg.
34: <= stylesheet_link_tag "stuff_to_do.css", :plugin => "stuff_to_do_plugin", :media => 'all' >
becomes
34: <= stylesheet_link_tag "stuff_to_do.css", :media => 'all' >
And click the 'Stuff to do' on the menu bar and it's all good.
Still a pain that the plugin is unrecognized by these commands, but the plugin itself seems to work so I'm happy.
RE: Issues installing Stuff To Do Plugin
-
Added by Holger Just about 14 years ago
Plugin names are fixed most of the time. So you have to make sure, you named the directory containing the plugin following the plugin's documentation. Most plugins use the redmine_plugin_name
standard. Stuff to do is an exception (for historical reasons). It has to be named stuff_to_do
(notice the underscores instead of hyphens).
RE: Issues installing Stuff To Do Plugin
-
Added by Stu MacDonald about 14 years ago
it was the dashes to underscore issue.
Thanks for sorting that out, it was really bugging me that I couldn't get it going.
Cheers,
Stu