Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Issues
  • #4049

Closed
Open
Created May 23, 2013 by Administrator@rootOwner

Undefined method `committed_date'

Created by: Thijmen

Hi,

Using 5.2.0 6654db2c.

I upgraded from 5.0 to 5.1, from 5.1 to 5.2. When viewing files of a project, the commit messages aren't loading. Firebug shows a 500 error on the request. This is the log;

Started GET "/project123/tree/master/application/controllers" for  at 2013-05-23 15:09:04 +0200
Processing by TreeController#show as HTML
  Parameters: {"project_id"=>"thijmen/project123", "id"=>"master/application/controllers"}
  Rendered shared/_ref_switcher.html.haml (2.4ms)
  Rendered tree/_blob_item.html.haml (130.9ms)
  Rendered tree/_tree.html.haml (152.0ms)
  Rendered tree/show.html.haml within layouts/project_resource (155.1ms)
  Rendered layouts/_head.html.haml (2.1ms)
  Rendered layouts/_search.html.haml (130.1ms)
  Rendered layouts/_head_panel.html.haml (134.5ms)
  Rendered layouts/_init_auto_complete.html.haml (6.5ms)
  Rendered layouts/_flash.html.haml (0.1ms)
  Rendered shared/_no_ssh.html.haml (1.4ms)
  Rendered layouts/nav/_project.html.haml (17.0ms)
Completed 200 OK in 369ms (Views: 321.6ms | ActiveRecord: 9.5ms)
Started GET "/project123/refs/master/logs_tree/application/controllers?_=1369314535919" for  at 2013-05-23 15:09:05 +0200
Processing by RefsController#logs_tree as JS
  Parameters: {"_"=>"1369314535919", "project_id"=>"thijmen/project123", "id"=>"master", "path"=>"application/controllers"}
  Rendered refs/logs_tree.js.haml (1.0ms)
Completed 500 Internal Server Error in 48ms

ActionView::Template::Error (undefined method `committed_date' for nil:NilClass):
    4:
    5:   :plain
    6:     var row = $("table.table_#{@hex_path} tr.file_#{hexdigest(file_name)}");
    7:     row.find("td.tree_time_ago").html('#{escape_javascript time_ago_in_words(commit.committed_date)} ago');
    8:     row.find("td.tree_commit").html('#{escape_javascript render("tree/tree_commit_column", commit: commit)}');
  app/views/refs/logs_tree.js.haml:7:in `block in _app_views_refs_logs_tree_js_haml___3639508655136653507_50416660'
  app/views/refs/logs_tree.js.haml:1:in `each'
  app/views/refs/logs_tree.js.haml:1:in `_app_views_refs_logs_tree_js_haml___3639508655136653507_50416660'
Assignee
Assign to
Time tracking