Project

General

Profile

Redmine don't start (undefined method 'autoload_paths=' for...)

Added by Alexandr Kohskin over 13 years ago

Hello!

OS: Ubuntu 10.10

I install ruby, rails, some gems, redmine.
Create site for redmine (with fcgi interface)
and when try to start it, i get Error 500.

In log I have information:
[Fri Mar 25 17:51:49 2011] [notice] Apache/2.2.16 (Ubuntu) mod_fcgid/2.3.5 PHP/5.3.3-1ubuntu9.3 with Suhosin-Patch configured -- resuming normal operations
/var/lib/gems/1.8/gems/rails-2.3.11/lib/initializer.rb:249:in `set_autoload_paths': undefined method `autoload_paths=' for ActiveSupport::Dependencies:Module (NoMethodError)
from /var/lib/gems/1.8/gems/rails-2.3.11/lib/initializer.rb:135:in `process'
from /var/lib/gems/1.8/gems/rails-2.3.11/lib/initializer.rb:113:in `send'
from /var/lib/gems/1.8/gems/rails-2.3.11/lib/initializer.rb:113:in `run'
from /var/www/projects.activestudio.ru/../config/environment.rb:20
from /var/www/projects.activestudio.ru/dispatch.fcgi:21:in `require'
from /var/www/projects.activestudio.ru/dispatch.fcgi:21

Can anybody help me?


Replies (28)

RE: Redmine don't start (undefined method 'autoload_paths=' for...) - Added by Petr Losa over 13 years ago

I have a same problem. How you fix this ? After install tmail I get a same error.

RE: Redmine don't start (undefined method 'autoload_paths=' for...) - Added by Alexandr Kohskin over 13 years ago

I think - there are two needfull steps

1. Remove all addition gems, leave only:
actionmailer (2.3.5)
actionpack (2.3.5)
activerecord (2.3.5)
activeresource (2.3.5)
activesupport (2.3.5)
fcgi (0.8.8)
i18n (0.4.2)
mail (2.2.15)
mime-types (1.16)
mysql (2.8.1)
rack (1.0.1)
rails (2.3.5)
rake (0.8.7)

Check versions!

2. Add TMail gem, version 1.2.7.1

3. Replace config.autoload_paths= with config.load_paths= in you file config/environment.rb, that should do the trick, but you should have no such line with redmine 1.1.2.

I do it in march, may be now some soft are upgraded, but I leave it: "Dont't touch, it's working":)))

(26-28/28)