Project

General

Profile

Actions

Bug #282

closed

NoMethodError in Dashboard#OutOfSync

Added by Ashley Penney over 14 years ago. Updated over 14 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Dashboard
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

NoMethodError in Dashboard#OutOfSync

Showing app/views/hosts/_minilist.html.erb where line #24 raised:

You have a nil object when you didn't expect it!
You might have expected an instance of ActiveRecord::Base.
The error occurred while evaluating nil.[]
Extracted source (around line #24):

21: <td><%=h host.try(:environment) ></td>
22: <td><
=h host.try(:model) ></td>
23: <td><
=h host.try(:hostgroup) ></td>
24: <td><
=last_report_column(host) ></td>
25: <td>
26: <
= link_to 'Edit', edit_host_url(host) >
27: <
= link_to 'Clone', clone_host_url(host) %>
RAILS_ROOT: /usr/share/foreman

Application Trace | Framework Trace | Full Trace
/usr/share/foreman/app/helpers/hosts_helper.rb:6:in `last_report_column'
/usr/share/foreman/app/views/hosts/_minilist.html.erb:24:in `_run_erb_app47views47hosts47_minilist46html46erb_locals_header_hosts_minilist_object'
/usr/share/foreman/app/views/hosts/_minilist.html.erb:14:in `each'
/usr/share/foreman/app/views/hosts/_minilist.html.erb:14:in `_run_erb_app47views47hosts47_minilist46html46erb_locals_header_hosts_minilist_object'
/usr/share/foreman/app/views/hosts/_minilist.html.erb:2:in `_run_erb_app47views47hosts47_minilist46html46erb_locals_header_hosts_minilist_object'
/usr/share/foreman/app/controllers/dashboard_controller.rb:43:in `OutOfSync'
/usr/share/foreman/app/controllers/dashboard_controller.rb:38:in `OutOfSync'
Request

Parameters:

None
Show session dump

Response

Headers:

{"Content-Type"=>"text/html",
"Cache-Control"=>"no-cache"}

Actions #1

Updated by Ohad Levy over 14 years ago

  • Category set to Dashboard
  • Assignee set to Ohad Levy
  • Target version set to 0.1-5
Actions #2

Updated by Ohad Levy over 14 years ago

  • Status changed from New to Ready For Testing
  • % Done changed from 0 to 100
Actions #3

Updated by Ohad Levy over 14 years ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF