[production][grouped_progress_entries#aggregate] ArgumentError: comparison of NilClass with 0 failed
ArgumentError: comparison of NilClass with 0 failed
Summary
URL
https://training.simspilot.org/grouped_progress_entries/6455-3548/aggregate?page=0"
Where
grouped_progress_entries#aggregate
Occured
Apr 16 1:48am
Similar
0
Params
{
"action" => "aggregate", "controller" =>
"grouped_progress_entries", "id" => "6455-3548", "page" =>
"0" }
Session
{
"_csrf_token" => "/J02QHOjv5x7xZINVNRyLw2eWLIi2ecbycNfNQMzaQ8=",
"school_id" => "996393593", "search" => {
"flagged_intervention_types" => nil, "grade" => "*",
"group_id" => nil, "intervention_group_types" => nil,
"last_name" => nil, "search_type" => "list_all", "user_id"
=> nil, "year" => "*" }, "selected_student" =>
"1044106979", "selected_students" => "memcache", "session_id"
=> "1a41ede1c61fec6451bc591599a4c718", "warden_user_user_key"
=> "[\"User\", [\"996364569\"],
\"$2a$10$QuF67EWzkEajScDMi.vNkO\"]" }
Backtrace
48: app/models/grouped_progress_entry/aggregate_chart.rb ->
each
48: app/models/grouped_progress_entry/aggregate_chart.rb ->
min
48: app/models/grouped_progress_entry/aggregate_chart.rb ->
min_score
105: app/models/grouped_progress_entry/aggregate_chart.rb ->
chart_page
118: app/models/grouped_progress_entry.rb ->
aggregate_chart
50: app/controllers/grouped_progress_entries_controller.rb ->
aggregate
4:
[GEM_ROOT]/gems/actionpack-3.2.21/lib/action_controller/metal/implicit_render.rb
-> send_action
167:
[GEM_ROOT]/gems/actionpack-3.2.21/lib/abstract_controller/base.rb
-> process_action
10:
[GEM_ROOT]/gems/actionpack-3.2.21/lib/action_controller/metal/rendering.rb
-> process_action
18:
[GEM_ROOT]/gems/actionpack-3.2.21/lib/abstract_controller/callbacks.rb
-> block in process_action
447:
[GEM_ROOT]/gems/activesupport-3.2.21/lib/active_support/callbacks.rb
->
run_FRAGMENT__process_action__FRAGMENT__callbacks
405:
[GEM_ROOT]/gems/activesupport-3.2.21/lib/active_support/callbacks.rb
-> __run_callback
385:
[GEM_ROOT]/gems/activesupport-3.2.21/lib/active_support/callbacks.rb
-> run_process_actioncallbacks
81:
[GEM_ROOT]/gems/activesupport-3.2.21/lib/active_support/callbacks.rb
-> run_callbacks
17:
[GEM_ROOT]/gems/actionpack-3.2.21/lib/abstract_controller/callbacks.rb
-> process_action
29:
[GEM_ROOT]/gems/actionpack-3.2.21/lib/action_controller/metal/rescue.rb
-> process_action
30:
[GEM_ROOT]/gems/actionpack-3.2.21/lib/action_controller/metal/instrumentation.rb
-> block in process_action
123:
[GEM_ROOT]/gems/activesupport-3.2.21/lib/active_support/notifications.rb
-> block in instrument
20:
[GEM_ROOT]/gems/activesupport-3.2.21/lib/active_support/notifications/instrumenter.rb
-> instrument
123:
[GEM_ROOT]/gems/activesupport-3.2.21/lib/active_support/notifications.rb
-> instrument
29:
[GEM_ROOT]/gems/actionpack-3.2.21/lib/action_controller/metal/instrumentation.rb
-> process_action
207:
[GEM_ROOT]/gems/actionpack-3.2.21/lib/action_controller/metal/params_wrapper.rb
-> process_action
18:
[GEM_ROOT]/gems/activerecord-3.2.21/lib/active_record/railties/controller_runtime.rb
-> process_action
32:
[GEM_ROOT]/gems/newrelic_rpm-3.9.9.275/lib/new_relic/agent/instrumentation/rails3/action_controller.rb
-> block in process_action
366:
[GEM_ROOT]/gems/newrelic_rpm-3.9.9.275/lib/new_relic/agent/instrumentation/controller_instrumentation.rb
-> perform_action_with_newrelic_trace
31:
[GEM_ROOT]/gems/newrelic_rpm-3.9.9.275/lib/new_relic/agent/instrumentation/rails3/action_controller.rb
-> process_action
121:
[GEM_ROOT]/gems/actionpack-3.2.21/lib/abstract_controller/base.rb
-> process
45:
[GEM_ROOT]/gems/actionpack-3.2.21/lib/abstract_controller/rendering.rb
-> process
203:
[GEM_ROOT]/gems/actionpack-3.2.21/lib/action_controller/metal.rb
-> dispatch
14:
[GEM_ROOT]/gems/actionpack-3.2.21/lib/action_controller/metal/rack_delegation.rb
-> dispatch
246:
[GEM_ROOT]/gems/actionpack-3.2.21/lib/action_controller/metal.rb
-> block in action
73:
[GEM_ROOT]/gems/actionpack-3.2.21/lib/action_dispatch/routing/route_set.rb
-> call
73:
[GEM_ROOT]/gems/actionpack-3.2.21/lib/action_dispatch/routing/route_set.rb
-> dispatch
36:
[GEM_ROOT]/gems/actionpack-3.2.21/lib/action_dispatch/routing/route_set.rb
-> call
68: [GEM_ROOT]/gems/journey-1.0.4/lib/journey/router.rb ->
block in call
56: [GEM_ROOT]/gems/journey-1.0.4/lib/journey/router.rb ->
each
56: [GEM_ROOT]/gems/journey-1.0.4/lib/journey/router.rb ->
call
608:
[GEM_ROOT]/gems/actionpack-3.2.21/lib/action_dispatch/routing/route_set.rb
-> call
57:
[GEM_ROOT]/gems/newrelic_rpm-3.9.9.275/lib/new_relic/agent/instrumentation/middleware_tracing.rb
-> call
177: [GEM_ROOT]/gems/omniauth-1.1.3/lib/omniauth/strategy.rb ->
call!
157: [GEM_ROOT]/gems/omniauth-1.1.3/lib/omniauth/strategy.rb ->
call
57:
[GEM_ROOT]/gems/newrelic_rpm-3.9.9.275/lib/new_relic/agent/instrumentation/middleware_tracing.rb
-> call
177: [GEM_ROOT]/gems/omniauth-1.1.3/lib/omniauth/strategy.rb ->
call!
157: [GEM_ROOT]/gems/omniauth-1.1.3/lib/omniauth/strategy.rb ->
call
57:
[GEM_ROOT]/gems/newrelic_rpm-3.9.9.275/lib/new_relic/agent/instrumentation/middleware_tracing.rb
-> call
30:
[GEM_ROOT]/gems/newrelic_rpm-3.9.9.275/lib/new_relic/rack/agent_hooks.rb
-> traced_call
55:
[GEM_ROOT]/gems/newrelic_rpm-3.9.9.275/lib/new_relic/agent/instrumentation/middleware_tracing.rb
-> call
35: [GEM_ROOT]/gems/warden-1.2.1/lib/warden/manager.rb ->
block in call
34: [GEM_ROOT]/gems/warden-1.2.1/lib/warden/manager.rb ->
catch
34: [GEM_ROOT]/gems/warden-1.2.1/lib/warden/manager.rb ->
call
57:
[GEM_ROOT]/gems/newrelic_rpm-3.9.9.275/lib/new_relic/agent/instrumentation/middleware_tracing.rb
-> call
9: lib/best_standards_support.rb -> call
57:
[GEM_ROOT]/gems/newrelic_rpm-3.9.9.275/lib/new_relic/agent/instrumentation/middleware_tracing.rb
-> call
23: [GEM_ROOT]/gems/rack-1.4.5/lib/rack/etag.rb ->
call
57:
[GEM_ROOT]/gems/newrelic_rpm-3.9.9.275/lib/new_relic/agent/instrumentation/middleware_tracing.rb
-> call
25: [GEM_ROOT]/gems/rack-1.4.5/lib/rack/conditionalget.rb ->
call
57:
[GEM_ROOT]/gems/newrelic_rpm-3.9.9.275/lib/new_relic/agent/instrumentation/middleware_tracing.rb
-> call
14:
[GEM_ROOT]/gems/actionpack-3.2.21/lib/action_dispatch/middleware/head.rb
-> call
57:
[GEM_ROOT]/gems/newrelic_rpm-3.9.9.275/lib/new_relic/agent/instrumentation/middleware_tracing.rb
-> call
21:
[GEM_ROOT]/gems/actionpack-3.2.21/lib/action_dispatch/middleware/params_parser.rb
-> call
57:
[GEM_ROOT]/gems/newrelic_rpm-3.9.9.275/lib/new_relic/agent/instrumentation/middleware_tracing.rb
-> call
242:
[GEM_ROOT]/gems/actionpack-3.2.21/lib/action_dispatch/middleware/flash.rb
-> call
57:
[GEM_ROOT]/gems/newrelic_rpm-3.9.9.275/lib/new_relic/agent/instrumentation/middleware_tracing.rb
-> call
210: [GEM_ROOT]/gems/rack-1.4.5/lib/rack/session/abstract/id.rb
-> context
205: [GEM_ROOT]/gems/rack-1.4.5/lib/rack/session/abstract/id.rb
-> call
57:
[GEM_ROOT]/gems/newrelic_rpm-3.9.9.275/lib/new_relic/agent/instrumentation/middleware_tracing.rb
-> call
341:
[GEM_ROOT]/gems/actionpack-3.2.21/lib/action_dispatch/middleware/cookies.rb
-> call
57:
[GEM_ROOT]/gems/newrelic_rpm-3.9.9.275/lib/new_relic/agent/instrumentation/middleware_tracing.rb
-> call
64:
[GEM_ROOT]/gems/activerecord-3.2.21/lib/active_record/query_cache.rb
-> call
57:
[GEM_ROOT]/gems/newrelic_rpm-3.9.9.275/lib/new_relic/agent/instrumentation/middleware_tracing.rb
-> call
479:
[GEM_ROOT]/gems/activerecord-3.2.21/lib/active_record/connection_adapters/abstract/connection_pool.rb
-> call
57:
[GEM_ROOT]/gems/newrelic_rpm-3.9.9.275/lib/new_relic/agent/instrumentation/middleware_tracing.rb
-> call
28:
[GEM_ROOT]/gems/actionpack-3.2.21/lib/action_dispatch/middleware/callbacks.rb
-> block in call
405:
[GEM_ROOT]/gems/activesupport-3.2.21/lib/active_support/callbacks.rb
->
run_FRAGMENT__call__FRAGMENT__callbacks
405:
[GEM_ROOT]/gems/activesupport-3.2.21/lib/active_support/callbacks.rb
-> __run_callback
385:
[GEM_ROOT]/gems/activesupport-3.2.21/lib/active_support/callbacks.rb
-> _run_call_callbacks
81:
[GEM_ROOT]/gems/activesupport-3.2.21/lib/active_support/callbacks.rb
-> run_callbacks
27:
[GEM_ROOT]/gems/actionpack-3.2.21/lib/action_dispatch/middleware/callbacks.rb
-> call
57:
[GEM_ROOT]/gems/newrelic_rpm-3.9.9.275/lib/new_relic/agent/instrumentation/middleware_tracing.rb
-> call
102: [GEM_ROOT]/gems/rack-1.4.5/lib/rack/sendfile.rb ->
call
57:
[GEM_ROOT]/gems/newrelic_rpm-3.9.9.275/lib/new_relic/agent/instrumentation/middleware_tracing.rb
-> call
31:
[GEM_ROOT]/gems/actionpack-3.2.21/lib/action_dispatch/middleware/remote_ip.rb
-> call
57:
[GEM_ROOT]/gems/newrelic_rpm-3.9.9.275/lib/new_relic/agent/instrumentation/middleware_tracing.rb
-> call
57:
[GEM_ROOT]/gems/newrelic_rpm-3.9.9.275/lib/new_relic/agent/instrumentation/middleware_tracing.rb
-> call
16:
[GEM_ROOT]/gems/actionpack-3.2.21/lib/action_dispatch/middleware/debug_exceptions.rb
-> call
57:
[GEM_ROOT]/gems/newrelic_rpm-3.9.9.275/lib/new_relic/agent/instrumentation/middleware_tracing.rb
-> call
56:
[GEM_ROOT]/gems/actionpack-3.2.21/lib/action_dispatch/middleware/show_exceptions.rb
-> call
57:
[GEM_ROOT]/gems/newrelic_rpm-3.9.9.275/lib/new_relic/agent/instrumentation/middleware_tracing.rb
-> call
32: [GEM_ROOT]/gems/railties-3.2.21/lib/rails/rack/logger.rb ->
call_app
16: [GEM_ROOT]/gems/railties-3.2.21/lib/rails/rack/logger.rb ->
block in call
22:
[GEM_ROOT]/gems/activesupport-3.2.21/lib/active_support/tagged_logging.rb
-> tagged
16: [GEM_ROOT]/gems/railties-3.2.21/lib/rails/rack/logger.rb ->
call
57:
[GEM_ROOT]/gems/newrelic_rpm-3.9.9.275/lib/new_relic/agent/instrumentation/middleware_tracing.rb
-> call
22:
[GEM_ROOT]/gems/actionpack-3.2.21/lib/action_dispatch/middleware/request_id.rb
-> call
57:
[GEM_ROOT]/gems/newrelic_rpm-3.9.9.275/lib/new_relic/agent/instrumentation/middleware_tracing.rb
-> call
21: [GEM_ROOT]/gems/rack-1.4.5/lib/rack/methodoverride.rb ->
call
57:
[GEM_ROOT]/gems/newrelic_rpm-3.9.9.275/lib/new_relic/agent/instrumentation/middleware_tracing.rb
-> call
17: [GEM_ROOT]/gems/rack-1.4.5/lib/rack/runtime.rb ->
call
57:
[GEM_ROOT]/gems/newrelic_rpm-3.9.9.275/lib/new_relic/agent/instrumentation/middleware_tracing.rb
-> call
72:
[GEM_ROOT]/gems/activesupport-3.2.21/lib/active_support/cache/strategy/local_cache.rb
-> call
57:
[GEM_ROOT]/gems/newrelic_rpm-3.9.9.275/lib/new_relic/agent/instrumentation/middleware_tracing.rb
-> call
15: [GEM_ROOT]/gems/rack-1.4.5/lib/rack/lock.rb ->
call
57:
[GEM_ROOT]/gems/newrelic_rpm-3.9.9.275/lib/new_relic/agent/instrumentation/middleware_tracing.rb
-> call
136: [GEM_ROOT]/gems/rack-cache-1.2/lib/rack/cache/context.rb ->
forward
245: [GEM_ROOT]/gems/rack-cache-1.2/lib/rack/cache/context.rb ->
fetch
185: [GEM_ROOT]/gems/rack-cache-1.2/lib/rack/cache/context.rb ->
lookup
66: [GEM_ROOT]/gems/rack-cache-1.2/lib/rack/cache/context.rb ->
call!
51: [GEM_ROOT]/gems/rack-cache-1.2/lib/rack/cache/context.rb ->
call
57:
[GEM_ROOT]/gems/newrelic_rpm-3.9.9.275/lib/new_relic/agent/instrumentation/middleware_tracing.rb
-> call
57:
[GEM_ROOT]/gems/newrelic_rpm-3.9.9.275/lib/new_relic/agent/instrumentation/middleware_tracing.rb
-> call
484: [GEM_ROOT]/gems/railties-3.2.21/lib/rails/engine.rb ->
call
231: [GEM_ROOT]/gems/railties-3.2.21/lib/rails/application.rb ->
call
30:
[GEM_ROOT]/gems/railties-3.2.21/lib/rails/railtie/configurable.rb
-> method_missing
57:
[GEM_ROOT]/gems/newrelic_rpm-3.9.9.275/lib/new_relic/agent/instrumentation/middleware_tracing.rb
-> call
74:
/home/rails/.rvm/gems/ruby-2.0.0-p451@sims_ruby1.9.3/gems/passenger-4.0.50/lib/phusion_passenger/rack/thread_handler_extension.rb
-> process_request
141:
/home/rails/.rvm/gems/ruby-2.0.0-p451@sims_ruby1.9.3/gems/passenger-4.0.50/lib/phusion_passenger/request_handler/thread_handler.rb
-> accept_and_process_next_request
109:
/home/rails/.rvm/gems/ruby-2.0.0-p451@sims_ruby1.9.3/gems/passenger-4.0.50/lib/phusion_passenger/request_handler/thread_handler.rb
-> main_loop
455:
/home/rails/.rvm/gems/ruby-2.0.0-p451@sims_ruby1.9.3/gems/passenger-4.0.50/lib/phusion_passenger/request_handler.rb
-> block (3 levels) in start_threads
Environment
SERVER_SOFTWARE: Apache/2.4.7 (Ubuntu)
SERVER_PROTOCOL: HTTP/1.1
SERVER_NAME: training.simspilot.org
SERVER_ADMIN: [no address given]
SERVER_ADDR: 107.170.213.213
SERVER_PORT: 443
REMOTE_ADDR: 75.164.214.83
REMOTE_PORT: 34461
REQUEST_METHOD: GET
QUERY_STRING: page=0
HTTPS: on
DOCUMENT_ROOT: /srv/sims/current/public
REQUEST_URI: /grouped_progress_entries/6455-3548/aggregate?page=0
SCRIPT_NAME:
PATH_INFO: /grouped_progress_entries/6455-3548/aggregate
HTTP_HOST: training.simspilot.org
HTTP_CONNECTION: keep-alive
HTTP_ACCEPT: image/webp,*/*;q=0.8
HTTP_USER_AGENT: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.101 Safari/537.36
HTTP_REFERER: https://training.simspilot.org/grouped_progress_entries/6455-3548
HTTP_ACCEPT_ENCODING: gzip, deflate, sdch
HTTP_ACCEPT_LANGUAGE: en-US,en;q=0.8
HTTP_X_FORWARDED_PROTO: https
SCRIPT_URL: /grouped_progress_entries/6455-3548/aggregate
SCRIPT_URI: https://training.simspilot.org/grouped_progress_entries/6455-3548/a...
SSL_TLS_SNI: training.simspilot.org
PASSENGER_STATUS_LINE: false
PASSENGER_APP_ROOT: /srv/sims/current
PASSENGER_APP_GROUP_NAME: /srv/sims/current
PASSENGER_RUBY: /home/rails/.rvm/gems/ruby-2.0.0-p451@sims_ruby1.9.3/wrappers/ruby
PASSENGER_APP_ENV: production
PASSENGER_MIN_PROCESSES: 3
PASSENGER_MAX_PROCESSES: 0
PASSENGER_MAX_REQUESTS: 350
PASSENGER_SPAWN_METHOD: smart
PASSENGER_APP_TYPE: rack
PASSENGER_MAX_PRELOADER_IDLE_TIME: -1
PASSENGER_DEBUGGER: false
PASSENGER_SHOW_VERSION_IN_HEADER: true
PASSENGER_STAT_THROTTLE_RATE: 0
PASSENGER_RESTART_DIR:
PASSENGER_FRIENDLY_ERROR_PAGES: true
PASSENGER_CONNECT_PASSWORD: cvfU2pKFu8hHZuRuezlUSKFT0PnMDaJc4yt5I0T3tlM
rack_version: ["1", "2"]
rack_multithread: false
rack_multiprocess: true
rack_run_once: false
rack_url_scheme: https
rack_hijack?: true
rack_hijack: #
newrelic_captured_request: true
ORIGINAL_FULLPATH: /grouped_progress_entries/6455-3548/aggregate?page=0
action_dispatch_parameter_filter: ["password"]
action_dispatch_show_exceptions: true
action_dispatch_show_detailed_exceptions: false
rack-cache_cache_key: Rack::Cache::Key
rack-cache_verbose: false
rack-cache_metastore: rails:/
rack-cache_entitystore: rails:/
rack-cache_default_ttl: 0
rack-cache_ignore_headers: ["Set-Cookie"]
rack-cache_private_headers: ["Authorization", "Cookie"]
rack-cache_allow_reload: false
rack-cache_allow_revalidate: false
rack-cache_use_native_ttl: false
action_dispatch_request_id: 335424ab74314cdb014b9227940c5a2f
action_dispatch_remote_ip: 75.164.214.83
warden: Warden::Proxy:70033570025940 @config={:default_scope=>:user, :scope_defaults=>{}, :default_strategies=>{:user=>[:database_authenticatable]}, :intercept_401=>false, :failure_app=>#Devise::Delegator:0x00000004849d98}
newrelic_agent_hooks_fired: true
action_dispatch_request_path_parameters: {"action"=>"aggregate", "controller"=>"grouped_progress_entries", "id"=>"6455-3548"}
action_dispatch_request_content_type:
action_dispatch_request_request_parameters:
rack_request_query_string: page=0
rack_request_query_hash: {"page"=>"0"}
action_dispatch_request_query_parameters: {"page"=>"0"}
action_dispatch_request_parameters: {"page"=>"0", "action"=>"aggregate", "controller"=>"grouped_progress_entries", "id"=>"6455-3548"}
action_dispatch_request_formats: ["text/html"]
Reported by shawn (at vegantech) · April 15th, 2015 @ 06:53 PM
-
shawn (at vegantech)
should state there are no scores.
as image?
https://chart.googleapis.com/chart?cht=tx&chl=no%5C%20scores
-
shawn (at vegantech)
- State changed from new to needs_tests
(from [d7dac07c3d71c7de6390ae958620bc3692fc233f]) [#829 state:needs_tests] display no scores image im aggregate graph when no scores are entered https://github.com/vegantech/sims/commit/d7dac07c3d71c7de6390ae9586...
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.