Can't display code-blocks
Created by: mrohnstock
Just updated from gitlab 3.1 to 4.0 and migrated from sqlite3 to mysql (as it is required now).
Followed the steps to migrate from sqlite3 to mysql and to upgrade from 3.1 to 4.0, everything went well.
bundle exec rake gitlab:check RAILS_ENV=production
got executed without errors.
Gitlab works without errors, but on trying to view /help/markdown I recieve 500
-error-message and in /log/productions.log
the following appear:
Processing by HelpController#markdown as HTML
Rendered help/markdown.html.haml within layouts/application (248.2ms)
Completed 500 Internal Server Error in 252ms
ActionView::Template::Error (Failed to get header.):
69:
70: %pre= %Q{```ruby\nrequire 'redcarpet'\nmarkdown = Redcarpet.new("Hello World!")\nputs markdown.to_html\n```}
71: %p becomes
72: = markdown %Q{```ruby\nrequire 'redcarpet'\nmarkdown = Redcarpet.new("Hello World!")\nputs markdown.to_html\n```}
73:
74: %h4 Emoji
75:
lib/redcarpet/render/gitlab_html.rb:25:in `block_code'
app/helpers/gitlab_markdown_helper.rb:44:in `render'
app/helpers/gitlab_markdown_helper.rb:44:in `markdown'
app/views/help/markdown.html.haml:72:in `_app_views_help_markdown_html_haml___1117442879566876220_59250580'
Viewing Codeblocks i.e. in issues returns 500
, too, and the following appear in /log/productions.log
:
Processing by IssuesController#show as HTML
Parameters: {"project_id"=>"ralf3", "id"=>"31"}
Rendered votes/_votes_block.html.haml (1.0ms)
Rendered issues/show.html.haml within layouts/project_resource (109.9ms)
Completed 500 Internal Server Error in 118ms
ActionView::Template::Error (Failed to get header.):
52: - if @issue.description.present?
53: .bottom_box_content
54: = preserve do
55: = markdown @issue.description
56:
57:
58: .issue_notes.voting_notes#notes= render "notes/notes_with_form", tid: @issue.id, tt: "issue"
lib/redcarpet/render/gitlab_html.rb:25:in `block_code'
app/helpers/gitlab_markdown_helper.rb:44:in `render'
app/helpers/gitlab_markdown_helper.rb:44:in `markdown'
app/views/issues/show.html.haml:55:in `block in _app_views_issues_show_html_haml___2188061472299518258_51284840'
app/views/issues/show.html.haml:54:in `_app_views_issues_show_html_haml___2188061472299518258_51284840'
app/controllers/issues_controller.rb:39:in `show'