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
  • #9484

Closed
Open
Created Jul 24, 2015 by Administrator@rootOwner

[v7.13] ActionView::Template::Error (undefined method `sha' for nil:NilClass)

Created by: elboletaire

After upgrading gitlab to 7.13 I started getting 500 errors on some of my projects. If I run the gitlab tests it says everything is ok.

Here's what the production.log states about my error:

Completed 500 Internal Server Error in 992ms (ActiveRecord: 330.5ms)
ActionView::Template::Error (undefined method `sha' for nil:NilClass):
7: = link_to namespace_project_edit_blob_path(@project.namespace, @project, tree_join(@repository.root_ref, readme.name)), class: 'light' do
8: %i.fa.fa-pencil
9: .wiki
10: = cache(readme_cache_key) do
11: = render_readme(readme)
12: - else
13: %h3.page-title
app/helpers/projects_helper.rb:277:in `readme_cache_key'
app/views/projects/_readme.html.haml:10:in `_app_views_projects__readme_html_haml___2518100473481433653_69882723290400'
app/views/projects/show.html.haml:47:in `_app_views_projects_show_html_haml___991411998595127387_69882660500980'
app/controllers/projects_controller.rb:85:in `block (2 levels) in show'
app/controllers/projects_controller.rb:79:in `show'
Assignee
Assign to
Time tracking