Redmine version 4.1.1.stable
Ruby version 2.5.1-p57 (2018-03-29) [x86_64-linux-gnu]
Rails version 5.2.4.2
Redmine plugins:
mega_calendar 1.7.2
Description: After installing the mega_calendar plugin, the content of the issue cannot be shows. Browser shows a generic error message, but in error log file the following can be found:
App 7449 output: Started GET "/issues/2" for 1.2.3.4 at 2020-05-18 11:14:07 +0000
App 7449 output: Processing by IssuesController#show as HTML
App 7449 output: Parameters: {"id"=>"2"}
App 7449 output: Current user: xyz (id=6)
App 7449 output: Rendering plugins/mega_calendar/app/views/issues/show.html.erb within layouts/base
App 7449 output: Rendered issues/_action_menu.html.erb (2.6ms)
App 7449 output: Rendered plugins/mega_calendar/app/views/issues/show.html.erb within layouts/base (61.0ms)
App 7449 output: Completed 500 Internal Server Error in 113ms (ActiveRecord: 37.6ms)
App 7449 output:
App 7449 output: ActionView::Template::Error (undefined method `render_custom_fields_rows' for #<#<Class:0x0000559ec575d500>:0x00007f43b5e54ed0>
App 7449 output: Did you mean? render_custom_fields_tabs
App 7449 output: render_custom_field_values):
App 7449 output: 278: <% if Redmine::VERSION.to_s.starts_with?('3.4') || Redmine::VERSION.to_s.starts_with?('4.0') %>
App 7449 output: 279: <%= render_half_width_custom_fields_rows(@issue) %>
App 7449 output: 280: <% else %>
App 7449 output: 281: <%= render_custom_fields_rows(@issue) %>
App 7449 output: 282: <% end %>
App 7449 output: 283: <%= call_hook(:view_issues_show_details_bottom, :issue => @issue) %>
App 7449 output: 284: </table>
App 7449 output:
App 7449 output: plugins/mega_calendar/app/views/issues/show.html.erb:281:in `_plugins_mega_calendar_app_views_issues_show_html_erb__3206612570051318884_69964392588180'
Small modification of /opt/redmine/plugins/mega_calendar/app/views/issues/show.html.erb, where each occurrence of Redmine::VERSION.to_s.starts_with?('4.0') was replaced with Redmine::VERSION.to_s.starts_with?('4.') solved a problem.
As a non-ruby programmer and Redmine newbie, I would suggest that someone with more experience make a final fix.
Environment:
Description: After installing the mega_calendar plugin, the content of the issue cannot be shows. Browser shows a generic error message, but in error log file the following can be found:
Small modification of
/opt/redmine/plugins/mega_calendar/app/views/issues/show.html.erb
, where each occurrence ofRedmine::VERSION.to_s.starts_with?('4.0')
was replaced withRedmine::VERSION.to_s.starts_with?('4.')
solved a problem.As a non-ruby programmer and Redmine newbie, I would suggest that someone with more experience make a final fix.