Undefined gantt_items_limit (just upgraded to 1.1.0)
Added by Nikola Kotur over 13 years ago
Hi, there.
I am getting this error when trying to view Gantt:
Processing GanttsController#show (for 91.150.124.251 at 2011-01-10 10:36:41) [GET] Parameters: {"project_id"=>"robbypet", "action"=>"show", "controller"=>"gantts"} NoMethodError (undefined method `gantt_items_limit' for #<Class:0x7f7f7e8960c0>): lib/redmine/helpers/gantt.rb:81:in `initialize' app/controllers/gantts_controller.rb:17:in `new' app/controllers/gantts_controller.rb:17:in `show' passenger (2.2.15) lib/phusion_passenger/rack/request_handler.rb:92:in `process_request' passenger (2.2.15) lib/phusion_passenger/abstract_request_handler.rb:207:in `main_loop' passenger (2.2.15) lib/phusion_passenger/railz/application_spawner.rb:441:in `start_request_handler' passenger (2.2.15) lib/phusion_passenger/railz/application_spawner.rb:381:in `handle_spawn_application' passenger (2.2.15) lib/phusion_passenger/utils.rb:252:in `safe_fork' passenger (2.2.15) lib/phusion_passenger/railz/application_spawner.rb:377:in `handle_spawn_application' passenger (2.2.15) lib/phusion_passenger/abstract_server.rb:352:in `__send__' passenger (2.2.15) lib/phusion_passenger/abstract_server.rb:352:in `main_loop' passenger (2.2.15) lib/phusion_passenger/abstract_server.rb:196:in `start_synchronously' passenger (2.2.15) lib/phusion_passenger/abstract_server.rb:163:in `start' passenger (2.2.15) lib/phusion_passenger/railz/application_spawner.rb:222:in `start' passenger (2.2.15) lib/phusion_passenger/spawn_manager.rb:253:in `spawn_rails_application' passenger (2.2.15) lib/phusion_passenger/abstract_server_collection.rb:126:in `lookup_or_add' passenger (2.2.15) lib/phusion_passenger/spawn_manager.rb:247:in `spawn_rails_application' passenger (2.2.15) lib/phusion_passenger/abstract_server_collection.rb:80:in `synchronize' passenger (2.2.15) lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize' passenger (2.2.15) lib/phusion_passenger/spawn_manager.rb:246:in `spawn_rails_application' passenger (2.2.15) lib/phusion_passenger/spawn_manager.rb:145:in `spawn_application' passenger (2.2.15) lib/phusion_passenger/spawn_manager.rb:278:in `handle_spawn_application' passenger (2.2.15) lib/phusion_passenger/abstract_server.rb:352:in `__send__' passenger (2.2.15) lib/phusion_passenger/abstract_server.rb:352:in `main_loop' passenger (2.2.15) lib/phusion_passenger/abstract_server.rb:196:in `start_synchronously' Rendering /opt/redmine/public/500.html (500 Internal Server Error)
I searched, but there's no gantt_items_limit method anywhere in Redmine 1.1.0 installation. What could this be?
Replies (4)
RE: Undefined gantt_items_limit (just upgraded to 1.1.0)
-
Added by Nikola Kotur over 13 years ago
Other info:
$ RAILS_ENV=development script/about
/opt/redmine/config/../vendor/rails/railties/lib/rails/gem_dependency.rb:119:Warning: Gem::Dependency#version_requirements is deprecated and will be removed on or after August 2010. Use #requirement
About your application's environment
Ruby version 1.8.7 (x86_64-linux)
RubyGems version 1.3.6
Rack version 1.0
Rails version 2.3.5
Active Record version 2.3.5
Active Resource version 2.3.5
Action Mailer version 2.3.5
Active Support version 2.3.5
Edge Rails revision unknown
Application root /opt/redmine
Environment development
Database adapter mysql
Database schema version 20101114115359
About your Redmine plugins
Redmine Time Tracker plugin 0.3
Redmine Local Avatars plugin 0.1.0
Redmine Work Time plugin 0.0.62
Environmnet CSS 0.1
RE: Undefined gantt_items_limit (just upgraded to 1.1.0)
-
Added by Nikola Kotur over 13 years ago
Just solved this.
For anyone else that might have the same issue, this is the solution. Upgrade documentation states that you shouldn't overwrite settings.yml, which is true, but you should add this, if you're upgrading from 1.0.5, as I did:
gantt_items_limit: format: int default: 500 default_notification_option: default: 'only_my_events' emails_header: default: '' commit_logtime_enabled: default: 0 commit_logtime_activity_id: format: int default: 0
RE: Undefined gantt_items_limit (just upgraded to 1.1.0)
-
Added by Ivan Cenov over 13 years ago
This is why I do 'winmerge' of the old 'settings.yml' and new 'settings.yml.example'. This way I keep my settings and add the new items that have been added.
RE: Undefined gantt_items_limit (just upgraded to 1.1.0)
-
Added by Nikola Kotur over 13 years ago
Yeah, but I think that Redmine should include separate settings-defaults.yml, which will be overridden with settings.yml, for cases like this.