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

Closed
Open
Created May 11, 2012 by Administrator@rootOwner

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

alt text

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)
Assignee
Assign to
Time tracking