Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

500 error on project gantt page - Redmine 3.4 and later #130

Open
adanielvv opened this issue Mar 6, 2018 · 1 comment
Open

500 error on project gantt page - Redmine 3.4 and later #130

adanielvv opened this issue Mar 6, 2018 · 1 comment

Comments

@adanielvv
Copy link

link_to_content_update is deprecated

Exactly the same error as:
agileware-jp/redmine_work_days#14

adanielvv added a commit to adanielvv/redmine_better_gantt_chart that referenced this issue Mar 6, 2018
rename deprecated link_to_content_update to link_to
@NCookies
Copy link

NCookies commented May 28, 2018

I have same problem

Started GET "/redmine/issues/gantt" for 127.0.0.1 at 2018-05-28 20:49:08 +0900
Processing by GanttsController#show as HTML
  Current user: anonymous
  Rendered queries/_filters.html.erb (56.0ms)
DEPRECATION WARNING: Relation#all is deprecated. If you want to eager-load a relation, you can call #load (e.g. `Post.where(published: true).load`). If you want to get an array of records from a relation, you can call #to_a (e.g. `Post.where(published: true).to_a`). (called from projects at C:/Bitnami/redmine-3.4.5-0/apps/redmine/htdocs/plugins/redmine_better_gantt_chart/lib/redmine/helpers/better_gantt.rb:160)
  Rendered plugins/redmine_better_gantt_chart/app/views/gantts/show.html.erb within layouts/base (688.0ms)
Completed 500 Internal Server Error in 907ms (ActiveRecord: 86.0ms)

ActionView::Template::Error (undefined method `link_to_content_update' for #<#<Class:0x4818a38>:0x47d4ab8>
Did you mean?  link_to_function):
    308: <table style="width:100%">
    309: <tr>
    310:   <td align="left">
    311:     <%= link_to_content_update("\xc2\xab " + l(:label_previous),
    312:                                params.merge(@gantt.params_previous)) %>
    313:   </td>
    314:   <td align="right">
  plugins/redmine_better_gantt_chart/app/views/gantts/show.html.erb:311:in `_plugins_redmine_better_gantt_chart_app_views_gantts_show_html_erb___508228174_37404948'
  plugins/redmine_better_gantt_chart/lib/redmine_better_gantt_chart/gantts_controller_patch.rb:23:in `block (2 levels) in show_with_custom_helper'
  plugins/redmine_better_gantt_chart/lib/redmine_better_gantt_chart/gantts_controller_patch.rb:22:in `show_with_custom_helper'
  lib/redmine/sudo_mode.rb:63:in `sudo_mode'

adanielvv added a commit to adanielvv/redmine_better_gantt_chart that referenced this issue Jan 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants