Project

General

Profile

Error #1180

When I create a new milestone and open Gantt tab, it occued an error

Added by Steven Wong over 3 years ago. Updated over 3 years ago.

Status:
Resolved
Priority:
Normal
Category:
Gantt
Start date:
2016-07-04
Due date:
2016-07-04
% Done:

100%

Estimated time:
Source:
Development
Detected on version:
Redmine version:
Redmine 3.3.0
Milestones:

Description

the error log as follow:

Redirected to http://redmine.utranshub.com/projects/demo/issues/gantt
Completed 302 Found in 12ms (ActiveRecord: 2.9ms)
Started GET "/projects/demo/issues/gantt" for 192.168.60.239 at 2016-06-25 11:44:32 +0800
Processing by GanttsController#show as HTML
  Parameters: {"project_id"=>"demo"}
  Current user: admin (id=1)
  Rendered queries/_filters.html.erb (14.9ms)
  Rendered gantts/show.html.erb within layouts/base (2497.4ms)
Completed 500 Internal Server Error in 2611ms (ActiveRecord: 52.5ms)
  Rendered /usr/local/rvm/gems/ruby-2.2.4@newgemset/gems/exception_notification-4.1.4/lib/exception_notifier/views/exception_notifier/_request.text.erb (0.3ms)
  Rendered /usr/local/rvm/gems/ruby-2.2.4@newgemset/gems/exception_notification-4.1.4/lib/exception_notifier/views/exception_notifier/_title.text.erb (0.2ms)
  Rendered /usr/local/rvm/gems/ruby-2.2.4@newgemset/gems/exception_notification-4.1.4/lib/exception_notifier/views/exception_notifier/_session.text.erb (1.1ms)
  Rendered /usr/local/rvm/gems/ruby-2.2.4@newgemset/gems/exception_notification-4.1.4/lib/exception_notifier/views/exception_notifier/_title.text.erb (0.1ms)
  Rendered /usr/local/rvm/gems/ruby-2.2.4@newgemset/gems/exception_notification-4.1.4/lib/exception_notifier/views/exception_notifier/_environment.text.erb (1.8ms)
  Rendered /usr/local/rvm/gems/ruby-2.2.4@newgemset/gems/exception_notification-4.1.4/lib/exception_notifier/views/exception_notifier/_title.text.erb (0.1ms)
  Rendered /usr/local/rvm/gems/ruby-2.2.4@newgemset/gems/exception_notification-4.1.4/lib/exception_notifier/views/exception_notifier/_backtrace.text.erb (0.1ms)
  Rendered /usr/local/rvm/gems/ruby-2.2.4@newgemset/gems/exception_notification-4.1.4/lib/exception_notifier/views/exception_notifier/_title.text.erb (0.1ms)
  Rendered /usr/local/rvm/gems/ruby-2.2.4@newgemset/gems/exception_notification-4.1.4/lib/exception_notifier/views/exception_notifier/exception_notification.text.erb (11.2ms)

