Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing planning_old.js #35

Open
xJom opened this issue Oct 2, 2015 · 5 comments
Open

Missing planning_old.js #35

xJom opened this issue Oct 2, 2015 · 5 comments

Comments

@xJom
Copy link

xJom commented Oct 2, 2015

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:incall'
railties (4.2.3) lib/rails/rack/logger.rb:38:in call_app' railties (4.2.3) lib/rails/rack/logger.rb:20:inblock in call'
activesupport (4.2.3) lib/active_support/tagged_logging.rb:68:in block in tagged' activesupport (4.2.3) lib/active_support/tagged_logging.rb:26:intagged'
activesupport (4.2.3) lib/active_support/tagged_logging.rb:68:in tagged' railties (4.2.3) lib/rails/rack/logger.rb:20:incall'
actionpack (4.2.3) lib/action_dispatch/middleware/request_id.rb:21:in call' rack (1.6.4) lib/rack/methodoverride.rb:22:incall'
rack (1.6.4) lib/rack/runtime.rb:18:in call' activesupport (4.2.3) lib/active_support/cache/strategy/local_cache_middleware.rb:28:incall'
actionpack (4.2.3) lib/action_dispatch/middleware/static.rb:116:in call' rack (1.6.4) lib/rack/sendfile.rb:113:incall'
railties (4.2.3) lib/rails/engine.rb:518:in call' railties (4.2.3) lib/rails/application.rb:165:incall'
railties (4.2.3) lib/rails/railtie.rb:194:in public_send' railties (4.2.3) lib/rails/railtie.rb:194:inmethod_missing'
/usr/lib/ruby/vendor_ruby/phusion_passenger/rack/thread_handler_extension.rb:94:in process_request' /usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler/thread_handler.rb:151:inaccept_and_process_next_request'
/usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler/thread_handler.rb:112:in main_loop' /usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler.rb:415:inblock (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#error_404 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.

@EgbertW
Copy link
Owner

EgbertW commented Oct 2, 2015

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.

@MarcuSacramento
Copy link

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:inissues_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:insend_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:inprocess_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:incall'
activesupport (4.2.0) lib/active_support/callbacks.rb:117:in call' activesupport (4.2.0) lib/active_support/callbacks.rb:151:inblock 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:inblock 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:inblock 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:inblock in halting'
activesupport (4.2.0) lib/active_support/callbacks.rb:169:in call' activesupport (4.2.0) lib/active_support/callbacks.rb:169:inblock in halting'
activesupport (4.2.0) lib/active_support/callbacks.rb:169:in call' activesupport (4.2.0) lib/active_support/callbacks.rb:169:inblock in halting'
activesupport (4.2.0) lib/active_support/callbacks.rb:169:in call' activesupport (4.2.0) lib/active_support/callbacks.rb:169:inblock in halting'
activesupport (4.2.0) lib/active_support/callbacks.rb:169:in call' activesupport (4.2.0) lib/active_support/callbacks.rb:169:inblock in halting'
activesupport (4.2.0) lib/active_support/callbacks.rb:169:in call' activesupport (4.2.0) lib/active_support/callbacks.rb:169:inblock in halting'
activesupport (4.2.0) lib/active_support/callbacks.rb:169:in call' activesupport (4.2.0) lib/active_support/callbacks.rb:169:inblock in halting'
activesupport (4.2.0) lib/active_support/callbacks.rb:169:in call' activesupport (4.2.0) lib/active_support/callbacks.rb:169:inblock in halting'
activesupport (4.2.0) lib/active_support/callbacks.rb:234:in call' activesupport (4.2.0) lib/active_support/callbacks.rb:234:inblock in halting'
activesupport (4.2.0) lib/active_support/callbacks.rb:169:in call' activesupport (4.2.0) lib/active_support/callbacks.rb:169:inblock 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:inrun_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:inprocess_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:inblock 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:ininstrument'
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:inprocess_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:inprocess'
actionview (4.2.0) lib/action_view/rendering.rb:30:in process' actionpack (4.2.0) lib/action_controller/metal.rb:195:indispatch'
actionpack (4.2.0) lib/action_controller/metal/rack_delegation.rb:13:in dispatch' actionpack (4.2.0) lib/action_controller/metal.rb:236:inblock 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:indispatch'
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:inblock 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:inserve'
actionpack (4.2.0) lib/action_dispatch/routing/route_set.rb:802:in call' rack-openid (1.4.2) lib/rack/openid.rb:98:incall'
request_store (1.0.5) lib/request_store/middleware.rb:9:in call' rack (1.6.4) lib/rack/etag.rb:24:incall'
rack (1.6.4) lib/rack/conditionalget.rb:25:in call' rack (1.6.4) lib/rack/head.rb:13:incall'
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:incall'
actionpack (4.2.0) lib/action_dispatch/middleware/flash.rb:260:in call' rack (1.6.4) lib/rack/session/abstract/id.rb:225:incontext'
rack (1.6.4) lib/rack/session/abstract/id.rb:220:in call' actionpack (4.2.0) lib/action_dispatch/middleware/cookies.rb:560:incall'
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:incall'
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:incall'
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:incall'
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:incall'
actionpack (4.2.0) lib/action_dispatch/middleware/show_exceptions.rb:30:in call' railties (4.2.0) lib/rails/rack/logger.rb:38:incall_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:inblock 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:intagged'
railties (4.2.0) lib/rails/rack/logger.rb:20:in call' actionpack (4.2.0) 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.0) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in call' actionpack (4.2.0) lib/action_dispatch/middleware/static.rb:113:incall'
rack (1.6.4) lib/rack/sendfile.rb:113:in call' railties (4.2.0) lib/rails/engine.rb:518:incall'
railties (4.2.0) lib/rails/application.rb:164:in call' railties (4.2.0) lib/rails/railtie.rb:194:inpublic_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:inprocess_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:inmain_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:inblock in create_thread_and_abort_on_exception'

@xJom
Copy link
Author

xJom commented Oct 20, 2015

@madegg For the original problem - this is fixed. Thx!

@ffarzat
Copy link

ffarzat commented Dec 28, 2015

@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.

@MarcuSacramento
Copy link

thank's a lot. It's really works. regards @ffarzat

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants