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

Closed
Open
Created Sep 28, 2012 by Administrator@rootOwner

Password reset page results in error 500

Created by: thomwiggers

The password reset page results in a 500 error due to what looks like the ruby equivalent of a null pointer.

Started GET "/users/password/new" for 127.0.0.1 at 2012-09-29 01:28:54 +0200
Processing by Devise::PasswordsController#new as HTML
  Rendered devise/shared/_links.erb (0.3ms)
  Rendered devise/passwords/new.html.erb within layouts/application (2.0ms)
  Rendered layouts/_head.html.haml (1.1ms)
  Rendered layouts/_flash.html.haml (0.1ms)
  Rendered layouts/_head_panel.html.haml (1.7ms)
Completed 500 Internal Server Error in 8ms

ActionView::Template::Error (undefined method `is_admin?' for nil:NilClass):
    12:         = form_tag search_path, method: :get do |f|
    13:           = text_field_tag "search", nil, placeholder: "Search", class: "search-input"
    14:       .fbtn
    15:         - if current_user.is_admin?
    16:           = link_to admin_root_path, class: "btn small", title: "Admin area" do
    17:             %i.icon-cog
    18:             Admin
  app/views/layouts/_head_panel.html.haml:15:in `_app_views_layouts__head_panel_html_haml___597222991215799015_53167500'
  app/views/layouts/application.html.haml:6:in `_app_views_layouts_application_html_haml__3495812077105832191_53112720' 

I'm on master, commit a79eb842

Assignee
Assign to
Time tracking