dr-itz / RedminePlannerPlugin

Resource planning plugin for Redmine 2.x/3.x - UNMAINTAINED
Other
42 stars 22 forks source link

Unable to run on Redmine 2.4.2: undefined method `eager_load_namespaces' #17

Closed xaionaro closed 10 years ago

xaionaro commented 10 years ago

Hello. Unable to run on Redmine 2.4.2 :(

undefined method `eager_load_namespaces' for #<Rails::Railtie::Configuration:0x000000010b4338> (NoMethodError)
  /usr/lib/ruby/vendor_ruby/rails/railtie/configuration.rb:85:in `method_missing'
  /var/lib/gems/1.9.1/gems/activesupport-4.0.4/lib/active_support/railtie.rb:8:in `<class:Railtie>'
  /var/lib/gems/1.9.1/gems/activesupport-4.0.4/lib/active_support/railtie.rb:5:in `<module:ActiveSupport>'
  /var/lib/gems/1.9.1/gems/activesupport-4.0.4/lib/active_support/railtie.rb:4:in `<top (required)>'
  /usr/lib/ruby/vendor_ruby/rails.rb:13:in `require'
  /usr/lib/ruby/vendor_ruby/rails.rb:13:in `<top (required)>'
  /usr/lib/ruby/vendor_ruby/rails/all.rb:1:in `require'
  /usr/lib/ruby/vendor_ruby/rails/all.rb:1:in `<top (required)>'
  /usr/share/redmine/config/application.rb:3:in `require'
  /usr/share/redmine/config/application.rb:3:in `<top (required)>'
  /usr/share/redmine/config/environment.rb:2:in `require'
  /usr/share/redmine/config/environment.rb:2:in `<top (required)>'
  config.ru:3:in `require'
  config.ru:3:in `block in <main>'
  /usr/lib/ruby/vendor_ruby/rack/builder.rb:51:in `instance_eval'
  /usr/lib/ruby/vendor_ruby/rack/builder.rb:51:in `initialize'
  config.ru:1:in `new'
  config.ru:1:in `<main>'
  /usr/share/passenger/helper-scripts/rack-preloader.rb:112:in `eval'
  /usr/share/passenger/helper-scripts/rack-preloader.rb:112:in `preload_app'
  /usr/share/passenger/helper-scripts/rack-preloader.rb:158:in `<module:App>'
  /usr/share/passenger/helper-scripts/rack-preloader.rb:29:in `<module:PhusionPassenger>'
  /usr/share/passenger/helper-scripts/rack-preloader.rb:28:in `<main>'
dr-itz commented 10 years ago

Hmm...'eager_load_namespaces' is not something the plugin uses...But then again I never tried it on Redmine 2.3 or later). Will look into it.

dr-itz commented 10 years ago

Not reproducible here with Redmine 2.4.5 on Ruby 2.0.0.

From the backtrace I'm guessing you are using a system provided ruby version. Did you use "bundler" to install the gems? I'm asking because the path of railtie/configuration looks strange compared to the activesupport stuff. I'm quite sure you've got incompatible versions mixed up there...

I generally suggest to install Ruby via RVM these days as the system provided versions are problematic, especially on Debian/Ubuntu. I could provide complete install instructions, including RVM, Redmine and Passenger if you like, but earliest Monday.

dr-itz commented 10 years ago

This is definitively a problem in the installation: activesupport-4.0.4 is Rails 4, but Redmine still uses Rails 3.2.x. Use 'bundle install' in the Redmine root directory to fix it.