Open lanceli47 opened 9 years ago
When I run the command →rake reminder:exec[test] RAILS_ENV="production" I got the erro information, please help me, thank you
rake reminder:exec[test] RAILS_ENV="production" --trace [DEPRECATION] requiring "RMagick" is deprecated. Use "rmagick" instead * Invoke reminder:exec (first_time) * Invoke environment (first_time) * Execute environment * Execute reminder:exec rake aborted! NoMethodError: undefined method enabled_module_names' for nil:NilClass /opt/redmine-3.0.1/plugins/redmine_issue_reminder/lib/tasks/reminder.rake:9:in block (3 levels) in <top (required)>' /usr/local/share/gems/gems/activerecord-4.2.0/lib/active_record/relation/query_methods.rb:251:in block in select' /usr/local/share/gems/gems/activerecord-4.2.0/lib/active_record/relation/query_methods.rb:251:inselect' /usr/local/share/gems/gems/activerecord-4.2.0/lib/active_record/relation/query_methods.rb:251:in select' /opt/redmine-3.0.1/plugins/redmine_issue_reminder/lib/tasks/reminder.rake:9:inblock (2 levels) in <top (required)>' /usr/local/share/gems/gems/rake-10.4.2/lib/rake/task.rb:240:in call' /usr/local/share/gems/gems/rake-10.4.2/lib/rake/task.rb:240:inblock in execute' /usr/local/share/gems/gems/rake-10.4.2/lib/rake/task.rb:235:in each' /usr/local/share/gems/gems/rake-10.4.2/lib/rake/task.rb:235:inexecute' /usr/local/share/gems/gems/rake-10.4.2/lib/rake/task.rb:179:in block in invoke_ with_call_chain' /usr/share/ruby/monitor.rb:211:inmon_synchronize' /usr/local/share/gems/gems/rake-10.4.2/lib/rake/task.rb:172:in invoke_with_call _chain' /usr/local/share/gems/gems/rake-10.4.2/lib/rake/task.rb:165:ininvoke' /usr/local/share/gems/gems/rake-10.4.2/lib/rake/application.rb:150:in invoke_task' /usr/local/share/gems/gems/rake-10.4.2/lib/rake/application.rb:106:inblock (2 levels) in top_level' /usr/local/share/gems/gems/rake-10.4.2/lib/rake/application.rb:106:in each' /usr/local/share/gems/gems/rake-10.4.2/lib/rake/application.rb:106:inblock in top_level' /usr/local/share/gems/gems/rake-10.4.2/lib/rake/application.rb:115:in run_with_threads' /usr/local/share/gems/gems/rake-10.4.2/lib/rake/application.rb:100:intop_level ' /usr/local/share/gems/gems/rake-10.4.2/lib/rake/application.rb:78:in block in run' /usr/local/share/gems/gems/rake-10.4.2/lib/rake/application.rb:176:instandard_exception_handling' /usr/local/share/gems/gems/rake-10.4.2/lib/rake/application.rb:75:in run' /usr/local/share/gems/gems/rake-10.4.2/bin/rake:33:in<top (required)>' /usr/local/bin/rake:23:in load' /usr/local/bin/rake:23:in' Tasks: TOP => reminder:exec
enabled_module_names' for nil:NilClass /opt/redmine-3.0.1/plugins/redmine_issue_reminder/lib/tasks/reminder.rake:9:in
block in select' /usr/local/share/gems/gems/activerecord-4.2.0/lib/active_record/relation/query_methods.rb:251:in
select' /opt/redmine-3.0.1/plugins/redmine_issue_reminder/lib/tasks/reminder.rake:9:in
call' /usr/local/share/gems/gems/rake-10.4.2/lib/rake/task.rb:240:in
each' /usr/local/share/gems/gems/rake-10.4.2/lib/rake/task.rb:235:in
block in invoke_ with_call_chain' /usr/share/ruby/monitor.rb:211:in
invoke_with_call _chain' /usr/local/share/gems/gems/rake-10.4.2/lib/rake/task.rb:165:in
invoke_task' /usr/local/share/gems/gems/rake-10.4.2/lib/rake/application.rb:106:in
each' /usr/local/share/gems/gems/rake-10.4.2/lib/rake/application.rb:106:in
run_with_threads' /usr/local/share/gems/gems/rake-10.4.2/lib/rake/application.rb:100:in
block in run' /usr/local/share/gems/gems/rake-10.4.2/lib/rake/application.rb:176:in
run' /usr/local/share/gems/gems/rake-10.4.2/bin/rake:33:in
load' /usr/local/bin/rake:23:in
When I run the command →rake reminder:exec[test] RAILS_ENV="production" I got the erro information, please help me, thank you
rake reminder:exec[test] RAILS_ENV="production" --trace [DEPRECATION] requiring "RMagick" is deprecated. Use "rmagick" instead * Invoke reminder:exec (first_time) * Invoke environment (first_time) * Execute environment * Execute reminder:exec rake aborted! NoMethodError: undefined method'
Tasks: TOP => reminder:exec
enabled_module_names' for nil:NilClass /opt/redmine-3.0.1/plugins/redmine_issue_reminder/lib/tasks/reminder.rake:9:in
block (3 levels) in <top (required)>' /usr/local/share/gems/gems/activerecord-4.2.0/lib/active_record/relation/query_methods.rb:251:inblock in select' /usr/local/share/gems/gems/activerecord-4.2.0/lib/active_record/relation/query_methods.rb:251:in
select' /usr/local/share/gems/gems/activerecord-4.2.0/lib/active_record/relation/query_methods.rb:251:inselect' /opt/redmine-3.0.1/plugins/redmine_issue_reminder/lib/tasks/reminder.rake:9:in
block (2 levels) in <top (required)>' /usr/local/share/gems/gems/rake-10.4.2/lib/rake/task.rb:240:incall' /usr/local/share/gems/gems/rake-10.4.2/lib/rake/task.rb:240:in
block in execute' /usr/local/share/gems/gems/rake-10.4.2/lib/rake/task.rb:235:ineach' /usr/local/share/gems/gems/rake-10.4.2/lib/rake/task.rb:235:in
execute' /usr/local/share/gems/gems/rake-10.4.2/lib/rake/task.rb:179:inblock in invoke_ with_call_chain' /usr/share/ruby/monitor.rb:211:in
mon_synchronize' /usr/local/share/gems/gems/rake-10.4.2/lib/rake/task.rb:172:ininvoke_with_call _chain' /usr/local/share/gems/gems/rake-10.4.2/lib/rake/task.rb:165:in
invoke' /usr/local/share/gems/gems/rake-10.4.2/lib/rake/application.rb:150:ininvoke_task' /usr/local/share/gems/gems/rake-10.4.2/lib/rake/application.rb:106:in
block (2 levels) in top_level' /usr/local/share/gems/gems/rake-10.4.2/lib/rake/application.rb:106:ineach' /usr/local/share/gems/gems/rake-10.4.2/lib/rake/application.rb:106:in
block in top_level' /usr/local/share/gems/gems/rake-10.4.2/lib/rake/application.rb:115:inrun_with_threads' /usr/local/share/gems/gems/rake-10.4.2/lib/rake/application.rb:100:in
top_level ' /usr/local/share/gems/gems/rake-10.4.2/lib/rake/application.rb:78:inblock in run' /usr/local/share/gems/gems/rake-10.4.2/lib/rake/application.rb:176:in
standard_exception_handling' /usr/local/share/gems/gems/rake-10.4.2/lib/rake/application.rb:75:inrun' /usr/local/share/gems/gems/rake-10.4.2/bin/rake:33:in
<top (required)>' /usr/local/bin/rake:23:inload' /usr/local/bin/rake:23:in