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

Closed
Open
Created Apr 20, 2013 by Administrator@rootOwner

Error 500 Undefined method `public'

Created by: sdurrheimer

Hello,

I recently upgraded my gitlab instance from 4.0 -> 4.1 -> 4.2 -> 5.0. Everything got fine but now when I try to access a existing repository I got a Error 500 saying that the public method is undefined. Here is the corresponding error log :

...
Rendered events/_event.html.haml (14.4ms)
227   Rendered projects/show.html.haml within layouts/project_resource (115.5ms)
228 Completed 500 Internal Server Error in 137ms
229 
230 ActionView::Template::Error (undefined method `public' for #<Project:0x00000003d3cdd8>):
231     16:         %hr
232     17:         %p
233     18:           Access level:
234     19:           - if @project.public
235     20:             %span.cblue
236     21:               %i.icon-share
237     22:               Public
238   app/views/projects/show.html.haml:19:in `_app_views_projects_show_html_haml__2477365795223578828_54783680'
239   app/controllers/projects_controller.rb:62:in `block (2 levels) in show'
240   app/controllers/projects_controller.rb:58:in `show'

Thanks in advance

Assignee
Assign to
Time tracking