Project

General

Profile

internal error after install localizable plugin

Added by hakuna jun over 5 years ago

Hi

I installed localizable plugin.

Internal error is occurred at Gantt, Canlendar, and News menus when I login as a normal user.
However, if I login as a administrator user, there is no error.

How can I fix it?

Log of one of them is below.

Completed 200 OK in 418ms (Views: 236.6ms | ActiveRecord: 44.1ms)
Started GET "/projects/works_af/issues/gantt" for 10.184.170.51 at 2019-03-25 11:11:22 +0900
Processing by GanttsController#show as HTML
Parameters: {"project_id"=>"works_af"}
Current user: bj2035 (id=611)
Rendered queries/_filters.html.erb (28.6ms)
Rendered plugins/ankoalm_ganttchart/app/views/gantts/show.html.erb within layouts/base (217.2ms)
Completed 500 Internal Server Error in 310ms (ActiveRecord: 99.1ms)

ActionView::Template::Error (undefined local variable or method `name_in_english' for #<User:0x00007f5cb8e3c440>):
234:
235: # Width of the entire chart
236: g_width = ((@gantt.date_to - @gantt.date_from + 1) * zoom).to_i
237: @gantt.render(:top => headers_height + 8,
238: :zoom => zoom,
239: :g_width => g_width,
240: :subject_width => subject_width)
plugins/localizable/lib/localizable/user_patch.rb:27:in `name_with_localizable'
plugins/ankoalm_ganttchart/app/helpers/ganttchart_helper.rb:761:in `html_subject_content'
plugins/ankoalm_ganttchart/app/helpers/ganttchart_helper.rb:797:in `html_subject'
plugins/ankoalm_ganttchart/app/helpers/ganttchart_helper.rb:377:in `subject'
plugins/ankoalm_ganttchart/app/helpers/ganttchart_helper.rb:364:in `subject_for_issue'
plugins/ankoalm_ganttchart/app/helpers/ganttchart_helper.rb:310:in `render_object_row'
plugins/ankoalm_ganttchart/app/helpers/ganttchart_helper.rb:296:in `block in render_issues'
plugins/ankoalm_ganttchart/app/helpers/ganttchart_helper.rb:291:in `each'
plugins/ankoalm_ganttchart/app/helpers/ganttchart_helper.rb:291:in `render_issues'
plugins/ankoalm_ganttchart/app/helpers/ganttchart_helper.rb:270:in `block in render_project'
plugins/ankoalm_ganttchart/app/helpers/ganttchart_helper.rb:329:in `increment_indent'
plugins/ankoalm_ganttchart/app/helpers/ganttchart_helper.rb:267:in `render_project'
plugins/ankoalm_ganttchart/app/helpers/ganttchart_helper.rb:249:in `block in render'
app/models/project.rb:866:in `block in project_tree'
app/models/project.rb:862:in `each'
app/models/project.rb:862:in `project_tree'
plugins/ankoalm_ganttchart/app/helpers/ganttchart_helper.rb:247:in `render'
plugins/ankoalm_ganttchart/app/views/gantts/show.html.erb:237:in `_plugins_ankoalm_ganttchart_app_views_gantts_show_html_erb___1757356677090035185_70018077075280'
plugins/ankoalm_ganttchart/lib/ganttchart/gantts_controller_patch.rb:23:in `block (2 levels) in show'
plugins/ankoalm_ganttchart/lib/ganttchart/gantts_controller_patch.rb:22:in `show'
lib/redmine/sudo_mode.rb:63:in `sudo_mode'


Replies (1)

RE: internal error after install localizable plugin - Added by Go MAEDA over 5 years ago

I recommend you to report the problem to the author of localizable plugin. Maybe https://redmine.ociotec.com/ is the author's site.

    (1-1/1)