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

Closed
Open
Created Oct 06, 2015 by Administrator@rootOwner

undefined method `namespace' for nil:NilClass

Created by: KittMedia

As soon as I want to open the notification area in my profile settings I get a 500 server error and the following error message in the production.log:

Started GET "/profile/notifications" for 79.209.197.185 at 2015-10-06 19:44:37 +0200
Processing by Profiles::NotificationsController#show as HTML
Completed 500 Internal Server Error in 81ms (ActiveRecord: 3.7ms)

ActionView::Template::Error (undefined method `namespace' for nil:NilClass):
     9:     - if membership.kind_of? GroupMember
    10:       = link_to membership.group.name, membership.group
    11:     - else
    12:       = link_to_project(membership.project)
    13:   .pull-right
    14:     = form_tag profile_notifications_path, method: :put, remote: true, class: 'update-notifications' do
    15:       = hidden_field_tag :notification_type, type, id: dom_id(membership, 'notification_type')
  app/helpers/projects_helper.rb:11:in `link_to_project'
  app/views/profiles/notifications/_settings.html.haml:12:in `_app_views_profiles_notifications__settings_html_haml___1632414390763284649_69823403984940'
  app/views/profiles/notifications/show.html.haml:79:in `block in _app_views_profiles_notifications_show_html_haml___2873072603207954877_69823404655400'
  app/views/profiles/notifications/show.html.haml:77:in `_app_views_profiles_notifications_show_html_haml___2873072603207954877_69823404655400'

I already checked the database, especially the namespaces to projects references and they seem to be fine.

Does anyone know what happened here and how to resolve this issue?

System information: Debian Jessie Latest 8.0.x release Installed from source

Assignee
Assign to
Time tracking