ChiliProject is not maintained anymore. Please be advised that there will be no more updates.
We do not recommend that you setup new ChiliProject instances and we urge all existing users to migrate their data to a maintained system, e.g. Redmine. We will provide a migration script later. In the meantime, you can use the instructions by Christian Daehn.
chiliproject_time_tracker Plugin Failure
Added by George Plymale at 2012-09-12 08:42 pm
We attempted to install the `chiliproject_time_tracker` plugin, however there was apparently some kind of namespacing failure that I'd hoped to get some resolution on:
ActionView::TemplateError (No plugin called 'chiliproject_time_tracker' - please use the full name of a loaded plugin.) on line #28 of app/views/layouts/base.rhtml: 25: <%= stylesheet_link_tag 'jstoolbar' %> 26: <%= heads_for_theme %> 27: <% heads_for_wiki_formatter %> 28: <%= call_hook :view_layouts_base_html_head %> 29: <!-- page specific tags --> 30: <%= yield :header_tags -%> 31: </head> lib/redmine/hook.rb:60:in `block (2 levels) in call_hook' lib/redmine/hook.rb:60:in `each' lib/redmine/hook.rb:60:in `block in call_hook' lib/redmine/hook.rb:57:in `tap' lib/redmine/hook.rb:57:in `call_hook' lib/redmine/hook.rb:141:in `call_hook' app/views/layouts/base.rhtml:28:in `_run_rhtml_app47views47layouts47base46rhtml' <internal:prelude>:10:in `synchronize' unicorn (4.3.1) lib/unicorn/http_server.rb:531:in `process_client' unicorn (4.3.1) lib/unicorn/http_server.rb:606:in `worker_loop' unicorn (4.3.1) lib/unicorn/http_server.rb:487:in `spawn_missing_workers' unicorn (4.3.1) lib/unicorn/http_server.rb:137:in `start' unicorn (4.3.1) bin/unicorn_rails:209:in `<top (required)>' /usr/local/rvm/gems/ruby-1.9.3-p194@chiliproject/bin/unicorn_rails:19:in `load' /usr/local/rvm/gems/ruby-1.9.3-p194@chiliproject/bin/unicorn_rails:19:in `<main>' /usr/local/rvm/gems/ruby-1.9.3-p194@chiliproject/bin/ruby_noexec_wrapper:14:in `eval' /usr/local/rvm/gems/ruby-1.9.3-p194@chiliproject/bin/ruby_noexec_wrapper:14:in `<main>' Rendering /home/deployer/domain/apps/chiliproject/3.3.0/public/500.html (500 Internal Server Error)
Replies (5)
RE: chiliproject_time_tracker Plugin Failure - Added by Holger Just at 2012-09-12 10:08 pm
It is very important that the name of the directory you installed the plugin to is exactly the name of the plugin, in this case chiliproject_time_tracker
. If you use any other name (e.g. with dashes instead of underscores or suffixes), you observer your error.
Note that when you rename a plugin after having run its migrations, you HAVE TO manually adapt the schema_migrations table. In there Rails remembers which migrations from which plugins it has run. If you rename a plugin (e.g. its directory) Rails will attempt to re-run its migrations on the next rake db:migrate:plugins
run, as it thinks it is a new plugin. Thus you have to rename all entries ending in your old plugin directory's name to the correct one.
You should create a full backup of your database before performing this operation!
RE: chiliproject_time_tracker Plugin Failure - Added by George Plymale at 2012-09-12 10:15 pm
Well thanks very much for that as I simply cloned the repo directly into the plugins folder and unfortunately the project name does not match up with the case sensitivity of your namespacing. Good to know!
-George
RE: chiliproject_time_tracker Plugin Failure - Added by George Plymale at 2012-09-12 10:32 pm
@Holger one more point, with regards to stepping that back, you are referring to opening up the table in mysql and removing references to chiliproject_time_tracker? Or perhaps you can give some more specific steps there to repair the issue as it seems that this isn't going as smoothly as I'd first suspected (I'd initially interpreted what you said to editing the schema.rb).
RE: chiliproject_time_tracker Plugin Failure - Added by Holger Just at 2012-09-12 10:37 pm
You have to do it directly on your database, outside of ChiliProject (e.g in a mysql
console).
But don't simply remove the entries. You have to change them. Something like this should work, but you might have to adapt the first string to the actual previous name of your plugin directory.
UPDATE schema_migrations SET version = REPLACE(version, 'ChiliProject-TimeTracker', 'chiliproject_time_tracker');
RE: chiliproject_time_tracker Plugin Failure - Added by George Plymale at 2012-09-12 11:57 pm
Perfect, thanks so much @Holger. What an excellent tool. I've pondered on perhaps building a menubar feature for ChiliProject that would facilitate a little quicker time reporting mechanism than going to a web page, but this is a super handy tool that may eliminate the strong urge I've had!!!
(1-5/5)