Project

General

Profile

Error #671

Invalid enconding on settings view

Added by Emilio González Montaña about 10 years ago.

Status:
Resolved
Priority:
Normal
Category:
Administration
Target version:
Start date:
2012-11-06
Due date:
2012-11-06
% Done:

100%

Estimated time:
Source:
Testing
Detected on version:
Redmine version:
Redmine 2.1.2
Milestones:

Description

Started GET "/settings/plugin/localizable" for 188.85.110.147 at 2012-11-06 15:47:19 +0100
Processing by SettingsController#plugin as HTML
  Parameters: {"id"=>"localizable"}
  Current user: emilio (id=5)
  Rendered plugins/localizable/app/views/settings/_localizable.html.erb (22.7ms)
  Rendered settings/plugin.html.erb within layouts/admin (25.1ms)
Completed 500 Internal Server Error in 34ms

ActionView::Template::Error (undefined method `force_encoding' for nil:NilClass):
    93:       <%- @settings["locales_to_translate"].each do |locale| -%>
    94:       <td align="left">
    95:         <input name="settings[locales][<%= element[:name] %>][<%= object.id %>][<%= locale.force_encoding("UTF-8") %>]" 
    96:                value="<%= @settings["locales"][element[:name]][object.id.to_s][locale].force_encoding("UTF-8") %>" />
    97:       </td>
    98:       <%- end -%>
    99:     </tr>
  app/views/settings/plugin.html.erb:6:in `block in _app_views_settings_plugin_html_erb__2964238334299809884_26659500'
  app/views/settings/plugin.html.erb:4:in `_app_views_settings_plugin_html_erb__2964238334299809884_26659500'

Related issues

Related to Localizable - Feature #665: Upgrade plugin to version 2.1Resolved2012-11-062012-11-06Emilio González Montaña

Actions

Also available in: Atom PDF