Closed lnh089 closed 7 years ago
Hello,when I install this plugin,rake aborted appeared as below: [root@localhost redmine342]#rake redmine:plugins NAME=redmine_subtask_list_accordion RAILS_ENV=production rake aborted! NoMethodError: undefined method observers' for ActiveRecord::Base:Class /usr/local/rvm/gems/ruby-2.3.1/gems/activerecord-4.2.8/lib/active_record/dynamic_matchers.rb:26:inmethod_missing' /opt/redmine342/plugins/systango_hrm/init.rb:13:in block in <top (required)>' /opt/redmine342/lib/redmine/plugin.rb:75:ininstance_eval' /opt/redmine342/lib/redmine/plugin.rb:75:in register' /opt/redmine342/plugins/systango_hrm/init.rb:6:in<top (required)>' /usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in require' /usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:inblock in require' /usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:240:in load_dependency' /usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:inrequire' /opt/redmine342/lib/redmine/plugin.rb:155:in block in load' /opt/redmine342/lib/redmine/plugin.rb:146:ineach' /opt/redmine342/lib/redmine/plugin.rb:146:in load' /opt/redmine342/config/initializers/30-redmine.rb:21:in<top (required)>' /usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:268:in load' /usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:268:inblock in load' /usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:240:in load_dependency' /usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:268:inload' /usr/local/rvm/gems/ruby-2.3.1/gems/railties-4.2.8/lib/rails/engine.rb:652:in block in load_config_initializer' /usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-4.2.8/lib/active_support/notifications.rb:166:ininstrument' /usr/local/rvm/gems/ruby-2.3.1/gems/railties-4.2.8/lib/rails/engine.rb:651:in load_config_initializer' /usr/local/rvm/gems/ruby-2.3.1/gems/railties-4.2.8/lib/rails/engine.rb:616:inblock (2 levels) in ' /usr/local/rvm/gems/ruby-2.3.1/gems/railties-4.2.8/lib/rails/engine.rb:615:in each' /usr/local/rvm/gems/ruby-2.3.1/gems/railties-4.2.8/lib/rails/engine.rb:615:inblock in ' /usr/local/rvm/gems/ruby-2.3.1/gems/railties-4.2.8/lib/rails/initializable.rb:30:in instance_exec' /usr/local/rvm/gems/ruby-2.3.1/gems/railties-4.2.8/lib/rails/initializable.rb:30:inrun' /usr/local/rvm/gems/ruby-2.3.1/gems/railties-4.2.8/lib/rails/initializable.rb:55:in block in run_initializers' /usr/local/rvm/gems/ruby-2.3.1/gems/railties-4.2.8/lib/rails/initializable.rb:44:ineach' /usr/local/rvm/gems/ruby-2.3.1/gems/railties-4.2.8/lib/rails/initializable.rb:44:in tsort_each_child' /usr/local/rvm/gems/ruby-2.3.1/gems/railties-4.2.8/lib/rails/initializable.rb:54:inrun_initializers' /usr/local/rvm/gems/ruby-2.3.1/gems/railties-4.2.8/lib/rails/application.rb:352:in initialize!' /opt/redmine342/config/environment.rb:14:in<top (required)>' /usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in require' /usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:inblock in require' /usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:240:in load_dependency' /usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:inrequire' /usr/local/rvm/gems/ruby-2.3.1/gems/railties-4.2.8/lib/rails/application.rb:328:in require_environment!' /usr/local/rvm/gems/ruby-2.3.1/gems/railties-4.2.8/lib/rails/application.rb:457:inblock in run_tasks_blocks' /opt/redmine342/lib/tasks/redmine.rake:57:in block (2 levels) in <top (required)>' /usr/local/rvm/gems/ruby-2.3.1/gems/rake-12.0.0/exe/rake:27:in<top (required)>' Tasks: TOP => redmine:plugins:migrate => environment (See full trace by running task with --trace) [root@localhost redmine342]# and the environment as this: Environment: Redmine version 3.4.2.stable Ruby version 2.3.1-p112 (2016-04-26) [x86_64-linux] Rails version 4.2.8 Environment production Database adapter Mysql2 SCM: Subversion 1.8.17 Git 1.8.3.1 Filesystem Redmine plugins: _query 0.0.2 easy_wbs 2016-0.0 redmine_activity_report 1.2.9 redmine_ckeditor 1.1.4 redmine_custom_workflows 0.1.6 redmine_editauthor 0.11.0 redmine_improved_road_map 1.0 redmine_pivot_table 0.0.5 redmine_work_wechat 0.1.9
observers' for ActiveRecord::Base:Class /usr/local/rvm/gems/ruby-2.3.1/gems/activerecord-4.2.8/lib/active_record/dynamic_matchers.rb:26:in
block in <top (required)>' /opt/redmine342/lib/redmine/plugin.rb:75:in
register' /opt/redmine342/plugins/systango_hrm/init.rb:6:in
require' /usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in
load_dependency' /usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in
block in load' /opt/redmine342/lib/redmine/plugin.rb:146:in
load' /opt/redmine342/config/initializers/30-redmine.rb:21:in
load' /usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:268:in
load_dependency' /usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:268:in
block in load_config_initializer' /usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-4.2.8/lib/active_support/notifications.rb:166:in
load_config_initializer' /usr/local/rvm/gems/ruby-2.3.1/gems/railties-4.2.8/lib/rails/engine.rb:616:in
each' /usr/local/rvm/gems/ruby-2.3.1/gems/railties-4.2.8/lib/rails/engine.rb:615:in
instance_exec' /usr/local/rvm/gems/ruby-2.3.1/gems/railties-4.2.8/lib/rails/initializable.rb:30:in
block in run_initializers' /usr/local/rvm/gems/ruby-2.3.1/gems/railties-4.2.8/lib/rails/initializable.rb:44:in
tsort_each_child' /usr/local/rvm/gems/ruby-2.3.1/gems/railties-4.2.8/lib/rails/initializable.rb:54:in
initialize!' /opt/redmine342/config/environment.rb:14:in
require_environment!' /usr/local/rvm/gems/ruby-2.3.1/gems/railties-4.2.8/lib/rails/application.rb:457:in
block (2 levels) in <top (required)>' /usr/local/rvm/gems/ruby-2.3.1/gems/rake-12.0.0/exe/rake:27:in
where cause error happen? thank you .
Hello,when I install this plugin,rake aborted appeared as below: [root@localhost redmine342]#rake redmine:plugins NAME=redmine_subtask_list_accordion RAILS_ENV=production rake aborted! NoMethodError: undefined method'
/usr/local/rvm/gems/ruby-2.3.1/gems/railties-4.2.8/lib/rails/engine.rb:615:in '
/usr/local/rvm/gems/ruby-2.3.1/gems/railties-4.2.8/lib/rails/initializable.rb:30:in
observers' for ActiveRecord::Base:Class /usr/local/rvm/gems/ruby-2.3.1/gems/activerecord-4.2.8/lib/active_record/dynamic_matchers.rb:26:in
method_missing' /opt/redmine342/plugins/systango_hrm/init.rb:13:inblock in <top (required)>' /opt/redmine342/lib/redmine/plugin.rb:75:in
instance_eval' /opt/redmine342/lib/redmine/plugin.rb:75:inregister' /opt/redmine342/plugins/systango_hrm/init.rb:6:in
<top (required)>' /usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:inrequire' /usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in
block in require' /usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:240:inload_dependency' /usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in
require' /opt/redmine342/lib/redmine/plugin.rb:155:inblock in load' /opt/redmine342/lib/redmine/plugin.rb:146:in
each' /opt/redmine342/lib/redmine/plugin.rb:146:inload' /opt/redmine342/config/initializers/30-redmine.rb:21:in
<top (required)>' /usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:268:inload' /usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:268:in
block in load' /usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:240:inload_dependency' /usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:268:in
load' /usr/local/rvm/gems/ruby-2.3.1/gems/railties-4.2.8/lib/rails/engine.rb:652:inblock in load_config_initializer' /usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-4.2.8/lib/active_support/notifications.rb:166:in
instrument' /usr/local/rvm/gems/ruby-2.3.1/gems/railties-4.2.8/lib/rails/engine.rb:651:inload_config_initializer' /usr/local/rvm/gems/ruby-2.3.1/gems/railties-4.2.8/lib/rails/engine.rb:616:in
block (2 levels) ineach' /usr/local/rvm/gems/ruby-2.3.1/gems/railties-4.2.8/lib/rails/engine.rb:615:in
block ininstance_exec' /usr/local/rvm/gems/ruby-2.3.1/gems/railties-4.2.8/lib/rails/initializable.rb:30:in
run' /usr/local/rvm/gems/ruby-2.3.1/gems/railties-4.2.8/lib/rails/initializable.rb:55:inblock in run_initializers' /usr/local/rvm/gems/ruby-2.3.1/gems/railties-4.2.8/lib/rails/initializable.rb:44:in
each' /usr/local/rvm/gems/ruby-2.3.1/gems/railties-4.2.8/lib/rails/initializable.rb:44:intsort_each_child' /usr/local/rvm/gems/ruby-2.3.1/gems/railties-4.2.8/lib/rails/initializable.rb:54:in
run_initializers' /usr/local/rvm/gems/ruby-2.3.1/gems/railties-4.2.8/lib/rails/application.rb:352:ininitialize!' /opt/redmine342/config/environment.rb:14:in
<top (required)>' /usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:inrequire' /usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in
block in require' /usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:240:inload_dependency' /usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in
require' /usr/local/rvm/gems/ruby-2.3.1/gems/railties-4.2.8/lib/rails/application.rb:328:inrequire_environment!' /usr/local/rvm/gems/ruby-2.3.1/gems/railties-4.2.8/lib/rails/application.rb:457:in
block in run_tasks_blocks' /opt/redmine342/lib/tasks/redmine.rake:57:inblock (2 levels) in <top (required)>' /usr/local/rvm/gems/ruby-2.3.1/gems/rake-12.0.0/exe/rake:27:in
<top (required)>' Tasks: TOP => redmine:plugins:migrate => environment (See full trace by running task with --trace) [root@localhost redmine342]# and the environment as this: Environment: Redmine version 3.4.2.stable Ruby version 2.3.1-p112 (2016-04-26) [x86_64-linux] Rails version 4.2.8 Environment production Database adapter Mysql2 SCM: Subversion 1.8.17 Git 1.8.3.1 FilesystemRedmine plugins: _query 0.0.2 easy_wbs 2016-0.0 redmine_activity_report 1.2.9 redmine_ckeditor 1.1.4 redmine_custom_workflows 0.1.6 redmine_editauthor 0.11.0 redmine_improved_road_map 1.0 redmine_pivot_table 0.0.5 redmine_work_wechat 0.1.9
where cause error happen? thank you .