Can't view source code of php file
Closed
Can't view source code of php file
Created by: ghost
Hi guys,
Apparently seems that the GitLab "source code viewer" does not like php files.
When I try to access them in the browser from the gitlab interface I receive a gitlab blank page like the image below, and I am redirected to http://domain/projectname/master/tree
This is what has been recorded into the log:
Started GET "/gitlab2tracker-hook/master/tree/README.md" for 127.0.0.1 at 2012-05-11 15:33:42 +0100
Processing by RefsController#tree as JS
Parameters: {"project_id"=>"gitlab2tracker-hook", "id"=>"master", "path"=>"README.md"}
Rendered refs/_tree_file.html.haml (5.7ms)
Rendered refs/_tree.html.haml (8.9ms)
Rendered refs/tree.js.haml (9.6ms)
Completed 200 OK in 21ms (Views: 10.2ms | ActiveRecord: 0.4ms)
Started GET "/gitlab2tracker-hook/master/tree?_=1336746815379" for 127.0.0.1 at 2012-05-11 15:33:44 +0100
Processing by RefsController#tree as JS
Parameters: {"_"=>"1336746815379", "project_id"=>"gitlab2tracker-hook", "id"=>"master"}
Rendered refs/_tree_item.html.haml (11.9ms)
Rendered refs/_tree_item.html.haml (10.2ms)
Rendered refs/_tree_item.html.haml (10.5ms)
Rendered refs/_tree.html.haml (40.8ms)
Rendered refs/tree.js.haml (41.7ms)
Completed 200 OK in 57ms (Views: 42.4ms | ActiveRecord: 0.8ms)
Created by: maykel535
This is my log:
Completed 500 Internal Server Error in 138ms
ActionView::Template::Error (Failed to get header.): 9: .file_content.code 10: - unless blob.empty? 11: %div{class: user_color_scheme_class} 12: = raw blob.colorize(formatter: :gitlab) 13: - else 14: %p.nothing_here_message Empty file app/models/tree.rb:6:in
colorize' app/views/tree/blob/_text.html.haml:12:in
_app_views_tree_blob__text_html_haml__4034305902389619354_62142540' app/views/tree/_blob.html.haml:9:in_app_views_tree__blob_html_haml__3087930670128082199_62899880' app/views/tree/_tree.html.haml:19:in
_app_views_tree__tree_html_haml__690438233125411681_55336460' app/views/tree/show.js.haml:3:in `_app_views_tree_show_js_haml___2923826176826040621_41632860'By Administrator on 2013-02-26T10:31:50 (imported from GitLab project)