Closed dpanda closed 11 years ago
Have you run the plugin migrations, as described in the documentation? http://www.redmine.org/projects/redmine/wiki/Plugins
Yes, i did, I got this output:
root@dev:/var/www/redmine/plugins/redmine_default_assign# rake redmine:plugins:migrate NAME=redmine_default_assign VERSION=0 RAILS_ENV=production
(in /mnt/data2/redmine)
Migrating redmine_default_assign (Default Assign plugin)...
This is some very odd stuff. Are you sure it's connecting to the right database? Was everything working fine before the plugin was installed?
Everything was fine, and this is the only plugin I've installed so far.
The user I selected as default was a group, but then I also tried with a regular user and got the same error. The users belong to the project.
Do you have an admin interface such as phpPgAdmin or phpMyAdmin installed, or something similar that you can inspect your database with? That first error message about the default_assignee_id
method being missing is a very strong indicator that the corresponding column is missing in the database, which would mean that for some reason the migration failed.
You are right, the default_assignee_id
column was missing, I created it manually. Thank you.
Now I can access settings page, but only if I choose a User as default assegnee; if I choose a Group, I still got the error, and a message like this:
ActiveRecord::RecordNotFound (Couldn't find User with id=48 [WHERE `users`.`type` IN ('User', 'AnonymousUser')]):
I think it should look for users also in Group, besides User and AnonymousUser (or Group user should be removed from the dropdown menu when making the selection).
You're right; that's a genuine bug. I'll get it fixed.
This should be fixed now, in the 0.4 tag. Thanks for reporting :)
After pluigin installation, I can no longer reach a project's settings page.
If I do not choose a default assignee in plugin configuration, I get a 500 error with these log messages:
If I choose a default assignee, I get a 404 error, althought I still see a 500 error in the logs: