Closed archonwang closed 7 years ago
Hey Steven, did you run the database update command?
bundle exec rake redmine:plugins:migrate RAILS_ENV=production
@wesoccer2003 , yes, I do the migrate before I tried the plugin. I installed it within my old data. or should I update these data?
I can look at it more later, but for now, if you change line 54 in the file (contracts/lib/contracts/hooks/hooks.rb) to:
last_run = nil
And then try to login, it should work. And then once you login, you can change that line of code back to its original.
Try that and let me know how that works.
@wesoccer2003 Unfortunately, it seems still not OK
error log when I log into redmine
Successful authentication for 'hui.wang' from 192.168.60.238 at 2017-03-20 06:57:04 UTC
Completed 500 Internal Server Error in 58ms (ActiveRecord: 8.4ms)
NoMethodError (undefined method `update' for "":String):
plugins/contracts/lib/contracts/hooks/hooks.rb:84:in `controller_account_success_authentication_after'
lib/redmine/hook.rb:61:in `block (2 levels) in call_hook'
lib/redmine/hook.rb:61:in `each'
lib/redmine/hook.rb:61:in `block in call_hook'
lib/redmine/hook.rb:58:in `tap'
lib/redmine/hook.rb:58:in `call_hook'
lib/redmine/hook.rb:91:in `call_hook'
app/controllers/account_controller.rb:272:in `successful_authentication'
app/controllers/account_controller.rb:213:in `password_authentication'
app/controllers/account_controller.rb:199:in `authenticate_user'
app/controllers/account_controller.rb:40:in `login'
lib/redmine/sudo_mode.rb:63:in `sudo_mode'
Try commenting out line 84 as well.
On Mar 20, 2017, at 2:59 AM, Steven.W notifications@github.com wrote:
@wesoccer2003 Unfortunately, it seems still not OK
error log when I log into redmine
Successful authentication for 'hui.wang' from 192.168.60.238 at 2017-03-20 06:57:04 UTC Completed 500 Internal Server Error in 58ms (ActiveRecord: 8.4ms) NoMethodError (undefined method
update' for "":String): plugins/contracts/lib/contracts/hooks/hooks.rb:84:in
controller_account_success_authentication_after' lib/redmine/hook.rb:61:inblock (2 levels) in call_hook' lib/redmine/hook.rb:61:in
each' lib/redmine/hook.rb:61:inblock in call_hook' lib/redmine/hook.rb:58:in
tap' lib/redmine/hook.rb:58:incall_hook' lib/redmine/hook.rb:91:in
call_hook' app/controllers/account_controller.rb:272:insuccessful_authentication' app/controllers/account_controller.rb:213:in
password_authentication' app/controllers/account_controller.rb:199:inauthenticate_user' app/controllers/account_controller.rb:40:in
login' lib/redmine/sudo_mode.rb:63:in `sudo_mode' — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.
@wesoccer2003 Thanks. I tested it and it passed with the workaround.
by the way, there's still some question that I have something confused.
Hi, @upgradeya , @FireMartZ , I have installed the plugin new version, and found it could not log into redmine. any ideas?
I got the error log as follows