Error 500 when gravatar is enabled #231

corelanc0d3r opened this Issue Nov 9, 2012 · 1 comment


None yet
2 participants

After enabling a gravatar for my admin user, the dashboard no longer works.
The log file indicates

  Processing by PageController#dashboard as HTML
Rendered page/_severity_dashboard.html.erb (9.5ms)
Rendered page/_graph_event.html.erb (6.6ms)
Rendered page/_graph_severity.html.erb (0.4ms)
Rendered page/_graph_protocol.html.erb (0.4ms)
Rendered page/_graph_signature.html.erb (2.0ms)
Rendered page/_graph_source_ips.html.erb (0.6ms)
Rendered page/_graph_destination_ips.html.erb (2.6ms)
Rendered page/_graph_dashboard.html.erb (15.1ms)
Rendered page/dashboard.html.erb within layouts/application (171.9ms)
Completed 500 Internal Server Error in 8325ms

ActionView::Template::Error (undefined method `downcase' for nil:NilClass):
    124:                <ul class='box-list'>
    125:                        <% @favers.each do |user| %>
    126:                        <li class='has-image'>
    127:                                <%= image_tag(get_gravatar_uri(, :size => '16x16', :class => 'avatar-small') %>
    128:                                <%= link_to truncate(, :length => 30), results_path(:title => "#{truncate("Events Classified
By " +, :length => 60)}",
    129:                 "match_all"=>"true", "search"=>{"user"=>{"column"=>"user", "operator"=>"is", "value"=> } }), :title => user.n
ame %>
    130:                                <span><%= number_with_delimiter user.classify_count %></span>
  app/helpers/users_helper.rb:10:in `get_gravatar_uri'
  app/views/page/dashboard.html.erb:127:in `block in _app_views_page_dashboard_html_erb__806299895_103013880'
  app/views/page/dashboard.html.erb:125:in `_app_views_page_dashboard_html_erb__806299895_103013880'
  app/controllers/page_controller.rb:45:in `dashboard'

I am running version 2.5.3


mephux commented Nov 14, 2012

I'm looking into this.

@mephux mephux closed this May 5, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment