Open xJom opened 9 years ago
A bit for an overzealous clean-up procedure. Try adding this file:
https://raw.githubusercontent.com/MadEgg/redmine_planning/master/assets/javascripts/planning_old.js
I added it back in the master branch, will do a new release soon.
Hello MadEgg, I'm trying this solution, but i'm get other error. Maybe the cause is incompatibility with other plugin (Scrum:https://redmine.ociotec.com/projects/redmine-plugin-scrum) . When i remove the scrum plugin then this works
Started GET "/projects/projeto-teste-plan/plan/issues?utf8=%E2%9C%93&set_filter=1&f%5B%5D=" for 172.28.129.241 at 2015-10-05 14:09:32 +0000 Processing by PlanningController#issues as JSON Parameters: {"utf8"=>"✓", "set_filter"=>"1", "f"=>[""], "project_id"=>"projeto-teste-plan"} Current user: admin (id=1) Completed 500 Internal Server Error in 32ms
NoMethodError (undefined method <<' for {}:Hash): plugins/scrum/lib/scrum/issue_query_patch.rb:40:in
issues_with_scrum'
plugins/redmine_planning/app/controllers/planning_controller.rb:159:in issues' actionpack (4.2.0) lib/action_controller/metal/implicit_render.rb:4:in
send_action'
actionpack (4.2.0) lib/abstract_controller/base.rb:198:in process_action' actionpack (4.2.0) lib/action_controller/metal/rendering.rb:10:in
process_action'
actionpack (4.2.0) lib/abstract_controller/callbacks.rb:20:in block in process_action' activesupport (4.2.0) lib/active_support/callbacks.rb:117:in
call'
activesupport (4.2.0) lib/active_support/callbacks.rb:117:in call' activesupport (4.2.0) lib/active_support/callbacks.rb:151:in
block in halting_and_conditional'
activesupport (4.2.0) lib/active_support/callbacks.rb:151:in call' activesupport (4.2.0) lib/active_support/callbacks.rb:151:in
block in halting_and_conditional'
activesupport (4.2.0) lib/active_support/callbacks.rb:151:in call' activesupport (4.2.0) lib/active_support/callbacks.rb:151:in
block in halting_and_conditional'
activesupport (4.2.0) lib/active_support/callbacks.rb:169:in call' activesupport (4.2.0) lib/active_support/callbacks.rb:169:in
block in halting'
activesupport (4.2.0) lib/active_support/callbacks.rb:169:in call' activesupport (4.2.0) lib/active_support/callbacks.rb:169:in
block in halting'
activesupport (4.2.0) lib/active_support/callbacks.rb:169:in call' activesupport (4.2.0) lib/active_support/callbacks.rb:169:in
block in halting'
activesupport (4.2.0) lib/active_support/callbacks.rb:169:in call' activesupport (4.2.0) lib/active_support/callbacks.rb:169:in
block in halting'
activesupport (4.2.0) lib/active_support/callbacks.rb:169:in call' activesupport (4.2.0) lib/active_support/callbacks.rb:169:in
block in halting'
activesupport (4.2.0) lib/active_support/callbacks.rb:169:in call' activesupport (4.2.0) lib/active_support/callbacks.rb:169:in
block in halting'
activesupport (4.2.0) lib/active_support/callbacks.rb:169:in call' activesupport (4.2.0) lib/active_support/callbacks.rb:169:in
block in halting'
activesupport (4.2.0) lib/active_support/callbacks.rb:169:in call' activesupport (4.2.0) lib/active_support/callbacks.rb:169:in
block in halting'
activesupport (4.2.0) lib/active_support/callbacks.rb:234:in call' activesupport (4.2.0) lib/active_support/callbacks.rb:234:in
block in halting'
activesupport (4.2.0) lib/active_support/callbacks.rb:169:in call' activesupport (4.2.0) lib/active_support/callbacks.rb:169:in
block in halting'
activesupport (4.2.0) lib/active_support/callbacks.rb:92:in call' activesupport (4.2.0) lib/active_support/callbacks.rb:92:in
_run_callbacks'
activesupport (4.2.0) lib/active_support/callbacks.rb:734:in _run_process_action_callbacks' activesupport (4.2.0) lib/active_support/callbacks.rb:81:in
run_callbacks'
actionpack (4.2.0) lib/abstract_controller/callbacks.rb:19:in process_action' actionpack (4.2.0) lib/action_controller/metal/rescue.rb:29:in
process_action'
actionpack (4.2.0) lib/action_controller/metal/instrumentation.rb:31:in block in process_action' activesupport (4.2.0) lib/active_support/notifications.rb:164:in
block in instrument'
activesupport (4.2.0) lib/active_support/notifications/instrumenter.rb:20:in instrument' activesupport (4.2.0) lib/active_support/notifications.rb:164:in
instrument'
actionpack (4.2.0) lib/action_controller/metal/instrumentation.rb:30:in process_action' actionpack (4.2.0) lib/action_controller/metal/params_wrapper.rb:250:in
process_action'
activerecord (4.2.0) lib/active_record/railties/controller_runtime.rb:18:in process_action' actionpack (4.2.0) lib/abstract_controller/base.rb:137:in
process'
actionview (4.2.0) lib/action_view/rendering.rb:30:in process' actionpack (4.2.0) lib/action_controller/metal.rb:195:in
dispatch'
actionpack (4.2.0) lib/action_controller/metal/rack_delegation.rb:13:in dispatch' actionpack (4.2.0) lib/action_controller/metal.rb:236:in
block in action'
actionpack (4.2.0) lib/action_dispatch/routing/route_set.rb:73:in call' actionpack (4.2.0) lib/action_dispatch/routing/route_set.rb:73:in
dispatch'
actionpack (4.2.0) lib/action_dispatch/routing/route_set.rb:42:in serve' actionpack (4.2.0) lib/action_dispatch/journey/router.rb:43:in
block in serve'
actionpack (4.2.0) lib/action_dispatch/journey/router.rb:30:in each' actionpack (4.2.0) lib/action_dispatch/journey/router.rb:30:in
serve'
actionpack (4.2.0) lib/action_dispatch/routing/route_set.rb:802:in call' rack-openid (1.4.2) lib/rack/openid.rb:98:in
call'
request_store (1.0.5) lib/request_store/middleware.rb:9:in call' rack (1.6.4) lib/rack/etag.rb:24:in
call'
rack (1.6.4) lib/rack/conditionalget.rb:25:in call' rack (1.6.4) lib/rack/head.rb:13:in
call'
actionpack-xml_parser (1.0.2) lib/action_dispatch/xml_params_parser.rb:16:in call' actionpack (4.2.0) lib/action_dispatch/middleware/params_parser.rb:27:in
call'
actionpack (4.2.0) lib/action_dispatch/middleware/flash.rb:260:in call' rack (1.6.4) lib/rack/session/abstract/id.rb:225:in
context'
rack (1.6.4) lib/rack/session/abstract/id.rb:220:in call' actionpack (4.2.0) lib/action_dispatch/middleware/cookies.rb:560:in
call'
activerecord (4.2.0) lib/active_record/query_cache.rb:36:in call' activerecord (4.2.0) lib/active_record/connection_adapters/abstract/connection_pool.rb:647:in
call'
actionpack (4.2.0) lib/action_dispatch/middleware/callbacks.rb:29:in block in call' activesupport (4.2.0) lib/active_support/callbacks.rb:88:in
call'
activesupport (4.2.0) lib/active_support/callbacks.rb:88:in _run_callbacks' activesupport (4.2.0) lib/active_support/callbacks.rb:734:in
_run_call_callbacks'
activesupport (4.2.0) lib/active_support/callbacks.rb:81:in run_callbacks' actionpack (4.2.0) lib/action_dispatch/middleware/callbacks.rb:27:in
call'
actionpack (4.2.0) lib/action_dispatch/middleware/remote_ip.rb:78:in call' actionpack (4.2.0) lib/action_dispatch/middleware/debug_exceptions.rb:17:in
call'
actionpack (4.2.0) lib/action_dispatch/middleware/show_exceptions.rb:30:in call' railties (4.2.0) lib/rails/rack/logger.rb:38:in
call_app'
railties (4.2.0) lib/rails/rack/logger.rb:20:in block in call' activesupport (4.2.0) lib/active_support/tagged_logging.rb:68:in
block in tagged'
activesupport (4.2.0) lib/active_support/tagged_logging.rb:26:in tagged' activesupport (4.2.0) lib/active_support/tagged_logging.rb:68:in
tagged'
railties (4.2.0) lib/rails/rack/logger.rb:20:in call' actionpack (4.2.0) lib/action_dispatch/middleware/request_id.rb:21:in
call'
rack (1.6.4) lib/rack/methodoverride.rb:22:in call' rack (1.6.4) lib/rack/runtime.rb:18:in
call'
activesupport (4.2.0) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in call' actionpack (4.2.0) lib/action_dispatch/middleware/static.rb:113:in
call'
rack (1.6.4) lib/rack/sendfile.rb:113:in call' railties (4.2.0) lib/rails/engine.rb:518:in
call'
railties (4.2.0) lib/rails/application.rb:164:in call' railties (4.2.0) lib/rails/railtie.rb:194:in
public_send'
railties (4.2.0) lib/rails/railtie.rb:194:in method_missing' passenger (5.0.16) lib/phusion_passenger/rack/thread_handler_extension.rb:94:in
process_request'
passenger (5.0.16) lib/phusion_passenger/request_handler/thread_handler.rb:149:in accept_and_process_next_request' passenger (5.0.16) lib/phusion_passenger/request_handler/thread_handler.rb:110:in
main_loop'
passenger (5.0.16) lib/phusion_passenger/request_handler.rb:415:in block (3 levels) in start_threads' passenger (5.0.16) lib/phusion_passenger/utils.rb:111:in
block in create_thread_and_abort_on_exception'
@MadEgg For the original problem - this is fixed. Thx!
@MarcuSacramento To solve the incompatibility go to plugins/scrum/lib/scrum/issue_query_patch.rb and modify lines 37 and 47. Replace options[:include] ||= {} by options[:include] ||= []. Thats solved the problem for me. Both plugins are functional in my enviroment.
thank's a lot. It's really works. regards @ffarzat
Using: Environment: Redmine version 3.0.4.stable Ruby version 2.2.2-p95 (2015-04-13) [x86_64-linux] Rails version 4.2.3 Environment production Database adapter Mysql2 with Redmine plugins: a_common_libs 1.1.5 progressive_projects_list 2.0.1 redmine_base_deface 0.0.1 redmine_bootstrap_kit 0.2.3 redmine_custom_workflows 0.1.4 redmine_dashboard 2.7.0 redmine_dmsf 1.5.4 redmine_issues_tree 0.0.3 redmine_jenkins 1.0.1 redmine_maintenance_mode 2.0.1 redmine_multiprojects_issue 0.2 redmine_revision_branches 0.3.0 redmine_spent_time 3.1.2 redmine_spent_time_in_issue_description 2.8.0 redmine_sudo 0.0.1 redmine_workflow_enhancements 0.4.0 usability 2.0.0
I get: Started GET "/redmine/plugin_assets/redmine_planning/javascripts/planning_old.js" for 127.0.0.1 at 2015-10-01 10:34:25 +0200
ActionController::RoutingError (No route matches [GET] "/plugin_assets/redmine_planning/javascripts/planning_old.js"): actionpack (4.2.3) lib/action_dispatch/middleware/debug_exceptions.rb:21:in
call' actionpack (4.2.3) lib/action_dispatch/middleware/show_exceptions.rb:30:in
call' railties (4.2.3) lib/rails/rack/logger.rb:38:incall_app' railties (4.2.3) lib/rails/rack/logger.rb:20:in
block in call' activesupport (4.2.3) lib/active_support/tagged_logging.rb:68:inblock in tagged' activesupport (4.2.3) lib/active_support/tagged_logging.rb:26:in
tagged' activesupport (4.2.3) lib/active_support/tagged_logging.rb:68:intagged' railties (4.2.3) lib/rails/rack/logger.rb:20:in
call' actionpack (4.2.3) lib/action_dispatch/middleware/request_id.rb:21:incall' rack (1.6.4) lib/rack/methodoverride.rb:22:in
call' rack (1.6.4) lib/rack/runtime.rb:18:incall' activesupport (4.2.3) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in
call' actionpack (4.2.3) lib/action_dispatch/middleware/static.rb:116:incall' rack (1.6.4) lib/rack/sendfile.rb:113:in
call' railties (4.2.3) lib/rails/engine.rb:518:incall' railties (4.2.3) lib/rails/application.rb:165:in
call' railties (4.2.3) lib/rails/railtie.rb:194:inpublic_send' railties (4.2.3) lib/rails/railtie.rb:194:in
method_missing' /usr/lib/ruby/vendor_ruby/phusion_passenger/rack/thread_handler_extension.rb:94:inprocess_request' /usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler/thread_handler.rb:151:in
accept_and_process_next_request' /usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler/thread_handler.rb:112:inmain_loop' /usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler.rb:415:in
block (3 levels) in start_threads' /usr/lib/ruby/vendor_ruby/phusion_passenger/utils.rb:112:in `block in create_thread_and_abort_on_exception'Processing by UsErrorsController#error404 as /_ Current user: admin (id=1) Rendered plugins/usability/app/views/errors/error_status.html.erb (49.4ms) Completed 404 Not Found in 84ms (Views: 46.6ms | ActiveRecord: 16.2ms)
As a quick-fix I tried copying planning.js to planning_old.js, but that stopped the rendering effectively without any errors in the production log.