Project

General

Profile

A fix to a plugin installation issue

Added by Paul Schnapp almost 14 years ago

I don't know if this is the right place for this, but I recently had some trouble installing a plugin and would like to share the fix I found.

I was trying to install a todo list plugin, and was running into the following issues:

  1. The plugin was showing up in the Administrative > Plugins section
  2. An "Internal Error" (500, if I recall correctly) was being thrown when the page of the plugin was accessed
  3. The "rake db:migrate_plugins" command was trying to re-create the database table for the plugin (after it had already been created) and was erroring

From googling, it seems the "Internal Error" issue can be caused by an API mismatch between Redmine and the plugin, but that wasn't what was happening here.

In the Redmine log there were error entries related to the misbehaving plugin; it was looking for the plugin in a different directory than the one under which it had been installed.

Plugins, I guess (I'm still a Redmine n00b), use absolute pathnames, and the plugin I had installed had the wrong directory name in vendor/plugins/. So, I deleted the table it had created in the DB, changed the plugin's vendor/plugins directory name to the one in the log, and re-ran "rake db:migrate_plugins" -- now it's working fine.

Hope this saves someone else some time.

Install stats:
  • Redmine 1.0.3
  • Ruby 1.8.7
  • Rails 2.3.5
  • Rack 1.0.1
  • MySQL 5.1.52
  • Windows Server 2003