hicknhack-software / redmine_time_tracker

A time tracker plugin for Redmine
Other
106 stars 32 forks source link

undefined method `apply_status_transition' #45

Closed segero closed 11 years ago

segero commented 11 years ago

Started POST "/time_trackers/start" for 178.94.172.43 at Tue Jan 15 23:56:12 +0200 2013 Processing by TimeTrackersController#start as HTML Parameters: {"utf8"=>"✓", "time_tracker"=>{"comments"=>"#7290 Issue name"}, "commit"=>"start", "authenticity_token"=>"3RpXCcbF6saTx8nOaaRfoDkVCyFGd92+sZIYV4RMUes="} Current user: segero (id=5) Completed 500 Internal Server Error in 169ms

NoMethodError (undefined method apply_status_transition' for #<TimeTrackersController:0xb42093d8>): plugins/redmine_time_tracker/app/controllers/time_trackers_controller.rb:34:instart' actionpack (3.2.11) lib/action_controller/metal/implicit_render.rb:4:in send_action' actionpack (3.2.11) lib/action_controller/metal/implicit_render.rb:4:insend_action' actionpack (3.2.11) lib/abstract_controller/base.rb:167:in process_action' actionpack (3.2.11) lib/action_controller/metal/rendering.rb:10:inprocess_action' actionpack (3.2.11) lib/abstract_controller/callbacks.rb:18:in process_action' activesupport (3.2.11) lib/active_support/callbacks.rb:480:in_run831980884process_action401520816callbacks' activesupport (3.2.11) lib/active_support/callbacks.rb:405:in send' activesupport (3.2.11) lib/active_support/callbacks.rb:405:inrun_callback' activesupport (3.2.11) lib/active_support/callbacks.rb:385:in _run_process_action_callbacks' activesupport (3.2.11) lib/active_support/callbacks.rb:81:insend' activesupport (3.2.11) lib/active_support/callbacks.rb:81:in run_callbacks' actionpack (3.2.11) lib/abstract_controller/callbacks.rb:17:inprocess_action' actionpack (3.2.11) lib/action_controller/metal/rescue.rb:29:in process_action' actionpack (3.2.11) lib/action_controller/metal/instrumentation.rb:30:inprocess_action' activesupport (3.2.11) lib/active_support/notifications.rb:123:in instrument' activesupport (3.2.11) lib/active_support/notifications/instrumenter.rb:20:ininstrument' activesupport (3.2.11) lib/active_support/notifications.rb:123:in instrument' actionpack (3.2.11) lib/action_controller/metal/instrumentation.rb:29:inprocess_action' actionpack (3.2.11) lib/action_controller/metal/params_wrapper.rb:207:in process_action' activerecord (3.2.11) lib/active_record/railties/controller_runtime.rb:18:inprocess_action' actionpack (3.2.11) lib/abstract_controller/base.rb:121:in process' actionpack (3.2.11) lib/abstract_controller/rendering.rb:45:inprocess' actionpack (3.2.11) lib/action_controller/metal.rb:203:in dispatch' actionpack (3.2.11) lib/action_controller/metal/rack_delegation.rb:14:indispatch' actionpack (3.2.11) lib/action_controller/metal.rb:246:in action' actionpack (3.2.11) lib/action_dispatch/routing/route_set.rb:73:incall' actionpack (3.2.11) lib/action_dispatch/routing/route_set.rb:73:in dispatch' actionpack (3.2.11) lib/action_dispatch/routing/route_set.rb:36:incall' journey (1.0.4) lib/journey/router.rb:68:in call' journey (1.0.4) lib/journey/router.rb:56:ineach' journey (1.0.4) lib/journey/router.rb:56:in call' actionpack (3.2.11) lib/action_dispatch/routing/route_set.rb:601:incall' rack-openid (1.3.1) lib/rack/openid.rb:98:in call' actionpack (3.2.11) lib/action_dispatch/middleware/best_standards_support.rb:17:incall' rack (1.4.4) lib/rack/etag.rb:23:in call' rack (1.4.4) lib/rack/conditionalget.rb:35:incall' actionpack (3.2.11) lib/action_dispatch/middleware/head.rb:14:in call' actionpack (3.2.11) lib/action_dispatch/middleware/params_parser.rb:21:incall' actionpack (3.2.11) lib/action_dispatch/middleware/flash.rb:242:in call' rack (1.4.4) lib/rack/session/abstract/id.rb:210:incontext' rack (1.4.4) lib/rack/session/abstract/id.rb:205:in call' actionpack (3.2.11) lib/action_dispatch/middleware/cookies.rb:341:incall' activerecord (3.2.11) lib/active_record/query_cache.rb:64:in call' activerecord (3.2.11) lib/active_record/connection_adapters/abstract/connection_pool.rb:479:incall' actionpack (3.2.11) lib/action_dispatch/middleware/callbacks.rb:28:in call' activesupport (3.2.11) lib/active_support/callbacks.rb:405:in_run411742061call4callbacks' activesupport (3.2.11) lib/active_support/callbacks.rb:405:in send' activesupport (3.2.11) lib/active_support/callbacks.rb:405:inrun_callback' activesupport (3.2.11) lib/active_support/callbacks.rb:385:in _run_call_callbacks' activesupport (3.2.11) lib/active_support/callbacks.rb:81:insend' activesupport (3.2.11) lib/active_support/callbacks.rb:81:in run_callbacks' actionpack (3.2.11) lib/action_dispatch/middleware/callbacks.rb:27:incall' actionpack (3.2.11) lib/action_dispatch/middleware/remote_ip.rb:31:in call' actionpack (3.2.11) lib/action_dispatch/middleware/debug_exceptions.rb:16:incall' actionpack (3.2.11) lib/action_dispatch/middleware/show_exceptions.rb:56:in call' railties (3.2.11) lib/rails/rack/logger.rb:32:incall_app' railties (3.2.11) lib/rails/rack/logger.rb:16:in call' activesupport (3.2.11) lib/active_support/tagged_logging.rb:22:intagged' railties (3.2.11) lib/rails/rack/logger.rb:16:in call' actionpack (3.2.11) lib/action_dispatch/middleware/request_id.rb:22:incall' rack (1.4.4) lib/rack/methodoverride.rb:21:in call' rack (1.4.4) lib/rack/runtime.rb:17:incall' activesupport (3.2.11) lib/active_support/cache/strategy/local_cache.rb:72:in call' rack (1.4.4) lib/rack/lock.rb:15:incall' actionpack (3.2.11) lib/action_dispatch/middleware/static.rb:62:in call' rack-cache (1.2) lib/rack/cache/context.rb:136:inforward' rack-cache (1.2) lib/rack/cache/context.rb:143:in pass' rack-cache (1.2) lib/rack/cache/context.rb:155:ininvalidate' rack-cache (1.2) lib/rack/cache/context.rb:71:in call!' rack-cache (1.2) lib/rack/cache/context.rb:51:incall' railties (3.2.11) lib/rails/engine.rb:479:in call' railties (3.2.11) lib/rails/application.rb:223:incall' railties (3.2.11) lib/rails/railtie/configurable.rb:30:in send' railties (3.2.11) lib/rails/railtie/configurable.rb:30:inmethod_missing' passenger (3.0.18) lib/phusion_passenger/rack/request_handler.rb:96:in process_request' passenger (3.0.18) lib/phusion_passenger/abstract_request_handler.rb:516:inaccept_and_process_next_request' passenger (3.0.18) lib/phusion_passenger/abstract_request_handler.rb:274:in main_loop' passenger (3.0.18) lib/phusion_passenger/rack/application_spawner.rb:206:instart_request_handler' passenger (3.0.18) lib/phusion_passenger/rack/application_spawner.rb:171:in send' passenger (3.0.18) lib/phusion_passenger/rack/application_spawner.rb:171:inhandle_spawn_application' passenger (3.0.18) lib/phusion_passenger/utils.rb:470:in safe_fork' passenger (3.0.18) lib/phusion_passenger/rack/application_spawner.rb:166:inhandle_spawn_application' passenger (3.0.18) lib/phusion_passenger/abstract_server.rb:357:in __send__' passenger (3.0.18) lib/phusion_passenger/abstract_server.rb:357:inserver_main_loop' passenger (3.0.18) lib/phusion_passenger/abstract_server.rb:206:instart_synchronously' passenger (3.0.18) lib/phusion_passenger/abstract_server.rb:180:instart' passenger (3.0.18) lib/phusion_passenger/rack/application_spawner.rb:129:instart' passenger (3.0.18) lib/phusion_passenger/spawn_manager.rb:253:inspawn_rack_application' passenger (3.0.18) lib/phusion_passenger/abstract_server_collection.rb:132:inlookup_or_add' passenger (3.0.18) lib/phusion_passenger/spawn_manager.rb:246:inspawn_rack_application' passenger (3.0.18) lib/phusion_passenger/abstract_server_collection.rb:82:insynchronize' passenger (3.0.18) lib/phusion_passenger/abstract_server_collection.rb:79:insynchronize' passenger (3.0.18) lib/phusion_passenger/spawn_manager.rb:244:inspawn_rack_application' passenger (3.0.18) lib/phusion_passenger/spawn_manager.rb:137:inspawn_application' passenger (3.0.18) lib/phusion_passenger/spawn_manager.rb:275:inhandle_spawn_application' passenger (3.0.18) lib/phusion_passenger/abstract_server.rb:357:insend' passenger (3.0.18) lib/phusion_passenger/abstract_server.rb:357:inserver_main_loop' passenger (3.0.18) lib/phusion_passenger/abstract_server.rb:206:instart_synchronously' passenger (3.0.18) helper-scripts/passenger-spawn-server:99

Environment: Redmine version 2.2.1.stable Ruby version 1.8.7 (i686-linux) Rails version 3.2.11 Environment production Database adapter PostgreSQL Redmine plugins: redmine_inline_attach_screenshot 0.4.2 redmine_issue_checklist 2.0.3 redmine_static_link 0.1.0 redmine_time_tracker 0.6.2 sidebar_hide 0.0.1 timelog_timer 1.0.0

Also I do not have start in issue context menu. And I cannot stop timer - it says that I do not have permissions, though I set up all permissions for my role.

tiagojco commented 11 years ago

Same here. Environment: Redmine version 2.2.3.stable Ruby version 1.8.7 (i486-linux) Rails version 3.2.12 Environment production Database adapter MySQL Redmine plugins: redmine_time_tracker 0.6.2

I recently migrate from 1.0.1 to 2.2.3.

arBmind commented 11 years ago

should be fixed in the latest version.

Please verify with Redmine 2.3.1