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 #2083

Redmine 2.x support

Added by Logical And over 10 years ago. Updated almost 10 years ago.

Status:
Closed
Priority:
Critical
Assignee:
Target version:
Start date:
01 Jul 2012
Due date:
22 Oct 2012
% Done:

100%

Redmine version:
2.0.2
External issue:

Description

Add please Redmine 2 compatibility. Really need it!

/var/www/redmine/plugins/redmine_sidebar/init.rb:6:in `<top (required)>': uninitialized constant RAILS_DEFAULT_LOGGER (NameError)
        from /var/www/redmine/lib/redmine/plugin.rb:129:in `block in load'
        from /var/www/redmine/lib/redmine/plugin.rb:120:in `each'
        from /var/www/redmine/lib/redmine/plugin.rb:120:in `load'
        from /var/www/redmine/config/initializers/30-redmine.rb:13:in `<top (required)>'
        from /usr/local/rvm/gems/ruby-1.9.2-p320/gems/railties-3.2.5/lib/rails/engine.rb:588:in `block (2 levels) in <class:Engine>'
        from /usr/local/rvm/gems/ruby-1.9.2-p320/gems/railties-3.2.5/lib/rails/engine.rb:587:in `each'
        from /usr/local/rvm/gems/ruby-1.9.2-p320/gems/railties-3.2.5/lib/rails/engine.rb:587:in `block in <class:Engine>'
        from /usr/local/rvm/gems/ruby-1.9.2-p320/gems/railties-3.2.5/lib/rails/initializable.rb:30:in `instance_exec'
        from /usr/local/rvm/gems/ruby-1.9.2-p320/gems/railties-3.2.5/lib/rails/initializable.rb:30:in `run'
        from /usr/local/rvm/gems/ruby-1.9.2-p320/gems/railties-3.2.5/lib/rails/initializable.rb:55:in `block in run_initializers'
        from /usr/local/rvm/gems/ruby-1.9.2-p320/gems/railties-3.2.5/lib/rails/initializable.rb:54:in `each'
        from /usr/local/rvm/gems/ruby-1.9.2-p320/gems/railties-3.2.5/lib/rails/initializable.rb:54:in `run_initializers'
        from /usr/local/rvm/gems/ruby-1.9.2-p320/gems/railties-3.2.5/lib/rails/application.rb:136:in `initialize!'
        from /usr/local/rvm/gems/ruby-1.9.2-p320/gems/railties-3.2.5/lib/rails/railtie/configurable.rb:30:in `method_missing'
        from /var/www/redmine/config/environment.rb:18:in `<top (required)>'
        from /var/www/redmine/config.ru:4:in `require'
        from /var/www/redmine/config.ru:4:in `block in <main>'
        from /usr/local/rvm/gems/ruby-1.9.2-p320/gems/rack-1.4.1/lib/rack/builder.rb:51:in `instance_eval'
        from /usr/local/rvm/gems/ruby-1.9.2-p320/gems/rack-1.4.1/lib/rack/builder.rb:51:in `initialize'
        from /var/www/redmine/config.ru:1:in `new'
        from /var/www/redmine/config.ru:1:in `<main>'
        from /usr/local/rvm/gems/ruby-1.9.2-p320/gems/rack-1.4.1/lib/rack/builder.rb:40:in `eval'
        from /usr/local/rvm/gems/ruby-1.9.2-p320/gems/rack-1.4.1/lib/rack/builder.rb:40:in `parse_file'
        from /usr/local/rvm/gems/ruby-1.9.2-p320/gems/rack-1.4.1/lib/rack/server.rb:200:in `app'
        from /usr/local/rvm/gems/ruby-1.9.2-p320/gems/railties-3.2.5/lib/rails/commands/server.rb:46:in `app'
        from /usr/local/rvm/gems/ruby-1.9.2-p320/gems/rack-1.4.1/lib/rack/server.rb:301:in `wrapped_app'
        from /usr/local/rvm/gems/ruby-1.9.2-p320/gems/rack-1.4.1/lib/rack/server.rb:252:in `start'
        from /usr/local/rvm/gems/ruby-1.9.2-p320/gems/railties-3.2.5/lib/rails/commands/server.rb:70:in `start'
        from /usr/local/rvm/gems/ruby-1.9.2-p320/gems/railties-3.2.5/lib/rails/commands.rb:55:in `block in <top (required)>'
        from /usr/local/rvm/gems/ruby-1.9.2-p320/gems/railties-3.2.5/lib/rails/commands.rb:50:in `tap'
        from /usr/local/rvm/gems/ruby-1.9.2-p320/gems/railties-3.2.5/lib/rails/commands.rb:50:in `<top (required)>'
        from ../script/rails:6:in `require'

Associated revisions

Revision 23 (diff)
Added by Andriy Lesyuk almost 10 years ago

Added #html_safe, support for changes in #save etc (#2083)

Revision 24 (diff)
Added by Andriy Lesyuk almost 10 years ago

Added jQuery and Redmine 2.1.x support (#2083)

Revision 25 (diff)
Added by Andriy Lesyuk almost 10 years ago

Fixes for remote_form_for and link_to_remote (#2083)

Revision 28 (diff)
Added by Andriy Lesyuk almost 10 years ago

Small fix for #2083

History

#1 Updated by Andriy Lesyuk about 10 years ago

  • Status changed from New to In Progress
  • Target version set to 0.1.0
  • % Done changed from 0 to 30

Fix for this issue is in SVN already... Still working on full support.

#2 Updated by Logical And about 10 years ago

Nice, thanks!

#3 Updated by Andriy Lesyuk almost 10 years ago

  • % Done changed from 30 to 90

Damn weird issue now: Once specified the sidebar content always appears! Some Rails 3 caching stuff, I guess...

#4 Updated by David Rahusen almost 10 years ago

Hmm, I tried the latest revision 25 from SVN repository...
On executing “rake redmine:plugins:migrate RAILS_ENV=production” as usual, I still get an error. Below is the output of the rake command with option "--trace”:

** Invoke redmine:plugins:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
uninitialized constant SidebarContentHelper
/srv/www/redmine_dev/plugins/redmine-sidebar/init.rb:11:in `block in <top (required)>'
/usr/lib/ruby/gems/1.9.1/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:429:in `_run__969130062__prepare__449255308__callbacks'
/usr/lib/ruby/gems/1.9.1/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:405:in `__run_callback'
/usr/lib/ruby/gems/1.9.1/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:385:in `_run_prepare_callbacks'
/usr/lib/ruby/gems/1.9.1/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:81:in `run_callbacks'
/usr/lib/ruby/gems/1.9.1/gems/actionpack-3.2.8/lib/action_dispatch/middleware/reloader.rb:74:in `prepare!'
/usr/lib/ruby/gems/1.9.1/gems/actionpack-3.2.8/lib/action_dispatch/middleware/reloader.rb:48:in `prepare!'
/usr/lib/ruby/gems/1.9.1/gems/railties-3.2.8/lib/rails/application/finisher.rb:47:in `block in <module:Finisher>'
/usr/lib/ruby/gems/1.9.1/gems/railties-3.2.8/lib/rails/initializable.rb:30:in `instance_exec'
/usr/lib/ruby/gems/1.9.1/gems/railties-3.2.8/lib/rails/initializable.rb:30:in `run'
/usr/lib/ruby/gems/1.9.1/gems/railties-3.2.8/lib/rails/initializable.rb:55:in `block in run_initializers'
/usr/lib/ruby/gems/1.9.1/gems/railties-3.2.8/lib/rails/initializable.rb:54:in `each'
/usr/lib/ruby/gems/1.9.1/gems/railties-3.2.8/lib/rails/initializable.rb:54:in `run_initializers'
/usr/lib/ruby/gems/1.9.1/gems/railties-3.2.8/lib/rails/application.rb:136:in `initialize!'
/usr/lib/ruby/gems/1.9.1/gems/railties-3.2.8/lib/rails/railtie/configurable.rb:30:in `method_missing'
/srv/www/redmine_dev/config/environment.rb:14:in `<top (required)>'
/usr/lib/ruby/gems/1.9.1/gems/railties-3.2.8/lib/rails/application.rb:103:in `require'
/usr/lib/ruby/gems/1.9.1/gems/railties-3.2.8/lib/rails/application.rb:103:in `require_environment!'
/usr/lib/ruby/gems/1.9.1/gems/railties-3.2.8/lib/rails/application.rb:295:in `block (2 levels) in initialize_tasks'
/usr/lib/ruby/1.9.1/rake/task.rb:205:in `call'
/usr/lib/ruby/1.9.1/rake/task.rb:205:in `block in execute'
/usr/lib/ruby/1.9.1/rake/task.rb:200:in `each'
/usr/lib/ruby/1.9.1/rake/task.rb:200:in `execute'
/usr/lib/ruby/1.9.1/rake/task.rb:158:in `block in invoke_with_call_chain'
/usr/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
/usr/lib/ruby/1.9.1/rake/task.rb:151:in `invoke_with_call_chain'
/usr/lib/ruby/1.9.1/rake/task.rb:176:in `block in invoke_prerequisites'
/usr/lib/ruby/1.9.1/rake/task.rb:174:in `each'
/usr/lib/ruby/1.9.1/rake/task.rb:174:in `invoke_prerequisites'
/usr/lib/ruby/1.9.1/rake/task.rb:157:in `block in invoke_with_call_chain'
/usr/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
/usr/lib/ruby/1.9.1/rake/task.rb:151:in `invoke_with_call_chain'
/usr/lib/ruby/1.9.1/rake/task.rb:144:in `invoke'
/usr/lib/ruby/1.9.1/rake/application.rb:116:in `invoke_task'
/usr/lib/ruby/1.9.1/rake/application.rb:94:in `block (2 levels) in top_level'
/usr/lib/ruby/1.9.1/rake/application.rb:94:in `each'
/usr/lib/ruby/1.9.1/rake/application.rb:94:in `block in top_level'
/usr/lib/ruby/1.9.1/rake/application.rb:133:in `standard_exception_handling'
/usr/lib/ruby/1.9.1/rake/application.rb:88:in `top_level'
/usr/lib/ruby/1.9.1/rake/application.rb:66:in `block in run'
/usr/lib/ruby/1.9.1/rake/application.rb:133:in `standard_exception_handling'
/usr/lib/ruby/1.9.1/rake/application.rb:63:in `run'
/usr/bin/rake:32:in `<main>'
Tasks: TOP => redmine:plugins:migrate => environment

Any hints? Do I do anything wrong?

#5 Updated by David Rahusen almost 10 years ago

Ok, forget it...once again: stupid error...the directory of the plugin was named “redmine-sidebar”. After renaming it to “sidebar”, the plugin works so far.

#6 Updated by Andriy Lesyuk almost 10 years ago

  • Due date set to 22 Oct 2012
  • Status changed from In Progress to Closed
  • % Done changed from 90 to 100

Also available in: Atom PDF

Terms of use | Privacy policy