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

Closed
Open
Created May 22, 2013 by Administrator@rootOwner

Getting error 500 on home page of the project when using external issue tracker

Created by: arren-ru

When the project have configured to use external issue tracker (Redmine) the home page of this project always returns error 500.

gitlab.yml
  ## External issues trackers
  issues_tracker:
    redmine:
      project_url: "https://my.redmine.host/projects/:issues_tracker_id"
      issues_url:  "https://my.redmine.host/issues/:id"
production.log
Started GET "/expert" for  at 2013-05-22 23:48:11 +0700
Processing by ProjectsController#show as HTML
  Parameters: {"id"=>"expert"}
  Rendered shared/_clone_panel.html.haml (1.9ms)
  Rendered projects/_clone_panel.html.haml (38.3ms)
  Rendered events/_event_last_push.html.haml (0.3ms)
Read fragment views/events/442-20130513170643 (2.0ms)
Read fragment views/events/437-20130511084717 (1.3ms)
  Rendered events/_event.html.haml (176.7ms)
  Rendered projects/show.html.haml within layouts/project_resource (235.4ms)
Completed 500 Internal Server Error in 308ms

ActionView::Template::Error (undefined method `gsub' for nil:NilClass):
    14:         %ul.dropdown-menu
    15:           - if @project.issues_enabled && can?(current_user, :write_issue, @project)
    16:             %li
    17:               = link_to url_for_new_issue, title: "New Issue" do
    18:                 Issue
    19:           - if @project.merge_requests_enabled && can?(current_user, :write_merge_request, @project)
    20:             %li
  app/helpers/issues_helper.rb:54:in `url_for_new_issue'
  app/views/projects/show.html.haml:17:in `_app_views_projects_show_html_haml__470149780_97944960'
  app/controllers/projects_controller.rb:64:in `block (2 levels) in show'
  app/controllers/projects_controller.rb:58:in `show'

Installed exactly last update 5.2.0, but error was on early version 5.1.0.

So, issues in commits page working and issue tab going to external issue tracker with its project's name exactly.

Assignee
Assign to
Time tracking