I'm looking for a part-time remote job.

Hire me


I'm the author of:

Mastering Redmine is a comprehensive guide with tips, tricks and best practices, and an easy-to-learn structure.

Check the book's project or

Buy the book

Social pages of the book:

By buying this book you also donate to Redmine (see this page).


Follow me:

Bug #2367

Compatibility to Redmine 3.0.1

Added by Marc M over 9 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
Start date:
02 Apr 2015
Due date:
06 Sep 2016
% Done:

100%

Redmine version:
3.0.1
External issue:

Description

Error when trying to migrate plugins in redmine 3.0.1:

rake redmine:plugins:migrate --trace
(in /usr/share/redmine)
** Invoke redmine:plugins:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
NoMethodError: undefined method `observers' for ActiveRecord::Base:Class
/var/lib/gems/1.9.1/gems/activerecord-4.2.1/lib/active_record/dynamic_matchers.rb:26:in `method_missing'
/usr/share/redmine/plugins/wiking/init.rb:7:in `<top (required)>'
/var/lib/gems/1.9.1/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
/var/lib/gems/1.9.1/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
/var/lib/gems/1.9.1/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:274:in `block in require'
/var/lib/gems/1.9.1/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:240:in `load_dependency'
/var/lib/gems/1.9.1/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:274:in `require'
/usr/share/redmine/lib/redmine/plugin.rb:155:in `block in load'
/usr/share/redmine/lib/redmine/plugin.rb:146:in `each'
/usr/share/redmine/lib/redmine/plugin.rb:146:in `load'
/usr/share/redmine/config/initializers/30-redmine.rb:21:in `<top (required)>'
/var/lib/gems/1.9.1/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:268:in `load'
/var/lib/gems/1.9.1/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:268:in `block in load'
/var/lib/gems/1.9.1/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:240:in `load_dependency'
/var/lib/gems/1.9.1/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:268:in `load'
/var/lib/gems/1.9.1/gems/railties-4.2.1/lib/rails/engine.rb:652:in `block in load_config_initializer'
/var/lib/gems/1.9.1/gems/activesupport-4.2.1/lib/active_support/notifications.rb:166:in `instrument'
/var/lib/gems/1.9.1/gems/railties-4.2.1/lib/rails/engine.rb:651:in `load_config_initializer'
/var/lib/gems/1.9.1/gems/railties-4.2.1/lib/rails/engine.rb:616:in `block (2 levels) in <class:Engine>'
/var/lib/gems/1.9.1/gems/railties-4.2.1/lib/rails/engine.rb:615:in `each'
/var/lib/gems/1.9.1/gems/railties-4.2.1/lib/rails/engine.rb:615:in `block in <class:Engine>'
/var/lib/gems/1.9.1/gems/railties-4.2.1/lib/rails/initializable.rb:30:in `instance_exec'
/var/lib/gems/1.9.1/gems/railties-4.2.1/lib/rails/initializable.rb:30:in `run'
/var/lib/gems/1.9.1/gems/railties-4.2.1/lib/rails/initializable.rb:55:in `block in run_initializers'
/usr/lib/ruby/1.9.1/tsort.rb:150:in `block in tsort_each'
/usr/lib/ruby/1.9.1/tsort.rb:183:in `block (2 levels) in each_strongly_connected_component'
/usr/lib/ruby/1.9.1/tsort.rb:210:in `block (2 levels) in each_strongly_connected_component_from'
/usr/lib/ruby/1.9.1/tsort.rb:219:in `each_strongly_connected_component_from'
/usr/lib/ruby/1.9.1/tsort.rb:209:in `block in each_strongly_connected_component_from'
/var/lib/gems/1.9.1/gems/railties-4.2.1/lib/rails/initializable.rb:44:in `each'
/var/lib/gems/1.9.1/gems/railties-4.2.1/lib/rails/initializable.rb:44:in `tsort_each_child'
/usr/lib/ruby/1.9.1/tsort.rb:203:in `each_strongly_connected_component_from'
/usr/lib/ruby/1.9.1/tsort.rb:182:in `block in each_strongly_connected_component'
/usr/lib/ruby/1.9.1/tsort.rb:180:in `each'
/usr/lib/ruby/1.9.1/tsort.rb:180:in `each_strongly_connected_component'
/usr/lib/ruby/1.9.1/tsort.rb:148:in `tsort_each'
/var/lib/gems/1.9.1/gems/railties-4.2.1/lib/rails/initializable.rb:54:in `run_initializers'
/var/lib/gems/1.9.1/gems/railties-4.2.1/lib/rails/application.rb:352:in `initialize!'
/usr/share/redmine/config/environment.rb:16:in `<top (required)>'
/var/lib/gems/1.9.1/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
/var/lib/gems/1.9.1/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
/var/lib/gems/1.9.1/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:274:in `block in require'
/var/lib/gems/1.9.1/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:240:in `load_dependency'
/var/lib/gems/1.9.1/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:274:in `require'
/var/lib/gems/1.9.1/gems/railties-4.2.1/lib/rails/application.rb:328:in `require_environment!'
/var/lib/gems/1.9.1/gems/railties-4.2.1/lib/rails/application.rb:457:in `block in run_tasks_blocks'
/var/lib/gems/1.9.1/gems/rake-10.4.2/lib/rake/task.rb:240:in `call'
/var/lib/gems/1.9.1/gems/rake-10.4.2/lib/rake/task.rb:240:in `block in execute'
/var/lib/gems/1.9.1/gems/rake-10.4.2/lib/rake/task.rb:235:in `each'
/var/lib/gems/1.9.1/gems/rake-10.4.2/lib/rake/task.rb:235:in `execute'
/var/lib/gems/1.9.1/gems/rake-10.4.2/lib/rake/task.rb:179:in `block in invoke_with_call_chain'
/usr/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
/var/lib/gems/1.9.1/gems/rake-10.4.2/lib/rake/task.rb:172:in `invoke_with_call_chain'
/var/lib/gems/1.9.1/gems/rake-10.4.2/lib/rake/task.rb:201:in `block in invoke_prerequisites'
/var/lib/gems/1.9.1/gems/rake-10.4.2/lib/rake/task.rb:199:in `each'
/var/lib/gems/1.9.1/gems/rake-10.4.2/lib/rake/task.rb:199:in `invoke_prerequisites'
/var/lib/gems/1.9.1/gems/rake-10.4.2/lib/rake/task.rb:178:in `block in invoke_with_call_chain'
/usr/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
/var/lib/gems/1.9.1/gems/rake-10.4.2/lib/rake/task.rb:172:in `invoke_with_call_chain'
/var/lib/gems/1.9.1/gems/rake-10.4.2/lib/rake/task.rb:165:in `invoke'
/var/lib/gems/1.9.1/gems/rake-10.4.2/lib/rake/application.rb:150:in `invoke_task'
/var/lib/gems/1.9.1/gems/rake-10.4.2/lib/rake/application.rb:106:in `block (2 levels) in top_level'
/var/lib/gems/1.9.1/gems/rake-10.4.2/lib/rake/application.rb:106:in `each'
/var/lib/gems/1.9.1/gems/rake-10.4.2/lib/rake/application.rb:106:in `block in top_level'
/var/lib/gems/1.9.1/gems/rake-10.4.2/lib/rake/application.rb:115:in `run_with_threads'
/var/lib/gems/1.9.1/gems/rake-10.4.2/lib/rake/application.rb:100:in `top_level'
/var/lib/gems/1.9.1/gems/rake-10.4.2/lib/rake/application.rb:78:in `block in run'
/var/lib/gems/1.9.1/gems/rake-10.4.2/lib/rake/application.rb:176:in `standard_exception_handling'
/var/lib/gems/1.9.1/gems/rake-10.4.2/lib/rake/application.rb:75:in `run'
/var/lib/gems/1.9.1/gems/rake-10.4.2/bin/rake:33:in `<top (required)>'
/usr/local/bin/rake:19:in `load'
/usr/local/bin/rake:19:in `<main>'
Tasks: TOP => redmine:plugins:migrate => environment

wiking_redmine30.patch View - Patch for Redmine 3.0 (4.31 KB) Massimo Rossello, 15 Apr 2015 08:48


Related issues

Related to WikiNG - Bug #2387: Err with Redmine 3.04 (Mention/User Profile Page and Custom WIKI Makro) Closed 15 Jul 2015 06 Sep 2016
Related to WikiNG - Enhancement #2397: Support for Redmine 3.1 Closed 29 Sep 2015
Related to WikiNG - Bug #2403: Patch to support Redmine 3.2 / Rails 4 Closed 16 Dec 2017
Related to WikiNG - Bug #2412: Links to issue notes do now work Closed

Associated revisions

Revision 79 (diff)
Added by Andriy Lesyuk over 8 years ago

Fixes for Redmine 3.0 (#2367, #2387, #2397, #2403)

Revision 80 (diff)
Added by Andriy Lesyuk about 8 years ago

Add attr_protected (#2367, #2387, #2397, #2403)

History

#1 Updated by Massimo Rossello over 9 years ago

Hi,
I worked out these patches for the plugin to work under Redmine 3.0.

Please note that Redmine 3.0 requires Ruby at least version 1.9.3.

#2 Updated by Marc M over 9 years ago

Hi,

i will test the patches in the next few days.

And thanks for the hint, i will update ist asap

#3 Updated by Marc M over 9 years ago

The patch solves the issue, thank you!

btw: Ruby 1.9.3 is installed, explanation why the path is different : http://stackoverflow.com/questions/8564210/why-are-we-installing-ruby-1-9-2-1-9-3-gems-into-a-1-9-1-folder

#4 Updated by minkbear minkbear about 9 years ago

I have tested wiking 1.0.0b + the patch with redmine 3.1.1. It works fine.

Thanks

#5 Updated by Andriy Lesyuk over 8 years ago

  • Description updated (diff)
  • Status changed from New to Open
  • Target version set to 1.1.0

#6 Updated by Andriy Lesyuk about 8 years ago

  • Related to Bug #2412: Links to issue notes do now work added

#7 Updated by Andriy Lesyuk about 7 years ago

  • Due date set to 06 Sep 2016
  • Status changed from Open to Closed
  • % Done changed from 0 to 100

This was fixed in r79.

Also available in: Atom PDF

Terms of use | Privacy policy