500 Internal Server Error - ActionView::Template::Error (undefined method `html_safe' for nil:NilClass)
Closed this issue · 0 comments
Installing everything new today, on a Centos server, running Phusion Passenger and Nginx. Ruby 1.8.7.
Redmine 2.2
I install the "redmine embedded" plugin via git clone, then stop Nginx, then start Nginx.
I try to upload something and I get:
Started POST "/projects/systems/embedded/upload" for 10.0.1.53 at Wed Feb 06 17:01:31 -0500 2013
Processing by RedmineEmbeddedController#upload as HTML
Parameters: {"commit"=>"Upload", "utf8"=>"✓", "id"=>"systems", "upload"=>{"datafile"=>#<ActionDispatch::Http::UploadedFile:0x7f493e5ecca0 @original_filename="tositeconfig.html"
, @tempfile=#File:/tmp/RackMultipart20130206-2990-x7s725-0, @content_type="text/html", @headers="Content-Disposition: form-data; name="upload[datafile]"; filename="tositecon
fig.html"\r\nContent-Type: text/html\r\n">}, "authenticity_token"=>"LjMzA63/L+G8Uj/1/uFefLYMJ1MxOTdTB516XTS6rjE="}
Current user: lkrubner (id=176)
Rendered plugins/redmine_embedded/app/views/redmine_embedded/_upload.html.erb (1.3ms)
Rendered plugins/redmine_embedded/app/views/redmine_embedded/index.html.erb within layouts/base (2.5ms)
Completed 500 Internal Server Error in 13ms
ActionView::Template::Error (undefined method html_safe' for nil:NilClass): 1: <%= render :partial => "upload" if User.current.allowed_to?(:edit_embedded_doc, @project) -%> 2: 3: <!-- Embedded page --> 4: <%= @content.html_safe %> 5: <!-- Embedded page end --> 6: plugins/redmine_embedded/app/views/redmine_embedded/index.html.erb:3:in
_plugins_redmine_embedded_app_views_redmine_embedded_index_html_erb___139501945_69976274468700'
actionpack (3.2.11) lib/action_view/template.rb:145:in send' actionpack (3.2.11) lib/action_view/template.rb:145:in
render'
activesupport (3.2.11) lib/active_support/notifications.rb:125:in instrument' actionpack (3.2.11) lib/action_view/template.rb:143:in
render'
actionpack (3.2.11) lib/action_view/renderer/template_renderer.rb:47:in render_template' actionpack (3.2.11) lib/action_view/renderer/abstract_renderer.rb:38:in
instrument'
activesupport (3.2.11) lib/active_support/notifications.rb:123:in instrument' activesupport (3.2.11) lib/active_support/notifications/instrumenter.rb:20:in
instrument'
activesupport (3.2.11) lib/active_support/notifications.rb:123:in instrument' actionpack (3.2.11) lib/action_view/renderer/abstract_renderer.rb:38:in
instrument'
actionpack (3.2.11) lib/action_view/renderer/template_renderer.rb:46:in render_template' actionpack (3.2.11) lib/action_view/renderer/template_renderer.rb:54:in
render_with_layout'
actionpack (3.2.11) lib/action_view/renderer/template_renderer.rb:45:in render_template' actionpack (3.2.11) lib/action_view/renderer/template_renderer.rb:18:in
render'