ActionView::Template::Error (undefined method `abort?' for #<Redmine::Helpers::Gantt:0x007f02ac6c2d38>):
    107: 
    108:   # Width of the entire chart
    109:   g_width = ((@gantt.date_to - @gantt.date_from + 1) * zoom).to_i
    110:   @gantt.render(:top => headers_height + 8,
    111:                 :zoom => zoom,
    112:                 :g_width => g_width,
    113:                 :subject_width => subject_width)
  plugins/advanced_roadmap/lib/advanced_roadmap/redmine_helpers_gantt_patch.rb:20:in `render_version_with_milestones'
  lib/redmine/helpers/gantt.rb:225:in `block (2 levels) in render_project'
  lib/redmine/helpers/gantt.rb:224:in `each'
  lib/redmine/helpers/gantt.rb:224:in `block in render_project'
  lib/redmine/helpers/gantt.rb:276:in `increment_indent'
  lib/redmine/helpers/gantt.rb:217:in `render_project'
  lib/redmine/helpers/gantt.rb:205:in `block in render'
  app/models/project.rb:796:in `block in project_tree'
  app/models/project.rb:792:in `each'
  app/models/project.rb:792:in `project_tree'
  lib/redmine/helpers/gantt.rb:203:in `render'
  app/views/gantts/show.html.erb:110:in `_app_views_gantts_show_html_erb___1297870265964519113_69824726509880'
  app/controllers/gantts_controller.rb:43:in `block (2 levels) in show'
  app/controllers/gantts_controller.rb:42:in `show'
  lib/redmine/sudo_mode.rb:63:in `sudo_mode'

Associated revisions

Revision 5155e75e (diff)
Added by Emilio González Montaña over 3 years ago

#1180
  • Fix Gantt chart tab.

History

#1 Updated by Steven Wong over 3 years ago

the full trace debug information

An ActionView::Template::Error occurred in gantts#show:

  undefined method `abort?' for #<Redmine::Helpers::Gantt:0x007f02ac6c2d38>
  plugins/advanced_roadmap/lib/advanced_roadmap/redmine_helpers_gantt_patch.rb:20:in `render_version_with_milestones'

-------------------------------
Request:
-------------------------------

* URL : http://redmine.utranshub.com/projects/demo/issues/gantt
  * HTTP Method: GET
  * IP address : 192.168.60.239
  * Parameters : {"controller"=>"gantts", "action"=>"show", "project_id"=>"demo"}
  * Timestamp  : 2016-06-25 03:44:35 UTC
  * Server : jira
  * Rails root : /opt/redmine-3.3
  * Process: 31978

-------------------------------
Session:
-------------------------------

  * session id: "69cd83dd2274a3c7c0fb83bbde39fe42" 
  * data: {"session_id"=>"69cd83dd2274a3c7c0fb83bbde39fe42",
   "user_id"=>1,
   "tk"=>"f361b0a374c68676db887a9c29e30aac9c5b75aa",
   "sudo_timestamp"=>1466819032,
   "my_page_sort"=>"none",
   "_csrf_token"=>"EwDBCA3Ftc2GYZctpxJCaXQiDuCgoqX47OIVkWiJUr4=",
   "recent_projects"=>[11, 1, 7, 10, 3],
   "query"=>
    {:project_id=>1,
     :filters=>{},
     :group_by=>nil,
     :column_names=>nil,
     :totalable_names=>[:estimated_hours, :spent_hours]},
   "issues_index_sort"=>"priority:desc",
   "boards_show_sort"=>"updated_on:desc"}

-------------------------------
Environment:
-------------------------------

  * GATEWAY_INTERFACE                              : CGI/1.2
  * HTTP_ACCEPT                                    : text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
  * HTTP_ACCEPT_ENCODING                           : gzip, deflate, sdch
  * HTTP_ACCEPT_LANGUAGE                           : zh-CN,zh;q=0.8
  * HTTP_CONNECTION                                : keep-alive
  * HTTP_COOKIE                                    : _redmine_session=NmEyZTlYMnZ0YThvM2ZDN1lVMEkrTktoemUrNEQ1WUdaRWEwclVycGZMZ2lNTHZoWTlwQnBBbG11dTZDRGFFL2lyU2NpbEdLQWJLS0Z1VndOR2Z6dVdnNVltVjVlMzNIS2lubHFkMm1Pb25nSmZnTXcrV0txVnpDL2FUYTNrcERvb2FNNnpzemxndkd6bjl1ak16dXhUNmdScExYbG9rSW9ZUG4waFAwRGJmZTN0d29BSmpid1BmMWR0K0xVbnkzMzd5N2Z5bmI4QWpZaFBZTTlTMXVKcHd2SWppQjNXOC9EUE1iSWN2QUZoZjJiTVl3ZUUwZmc2cDBTSFAvVEdTaWhYVnVGcWZmc0R6akc2TUVzbVNsQ2pvK0NOd2pvcDByelJOMHAwMnM0dlJKY2tESSt5QVVFYytzYTdhSnVMcjZaV3piUDBzTjFJems3aElTN3UvZkRtZzdwTHVQaGdBVkJUaXE1alhRRnBtUnV4VmpVV3lEWUNSRmhZWTFmblhJQklpOFVZYlVjcStYcVA5OTY1aHAzNnQ4bzkzZXNQMEJ5alRHQVd6dE5zWGdmbldQN3dOd0NsMFF5S2lybkJJQURibzhmYnJzUGZIQlRmdVdZREU4NksxU2ZCS0JOVWUwN3ZSd0dZbHo5YWZDbHlsZ3QrRW9BSGNVbHY5aERFUHFQNEdaL2xzenlWQks0c1pxNmhzSXJVY2J2NFI1UlFhb2pCUDZrRUpNSkVBdXJsWWM1aG9iSmVGLzVFUnpYMzg5ekJUd3NBUzVQa0t5OXJ1RGNobENKbnc5L1NIY0lkR1ZtSVU5S3ZhVUpzZGlwbklPQWc2TDlWa28zTWl5cXhaRVFOa3JCUkFkV09jNWRMVGgzNTluNGJvVkgzNEZ1MTRjREExWUVqQVdQWGM9LS0zcTV3UTNjMmc4L25kNkE5RzRkQ0dBPT0%3D--58696106e9f2c343d532405614aad0e74ffa2b8b
  * HTTP_HOST                                      : redmine.utranshub.com
* HTTP_REFERER : http://redmine.utranshub.com/projects/web/issues/gantt
  * HTTP_UPGRADE_INSECURE_REQUESTS                 : 1
  * HTTP_USER_AGENT                                : Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36
  * HTTP_VERSION                                   : HTTP/1.1
  * ORIGINAL_FULLPATH                              : /projects/demo/issues/gantt
  * ORIGINAL_SCRIPT_NAME                           :
  * PATH_INFO                                      : /projects/demo/issues/gantt
  * QUERY_STRING                                   :
  * REMOTE_ADDR                                    : 192.168.60.239
  * REQUEST_METHOD                                 : GET
  * REQUEST_PATH                                   : /projects/demo/issues/gantt
  * REQUEST_URI                                    : /projects/demo/issues/gantt
  * ROUTES_56192080_SCRIPT_NAME                    :
  * SCRIPT_NAME                                    :
  * SERVER_NAME                                    : redmine.utranshub.com
  * SERVER_PORT                                    : 80
  * SERVER_PROTOCOL                                : HTTP/1.1
  * SERVER_SOFTWARE                                : thin 1.7.0 codename Dunder Mifflin
  * action_controller.instance                     : #<GanttsController:0x007f02e41256b8>
  * action_dispatch.backtrace_cleaner              : #<Rails::BacktraceCleaner:0x00000005bb32a8>
  * action_dispatch.cookies                        : #<ActionDispatch::Cookies::CookieJar:0x007f02e4112d88>
  * action_dispatch.cookies_digest                 :
  * action_dispatch.cookies_serializer             :
  * action_dispatch.encrypted_cookie_salt          : encrypted cookie
  * action_dispatch.encrypted_signed_cookie_salt   : signed encrypted cookie
  * action_dispatch.http_auth_salt                 : http authentication
  * action_dispatch.key_generator                  : #<ActiveSupport::CachingKeyGenerator:0x000000067154e8>
  * action_dispatch.logger                         : #<ActiveSupport::Logger:0x000000069e8b70>
  * action_dispatch.parameter_filter               : [:password]
  * action_dispatch.redirect_filter                : []
  * action_dispatch.remote_ip                      : 192.168.60.239
  * action_dispatch.request.content_type           :
  * action_dispatch.request.formats                : [#<Mime::Type:0x00000003419940 @synonyms=["application/xhtml+xml"], @symbol=:html, @string="text/html", @hash=-3629994018379231673>]
  * action_dispatch.request.parameters             : {"controller"=>"gantts", "action"=>"show", "project_id"=>"demo"}
  * action_dispatch.request.path_parameters        : {:controller=>"gantts", :action=>"show", :project_id=>"demo"}
  * action_dispatch.request.query_parameters       : {}
  * action_dispatch.request.request_parameters     : {}
  * action_dispatch.request.unsigned_session_cookie: {"session_id"=>"69cd83dd2274a3c7c0fb83bbde39fe42", "user_id"=>1, "tk"=>"f361b0a374c68676db887a9c29e30aac9c5b75aa", "sudo_timestamp"=>1466819032, "my_page_sort"=>"none", "_csrf_token"=>"EwDBCA3Ftc2GYZctpxJCaXQiDuCgoqX47OIVkWiJUr4=", "recent_projects"=>[11, 1, 7, 10, 3], "query"=>{:project_id=>11, :filters=>{}, :group_by=>nil, :column_names=>nil, :totalable_names=>[:estimated_hours, :spent_hours]}, "issues_index_sort"=>"priority:desc", "boards_show_sort"=>"updated_on:desc"}
  * action_dispatch.request_id                     : 0b6ada35-610a-4fdd-ab49-796992031706
  * action_dispatch.routes                         : #<ActionDispatch::Routing::RouteSet:0x00000006b2d8a0>
  * action_dispatch.secret_key_base                : 59dda17a42803617f96151518b9aeecb94e132c6f140123f1982e1c8ae15d0103ffa854c4d8b0019
  * action_dispatch.secret_token                   :
  * action_dispatch.show_detailed_exceptions       : false
  * action_dispatch.show_exceptions                : true
  * action_dispatch.signed_cookie_salt             : signed cookie
  * async.callback                                 : #<Method: Thin::Connection#post_process>
  * async.close                                    : #<EventMachine::DefaultDeferrable:0x007f02e413a478>
  * rack.errors                                    : #<IO:0x00000002365590>
  * rack.input                                     : #<StringIO:0x007f02e413ae28>
  * rack.multiprocess                              : false
  * rack.multithread                               : true
  * rack.request.cookie_hash                       : {"_redmine_session"=>"NmEyZTlYMnZ0YThvM2ZDN1lVMEkrTktoemUrNEQ1WUdaRWEwclVycGZMZ2lNTHZoWTlwQnBBbG11dTZDRGFFL2lyU2NpbEdLQWJLS0Z1VndOR2Z6dVdnNVltVjVlMzNIS2lubHFkMm1Pb25nSmZnTXcrV0txVnpDL2FUYTNrcERvb2FNNnpzemxndkd6bjl1ak16dXhUNmdScExYbG9rSW9ZUG4waFAwRGJmZTN0d29BSmpid1BmMWR0K0xVbnkzMzd5N2Z5bmI4QWpZaFBZTTlTMXVKcHd2SWppQjNXOC9EUE1iSWN2QUZoZjJiTVl3ZUUwZmc2cDBTSFAvVEdTaWhYVnVGcWZmc0R6akc2TUVzbVNsQ2pvK0NOd2pvcDByelJOMHAwMnM0dlJKY2tESSt5QVVFYytzYTdhSnVMcjZaV3piUDBzTjFJems3aElTN3UvZkRtZzdwTHVQaGdBVkJUaXE1alhRRnBtU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bzkzZXNQMEJ5alRHQVd6dE5zWGdmbldQN3dOd0NsMFF5S2lybkJJQURibzhmYnJzUGZIQlRmdVdZREU4NksxU2ZCS0JOVWUwN3ZSd0dZbHo5YWZDbHlsZ3QrRW9BSGNVbHY5aERFUHFQNEdaL2xzenlWQks0c1pxNmhzSXJVY2J2NFI1UlFhb2pCUDZrRUpNSkVBdXJsWWM1aG9iSmVGLzVFUnpYMzg5ekJUd3NBUzVQa0t5OXJ1RGNobENKbnc5L1NIY0lkR1ZtSVU5S3ZhVUpzZGlwbklPQWc2TDlWa28zTWl5cXhaRVFOa3JCUkFkV09jNWRMVGgzNTluNGJvVkgzNEZ1MTRjREExWUVqQVdQWGM9LS0zcTV3UTNjMmc4L25kNkE5RzRkQ0dBPT0%3D--58696106e9f2c343d532405614aad0e74ffa2b8b
  * rack.request.query_hash                        : {}
  * rack.request.query_string                      :
  * rack.run_once                                  : false
  * rack.session                                   : #<ActionDispatch::Request::Session:0x007f02e412cd78>
  * rack.session.options                           : #<ActionDispatch::Request::Session::Options:0x007f02e412c800>
  * rack.url_scheme                                : http
  * rack.version                                   : [1, 0]

-------------------------------
Backtrace:
-------------------------------

  plugins/advanced_roadmap/lib/advanced_roadmap/redmine_helpers_gantt_patch.rb:20:in `render_version_with_milestones'
  lib/redmine/helpers/gantt.rb:225:in `block (2 levels) in render_project'
  lib/redmine/helpers/gantt.rb:224:in `each'
  lib/redmine/helpers/gantt.rb:224:in `block in render_project'
  lib/redmine/helpers/gantt.rb:276:in `increment_indent'
  lib/redmine/helpers/gantt.rb:217:in `render_project'
  lib/redmine/helpers/gantt.rb:205:in `block in render'
  app/models/project.rb:796:in `block in project_tree'
  app/models/project.rb:792:in `each'
  app/models/project.rb:792:in `project_tree'
  lib/redmine/helpers/gantt.rb:203:in `render'
  app/views/gantts/show.html.erb:110:in `_app_views_gantts_show_html_erb___1297870265964519113_69824726509880'
  app/controllers/gantts_controller.rb:43:in `block (2 levels) in show'
  app/controllers/gantts_controller.rb:42:in `show'
  lib/redmine/sudo_mode.rb:63:in `sudo_mode'

#2 Updated by Emilio González Montaña over 3 years ago

  • Subject changed from when I create a new milestone and open Gantt tab, it occued an error to When I create a new milestone and open Gantt tab, it occued an error
  • Target version set to Advanced roadmap 0.10.2
  • Start date deleted (2016-06-25)

#3 Updated by Emilio González Montaña over 3 years ago

  • Due date set to 2016-07-04
  • Category changed from Issues to Gantt
  • Status changed from New to Resolved
  • Start date set to 2016-07-04
  • % Done changed from 0 to 100

Also available in: Atom PDF