Project

General

Profile

Actions

Defect #7317

closed

Gantt tab gives internal error due to nil avatar icon

Added by Luke Dixon over 13 years ago. Updated about 13 years ago.

Status:
Closed
Priority:
Normal
Category:
Gantt
Target version:
Start date:
2011-01-13
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

Hello.

All was working fine for the last few days since i installed it, including the Gantt chart tab.

However after setting the due date on one of the versions, the Gantt tab now will not load and gives an Internal Error (500).

I read some old issues regarding blank Strings but they were resolved.

Ruby version 1.8.7 (i686-linux)
RubyGems version 1.4.2
Rack version 1.0
Rails version 2.3.5
Active Record version 2.3.5
Active Resource version 2.3.5
Action Mailer version 2.3.5
Active Support version 2.3.5
Edge Rails revision unknown
Application root /home/nicedist/redmine-1.1.0
Environment production
Database adapter mysql
Database schema version 20101114115359

Error in production.log:
ActionView::TemplateError (can't convert nil into String) on line #63 of app/views/gantts/show.html.erb:
60: # Width of the entire chart
61: g_width = (@gantt.date_to - @gantt.date_from + 1)*zoom
62:
63: @gantt.render(:top => headers_height + 8, :zoom => zoom, :g_width => g_width)
64:
65: g_height = [(20 * (@gantt.number_of_rows + 6))+150, 206].max
66: t_height = g_height + headers_height

    lib/redmine/helpers/gantt.rb:356:in `subject_for_issue'
    lib/redmine/helpers/gantt.rb:221:in `render_issues'
    lib/redmine/helpers/gantt.rb:220:in `each'
    lib/redmine/helpers/gantt.rb:220:in `render_issues'
    lib/redmine/helpers/gantt.rb:251:in `render_version'
    lib/redmine/helpers/gantt.rb:203:in `render_project'
    lib/redmine/helpers/gantt.rb:202:in `each'
    lib/redmine/helpers/gantt.rb:202:in `render_project'
    lib/redmine/helpers/gantt.rb:166:in `render'
    app/views/gantts/show.html.erb:63
    app/controllers/gantts_controller.rb:26:in `show'
    app/controllers/gantts_controller.rb:25:in `show'

Rendering /home/nicedist/redmine-1.1.0/public/500.html (500 Internal Server Error)

If there's nay more info you need please let me know.
Cheers!

Actions

Also available in: Atom PDF