raphendyr / gitlabhq

This fork contained implementation for PAM based login to Gitlab. It's left as archived as the feature was never merged.
MIT License
1 stars 1 forks source link

Can't edit project #8

Closed xaionaro closed 2 years ago

xaionaro commented 10 years ago

Hello.

Help, please :)

When I'm trying to edit a project, I'm getting message "500 We're sorry, but something went wrong."

How can I fix it?

Here's the log:

Started GET "/dyokunev/test/edit" for 85.143.112.127 at 2013-12-10 10:15:44 +0400 Processing by ProjectsController#edit as HTML Parameters: {"id"=>"dyokunev/test"} Rendered projects/_settings_nav.html.haml (3.9ms) Rendered projects/_form.html.haml (3.4ms) Rendered projects/edit.html.haml within layouts/project_resource (8.2ms) Completed 500 Internal Server Error in 42ms

ActionView::Template::Error (undefined method heads' for nil:NilClass): 36: .input 37: = f.text_area :description, placeholder: "awesome project", class: "span5", rows: 3, maxlength: 250 38: 39: - unless @repository.heads.empty? 40: .clearfix 41: = f.label :default_branch, "Default Branch" 42: .input= f.select(:default_branch, @repository.heads.map(&:name), {}, style: "width:210px;") app/views/projects/_form.html.haml:39:inblock in _app_views_projectsform_html_haml49062562017686517_25914160' app/views/projects/_form.html.haml:17:in _app_views_projects__form_html_haml__49062562017686517_25914160' app/views/projects/edit.html.haml:6:in_app_views_projects_edit_html_haml__1712864913124306130_24782600'

Started GET "/static.css" for 85.143.112.127 at 2013-12-10 10:15:44 +0400 Processing by ProjectsController#show as HTML Parameters: {"id"=>"static.css"} Started GET "/favicon.ico" for 85.143.112.127 at 2013-12-10 10:15:44 +0400 Rendered public/404.html (0.1ms) Filter chain halted as :project rendered or redirected Completed 404 Not Found in 5ms (Views: 0.9ms | ActiveRecord: 0.3ms) Processing by ProjectsController#show as HTML Parameters: {"id"=>"favicon.ico"} Completed 401 Unauthorized in 1ms

xaionaro commented 10 years ago

From not standard thing what I made (and may cause the bug): I've copied "script/{background_jobs,web}" from vanilla GitLab and used them to run the GitLab instance.