Completed 500 Internal Server Error. Undefined method `gsub' for nil:NilClass
Created by: UnikZ
After update from 5.0 to 5.1, I have 500 error on serial projects in Gitlab.
ActionView::Template::Error (undefined method gsub' for nil:NilClass): 13: = link_to new_project_merge_request_path(@project), title: "New Merge Request", class: "btn-small btn grouped" do 14: Merge Request 15: - if @project.issues_enabled && can?(current_user, :write_issue, @project) 16: = link_to url_for_new_issue, title: "New Issue", class: "btn-small btn grouped" do 17: Issue app/helpers/issues_helper.rb:64:in
url_for_new_issue'
app/views/projects/_clone_panel.html.haml:16:in _app_views_projects__clone_panel_html_haml__4580236672399910940_33169480' app/views/projects/show.html.haml:1:in
_app_views_projects_show_html_haml___280269605339445756_29969760'
app/controllers/projects_controller.rb:64:in block (2 levels) in show' app/controllers/projects_controller.rb:58:in
show'
All of these projects have external issue tracker Redmine connected. After some time I solved this problem by adding "new_issue_url" parameter to gitlab.yml config. And it works!
I think that this parameter must be in example config file.